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... | |
Label & | operator= (const Label &other) |
Assignment operator. | |
Public Attributes | |
bool | bWithMark |
int | fontSize |
Point2 | p |
LDat * | pDat |
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.
Label
objects are used. 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.
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). |
const char* GEOM_FADE2D::Label::getCS | ( | ) | const |
This method retrieves the text stored in the label.