![]() |
Bridges-C++
3.2.0
Bridges(C++API)
|
#include <Label.h>
This is a label object and used for defining text labels as part of the symbol collection.
Public Member Functions | |
Label () | |
Label (string l) | |
string | getDataStructType () |
string | getName () const |
This method gets the name of the shape. More... | |
void | setFontSize (int sz) |
This method sets the font size. More... | |
int | getFontSize () |
This method gets the font size. More... | |
void | setTextWidth (int w) |
This method sets the text width. More... | |
int | getTextWidth () |
This method gets the text width. More... | |
void | setTextHeight (int h) |
int | getTextHeight () |
This method gets the text height. More... | |
vector< float > | getDimensions () const |
This method returns the bounding box dimensions of the shape. More... | |
const string | getSymbolRepresentation () const |
This method returns the JSON representation of the shape. More... | |
![]() | |
Symbol () | |
default constructor More... | |
Symbol (string symb) | |
Create a symbol of type "symb". More... | |
int | getIdentifier () |
return the symbol identifier. More... | |
void | setLabel (string lbl) |
Set the symbol label. More... | |
string | getLabel () const |
Get the symbol label. More... | |
void | setFillColor (Color c) |
Set the symbol fill color. More... | |
void | setFillColor (string c) |
This method sets the symbol fill color. More... | |
Color | getFillColor () |
This method gets fill color. More... | |
void | setStrokeColor (Color c) |
void | setStrokeColor (string c) |
This method sets the symbol stroke color. More... | |
Color | getStrokeColor () |
This method gets stroke color. More... | |
void | setStrokeWidth (float strk_width) |
This method sets the symbol stroke width. More... | |
float | getStrokeWidth () |
This method gets stroke width. More... | |
void | setOpacity (float op) |
This method sets the symbol opacity. More... | |
float | getOpacity () |
This method gets symbol opacity. More... | |
void | setStrokeDash (int dash) |
This method sets the stroke dash level. More... | |
int | getStrokeDash () |
This method gets stroke dash level. More... | |
void | setLocation (int x, int y) |
This method sets the symbol location. More... | |
void | setLocation (double x, double y) |
This method sets the symbol location. More... | |
void | setCenter (float x, float y) |
This method sets the symbol location. More... | |
void | setLocation (float x, float y) |
This method sets the ssymbol location. More... | |
const float * | getLocation () const |
This method gets the symbol location. More... | |
string | getName () const |
This method gets the name of the symbol. More... | |
Additional Inherited Members | |
![]() | |
void | setShapeType (string s) |
Set the shape type. More... | |
string | getShapeType () const |
void | translatePoint (float *pt, float tx, float ty) |
Translate a 2D point. More... | |
void | scalePoint (float *pt, float sx, float sy) |
Scale a 2D point. More... | |
void | rotatePoint (float *pt, float angle) |
Rotate a 2D point (about Z) More... | |
const string | getSymbolAttributeRepresentation () const |
Get the JSON of the symbol representation. More... | |
|
inline |
constructors
|
inline |
Create a label object with label l
l | label |
|
inline |
|
inlinevirtual |
This method returns the bounding box dimensions of the shape.
Implements bridges::datastructure::Symbol.
|
inline |
This method gets the font size.
|
inline |
This method gets the name of the shape.
|
inlinevirtual |
This method returns the JSON representation of the shape.
Implements bridges::datastructure::Symbol.
|
inline |
This method gets the text height.
|
inline |
This method gets the text width.
|
inline |
This method sets the font size.
sz | font size |
|
inline |
This method sets the text height
h | text height |
|
inline |
This method sets the text width.
w | text width |