Bridges-C++  3.1.1
Bridges(C++API)
Public Member Functions | List of all members
bridges::datastructure::Label Class Reference

#include <Label.h>

Inheritance diagram for bridges::datastructure::Label:
bridges::datastructure::Symbol

Detailed Description

This is a label object and used for defining text labels as part of the symbol collection.

Author
Kalpathi Subramanian
Date
12/23/18

Public Member Functions

 Label ()
 
 Label (string l)
 
string getDataStructType ()
 
string getName () const
 
void setFontSize (int sz)
 
int getFontSize ()
 
void setTextWidth (int w)
 
int getTextWidth ()
 
void setTextHeight (int h)
 
int getTextHeight ()
 
vector< float > getDimensions () const
 
const string getSymbolRepresentation () const
 
- Public Member Functions inherited from bridges::datastructure::Symbol
 Symbol ()
 
 Symbol (string symb)
 
int getIdentifier ()
 
void setLabel (string lbl)
 
string getLabel () const
 
void setFillColor (Color c)
 
void setFillColor (string c)
 
Color getFillColor ()
 
void setStrokeColor (Color c)
 
void setStrokeColor (string c)
 
Color getStrokeColor ()
 
void setStrokeWidth (float strk_width)
 
float getStrokeWidth ()
 
void setOpacity (float op)
 
float getOpacity ()
 
void setStrokeDash (int dash)
 
int getStrokeDash ()
 
void setLocation (int x, int y)
 
void setCenter (float x, float y)
 
void setLocation (float x, float y)
 
const float * getLocation () const
 
string getName () const
 

Additional Inherited Members

- Protected Member Functions inherited from bridges::datastructure::Symbol
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
 

Constructor & Destructor Documentation

◆ Label() [1/2]

bridges::datastructure::Label::Label ( )
inline

constructors

◆ Label() [2/2]

bridges::datastructure::Label::Label ( string  l)
inline

Create a label object with label l

Parameters
llabel

Member Function Documentation

◆ getDataStructType()

string bridges::datastructure::Label::getDataStructType ( )
inline

◆ getDimensions()

vector<float> bridges::datastructure::Label::getDimensions ( ) const
inlinevirtual

This method returns the bounding box dimensions of the shape

Returns
vector of floats

Implements bridges::datastructure::Symbol.

◆ getFontSize()

int bridges::datastructure::Label::getFontSize ( )
inline

This method gets the font size

Returns
font size

◆ getName()

string bridges::datastructure::Label::getName ( ) const
inline

This method gets the name of the shape

Returns
name shape name

◆ getSymbolRepresentation()

const string bridges::datastructure::Label::getSymbolRepresentation ( ) const
inlinevirtual

This method returns the JSON representation of the shape

Returns
string JSON string

Implements bridges::datastructure::Symbol.

◆ getTextHeight()

int bridges::datastructure::Label::getTextHeight ( )
inline

This method gets the text height

Returns
text height

◆ getTextWidth()

int bridges::datastructure::Label::getTextWidth ( )
inline

This method gets the text width

Returns
text width

◆ setFontSize()

void bridges::datastructure::Label::setFontSize ( int  sz)
inline

This method sets the font size

Parameters
szfont size

◆ setTextHeight()

void bridges::datastructure::Label::setTextHeight ( int  h)
inline

This method sets the text height

Parameters
htext height

◆ setTextWidth()

void bridges::datastructure::Label::setTextWidth ( int  w)
inline

This method sets the text width

Parameters
wtext width

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