g4tools  5.4.0
Public Types | Public Member Functions | Public Attributes | List of all members
tools::sg::plottable_text Class Reference
Inheritance diagram for tools::sg::plottable_text:
Inheritance graph
[legend]
Collaboration diagram for tools::sg::plottable_text:
Collaboration graph
[legend]

Public Types

enum  text_mode { text_as_it, text_enforce_width, text_enforce_height }
 

Public Member Functions

virtual void * cast (const std::string &a_class) const
 
virtual plotprimcopy () const
 
 plottable_text (const std::string &a_TEXT, float a_X, float a_Y, float a_SIZE, text_mode a_text_mode, float a_ANGLE, char a_HJUST, char a_VJUST, const std::string &a_FONT, const colorf &a_TXCI, float a_SCALE, bool a_SMOOTHING, bool a_HINTING, float a_line_width, font_modeling a_font_modeling)
 
 plottable_text (const plottable_text &a_from)
 
plottable_textoperator= (const plottable_text &a_from)
 
- Public Member Functions inherited from tools::sg::plotprim
virtual ~plotprim ()
 

Public Attributes

std::string m_TEXT
 
float m_X
 
float m_Y
 
float m_SIZE
 
text_mode m_text_mode
 
float m_ANGLE
 
char m_HJUST
 
char m_VJUST
 
std::string m_FONT
 
colorf m_TXCI
 
float m_SCALE
 
bool m_SMOOTHING
 
bool m_HINTING
 
float m_line_width
 
font_modeling m_font_modeling
 

Detailed Description

Definition at line 177 of file plottables.

Member Enumeration Documentation

◆ text_mode

Enumerator
text_as_it 
text_enforce_width 
text_enforce_height 

Definition at line 188 of file plottables.

188  {
189  text_as_it,
192  };

Constructor & Destructor Documentation

◆ plottable_text() [1/2]

tools::sg::plottable_text::plottable_text ( const std::string &  a_TEXT,
float  a_X,
float  a_Y,
float  a_SIZE,
text_mode  a_text_mode,
float  a_ANGLE,
char  a_HJUST,
char  a_VJUST,
const std::string &  a_FONT,
const colorf a_TXCI,
float  a_SCALE,
bool  a_SMOOTHING,
bool  a_HINTING,
float  a_line_width,
font_modeling  a_font_modeling 
)
inline

Definition at line 194 of file plottables.

209  :m_TEXT(a_TEXT),m_X(a_X),m_Y(a_Y)
210  ,m_SIZE(a_SIZE),m_text_mode(a_text_mode)
211  ,m_ANGLE(a_ANGLE)
212  ,m_HJUST(a_HJUST)
213  ,m_VJUST(a_VJUST)
214  ,m_FONT(a_FONT),m_TXCI(a_TXCI)
215  ,m_SCALE(a_SCALE),m_SMOOTHING(a_SMOOTHING),m_HINTING(a_HINTING),m_line_width(a_line_width)
216  ,m_font_modeling(a_font_modeling)
217  {}

◆ plottable_text() [2/2]

tools::sg::plottable_text::plottable_text ( const plottable_text a_from)
inline

Definition at line 219 of file plottables.

220  :parent(a_from)
221  ,m_TEXT(a_from.m_TEXT)
222  ,m_X(a_from.m_X),m_Y(a_from.m_Y)
223  ,m_SIZE(a_from.m_SIZE),m_text_mode(a_from.m_text_mode)
224  ,m_ANGLE(a_from.m_ANGLE)
225  ,m_HJUST(a_from.m_HJUST)
226  ,m_VJUST(a_from.m_VJUST)
227  ,m_FONT(a_from.m_FONT),m_TXCI(a_from.m_TXCI)
228  ,m_SCALE(a_from.m_SCALE),m_SMOOTHING(a_from.m_SMOOTHING),m_HINTING(a_from.m_HINTING),m_line_width(a_from.m_line_width)
229  ,m_font_modeling(a_from.m_font_modeling)
230  {}

Member Function Documentation

◆ cast()

virtual void* tools::sg::plottable_text::cast ( const std::string &  a_class) const
inlinevirtual

Implements tools::sg::plotprim.

Definition at line 182 of file plottables.

182  {
183  if(void* p = cmp_cast<plottable_text>(this,a_class)) {return p;}
184  return 0;
185  }

◆ copy()

virtual plotprim* tools::sg::plottable_text::copy ( ) const
inlinevirtual

Implements tools::sg::plotprim.

Definition at line 186 of file plottables.

186 {return new plottable_text(*this);}

◆ operator=()

plottable_text& tools::sg::plottable_text::operator= ( const plottable_text a_from)
inline

Definition at line 231 of file plottables.

231  {
232  m_TEXT = a_from.m_TEXT;
233  m_X = a_from.m_X;
234  m_Y = a_from.m_Y;
235  m_SIZE = a_from.m_SIZE;
236  m_text_mode = a_from.m_text_mode;
237  m_ANGLE = a_from.m_ANGLE;
238  m_HJUST = a_from.m_HJUST;
239  m_VJUST = a_from.m_VJUST;
240  m_FONT = a_from.m_FONT;
241  m_TXCI = a_from.m_TXCI;
242  m_SCALE = a_from.m_SCALE;
243  m_SMOOTHING = a_from.m_SMOOTHING;
244  m_HINTING = a_from.m_HINTING;
245  m_line_width = a_from.m_line_width;
246  m_font_modeling = a_from.m_font_modeling;
247  return *this;
248  }

Member Data Documentation

◆ m_ANGLE

float tools::sg::plottable_text::m_ANGLE

Definition at line 255 of file plottables.

◆ m_FONT

std::string tools::sg::plottable_text::m_FONT

Definition at line 258 of file plottables.

◆ m_font_modeling

font_modeling tools::sg::plottable_text::m_font_modeling

Definition at line 264 of file plottables.

◆ m_HINTING

bool tools::sg::plottable_text::m_HINTING

Definition at line 262 of file plottables.

◆ m_HJUST

char tools::sg::plottable_text::m_HJUST

Definition at line 256 of file plottables.

◆ m_line_width

float tools::sg::plottable_text::m_line_width

Definition at line 263 of file plottables.

◆ m_SCALE

float tools::sg::plottable_text::m_SCALE

Definition at line 260 of file plottables.

◆ m_SIZE

float tools::sg::plottable_text::m_SIZE

Definition at line 253 of file plottables.

◆ m_SMOOTHING

bool tools::sg::plottable_text::m_SMOOTHING

Definition at line 261 of file plottables.

◆ m_TEXT

std::string tools::sg::plottable_text::m_TEXT

Definition at line 250 of file plottables.

◆ m_text_mode

text_mode tools::sg::plottable_text::m_text_mode

Definition at line 254 of file plottables.

◆ m_TXCI

colorf tools::sg::plottable_text::m_TXCI

Definition at line 259 of file plottables.

◆ m_VJUST

char tools::sg::plottable_text::m_VJUST

Definition at line 257 of file plottables.

◆ m_X

float tools::sg::plottable_text::m_X

Definition at line 251 of file plottables.

◆ m_Y

float tools::sg::plottable_text::m_Y

Definition at line 252 of file plottables.


The documentation for this class was generated from the following file:
tools::sg::plottable_text::m_X
float m_X
Definition: plottables:251
tools::sg::plottable_text::m_font_modeling
font_modeling m_font_modeling
Definition: plottables:264
tools::sg::plottable_text::m_FONT
std::string m_FONT
Definition: plottables:258
tools::sg::plottable_text::m_ANGLE
float m_ANGLE
Definition: plottables:255
tools::sg::plottable_text::m_line_width
float m_line_width
Definition: plottables:263
tools::sg::plottable_text::text_enforce_width
@ text_enforce_width
Definition: plottables:190
tools::sg::plottable_text::m_SMOOTHING
bool m_SMOOTHING
Definition: plottables:261
tools::sg::plottable_text::m_SCALE
float m_SCALE
Definition: plottables:260
tools::sg::plottable_text::m_text_mode
text_mode m_text_mode
Definition: plottables:254
tools::sg::plottable_text::m_TEXT
std::string m_TEXT
Definition: plottables:250
tools::sg::plottable_text::m_SIZE
float m_SIZE
Definition: plottables:253
tools::sg::plottable_text::m_HJUST
char m_HJUST
Definition: plottables:256
tools::sg::plottable_text::text_as_it
@ text_as_it
Definition: plottables:189
tools::sg::plottable_text::m_Y
float m_Y
Definition: plottables:252
tools::sg::plottable_text::m_HINTING
bool m_HINTING
Definition: plottables:262
tools::sg::plottable_text::plottable_text
plottable_text(const std::string &a_TEXT, float a_X, float a_Y, float a_SIZE, text_mode a_text_mode, float a_ANGLE, char a_HJUST, char a_VJUST, const std::string &a_FONT, const colorf &a_TXCI, float a_SCALE, bool a_SMOOTHING, bool a_HINTING, float a_line_width, font_modeling a_font_modeling)
Definition: plottables:194
tools::sg::plottable_text::text_enforce_height
@ text_enforce_height
Definition: plottables:191
tools::sg::plottable_text::m_TXCI
colorf m_TXCI
Definition: plottables:259
tools::sg::plottable_text::m_VJUST
char m_VJUST
Definition: plottables:257