Fade2D Documentation pages v2.16.7
Delaunay Features
GEOM_FADE2D::Label Class Reference

Represents a text label for visualization. More...

#include <Label.h>

Public Member Functions

 Label (const Label &other)
 Copy constructor.
 
 Label (const Point2 &p_, const char *s_, bool bWithMark_=true, int fontSize_=8)
 Constructs a text label at a specified point. More...
 
 ~Label ()
 Destructor.
 
const char * getCS () const
 Gets the text string of the label. More...
 
Labeloperator= (const Label &other)
 Assignment operator.
 

Public Attributes

bool bWithMark
 
int fontSize
 
Point2 p
 
LDat * pDat
 

Detailed Description

The Label class defines a text label that can be displayed at a specified point in a 2D space. Labels are used in visualizations via the Visualizer2 class.

See also
Visualizer2 where Label objects are used.

Constructor & Destructor Documentation

◆ Label()

GEOM_FADE2D::Label::Label ( const Point2 p_,
const char *  s_,
bool  bWithMark_ = true,
int  fontSize_ = 8 
)

This constructor initializes a Label with a given position, text, and options for displaying the text with or without a mark. It also sets the font size.

Parameters
p_The position where the label appears.
s_The text to be displayed in the label.
bWithMark_A boolean flag indicating whether to display the text with an cross mark (default: true).
fontSize_The font size of the label text (default: 8).

Member Function Documentation

◆ getCS()

const char* GEOM_FADE2D::Label::getCS ( ) const

This method retrieves the text stored in the label.

Returns
A pointer to the text string of the label.

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