GNU Octave  6.2.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
octave::base_text_renderer Class Referenceabstract

#include "base-text-renderer.h"

Inheritance diagram for octave::base_text_renderer:
Collaboration diagram for octave::base_text_renderer:

Public Member Functions

 base_text_renderer (const base_text_renderer &)=delete
 
 base_text_renderer (void)
 
virtual ~base_text_renderer (void)=default
 
virtual Matrix get_extent (const std::string &txt, double rotation, const caseless_str &interpreter)=0
 
virtual Matrix get_extent (text_element *elt, double rotation)=0
 
virtual octave_map get_system_fonts (void)=0
 
base_text_rendereroperator= (const base_text_renderer &)=delete
 
virtual void reset (void)
 
virtual void set_anti_aliasing (bool val)=0
 
virtual void set_color (const Matrix &c)=0
 
virtual void set_font (const std::string &name, const std::string &weight, const std::string &angle, double size)=0
 
virtual void text_to_pixels (const std::string &txt, uint8NDArray &pxls, Matrix &bbox, int halign, int valign, double rotation, const caseless_str &interpreter, bool handle_rotation)=0
 
virtual void text_to_strlist (const std::string &txt, std::list< text_renderer::string > &lst, Matrix &box, int halign, int valign, double rotation, const caseless_str &interpreter="tex")=0
 
virtual void visit (text_element_color &)
 
virtual void visit (text_element_combined &)
 
virtual void visit (text_element_fontname &)
 
virtual void visit (text_element_fontsize &)
 
virtual void visit (text_element_fontstyle &)
 
virtual void visit (text_element_list &e)
 
virtual void visit (text_element_string &e)=0
 
virtual void visit (text_element_subscript &e)
 
virtual void visit (text_element_superscript &e)
 
virtual void visit (text_element_symbol &)
 

Detailed Description

Definition at line 43 of file base-text-renderer.h.

Constructor & Destructor Documentation

◆ base_text_renderer() [1/2]

octave::base_text_renderer::base_text_renderer ( void  )
inline

Definition at line 48 of file base-text-renderer.h.

◆ base_text_renderer() [2/2]

octave::base_text_renderer::base_text_renderer ( const base_text_renderer )
delete

◆ ~base_text_renderer()

virtual octave::base_text_renderer::~base_text_renderer ( void  )
virtualdefault

Member Function Documentation

◆ get_extent() [1/2]

virtual Matrix octave::base_text_renderer::get_extent ( const std::string &  txt,
double  rotation,
const caseless_str interpreter 
)
pure virtual

Implemented in octave::ft_text_renderer.

◆ get_extent() [2/2]

virtual Matrix octave::base_text_renderer::get_extent ( text_element elt,
double  rotation 
)
pure virtual

◆ get_system_fonts()

virtual octave_map octave::base_text_renderer::get_system_fonts ( void  )
pure virtual

◆ operator=()

base_text_renderer& octave::base_text_renderer::operator= ( const base_text_renderer )
delete

◆ reset()

virtual void octave::text_processor::reset ( void  )
inlinevirtualinherited

Reimplemented in octave::ft_text_renderer.

Definition at line 353 of file text-engine.h.

◆ set_anti_aliasing()

virtual void octave::base_text_renderer::set_anti_aliasing ( bool  val)
pure virtual

◆ set_color()

virtual void octave::base_text_renderer::set_color ( const Matrix c)
pure virtual

◆ set_font()

virtual void octave::base_text_renderer::set_font ( const std::string &  name,
const std::string &  weight,
const std::string &  angle,
double  size 
)
pure virtual

◆ text_to_pixels()

virtual void octave::base_text_renderer::text_to_pixels ( const std::string &  txt,
uint8NDArray pxls,
Matrix bbox,
int  halign,
int  valign,
double  rotation,
const caseless_str interpreter,
bool  handle_rotation 
)
pure virtual

◆ text_to_strlist()

virtual void octave::base_text_renderer::text_to_strlist ( const std::string &  txt,
std::list< text_renderer::string > &  lst,
Matrix box,
int  halign,
int  valign,
double  rotation,
const caseless_str interpreter = "tex" 
)
pure virtual

◆ visit() [1/10]

virtual void octave::text_processor::visit ( text_element_color )
inlinevirtualinherited

Reimplemented in octave::ft_text_renderer.

Definition at line 351 of file text-engine.h.

◆ visit() [2/10]

virtual void octave::text_processor::visit ( text_element_combined )
inlinevirtualinherited

Reimplemented in octave::ft_text_renderer.

Definition at line 343 of file text-engine.h.

◆ visit() [3/10]

virtual void octave::text_processor::visit ( text_element_fontname )
inlinevirtualinherited

Reimplemented in octave::ft_text_renderer.

Definition at line 347 of file text-engine.h.

◆ visit() [4/10]

virtual void octave::text_processor::visit ( text_element_fontsize )
inlinevirtualinherited

Reimplemented in octave::ft_text_renderer.

Definition at line 349 of file text-engine.h.

◆ visit() [5/10]

virtual void octave::text_processor::visit ( text_element_fontstyle )
inlinevirtualinherited

Reimplemented in octave::ft_text_renderer.

Definition at line 345 of file text-engine.h.

◆ visit() [6/10]

virtual void octave::text_processor::visit ( text_element_list e)
inlinevirtualinherited

Reimplemented in octave::ft_text_renderer.

Definition at line 329 of file text-engine.h.

◆ visit() [7/10]

virtual void octave::text_processor::visit ( text_element_string e)
pure virtualinherited

◆ visit() [8/10]

virtual void octave::text_processor::visit ( text_element_subscript e)
inlinevirtualinherited

◆ visit() [9/10]

virtual void octave::text_processor::visit ( text_element_superscript e)
inlinevirtualinherited

◆ visit() [10/10]

virtual void octave::text_processor::visit ( text_element_symbol )
inlinevirtualinherited

Reimplemented in octave::ft_text_renderer.

Definition at line 327 of file text-engine.h.


The documentation for this class was generated from the following file: