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

#include <SymbolGroup.h>

Inheritance diagram for bridges::datastructure::SymbolGroup:
bridges::datastructure::Symbol

Detailed Description

the SymbolGroup represents a collection of symbols (shapes, polygons, and text) to visualize in Bridges

Author
Kalpathi Subramanian
Date
3/31/21

Public Member Functions

 SymbolGroup ()
 
void addSymbolPtr (std::shared_ptr< Symbol > s)
 This method adds a symbol to the collection. More...
 
template<typename T >
void addSymbol (T s)
 
std::vector< std::shared_ptr< Symbol > > getAllSymbols () const
 
virtual string getShapeType () const override
 This method returns the JSON representation of the symbol group. More...
 
virtual const string getSymbolRepresentation () const override
 Virtual method to get the JSON representation of the symbol. More...
 
- Public Member Functions inherited from bridges::datastructure::Symbol
 Symbol ()
 default constructor More...
 
 Symbol (const Symbol &s)
 
Symboloperator= (const Symbol &s)
 
 ~Symbol ()
 
int getIdentifier () const
 return the symbol identifier. More...
 
SymbolsetFillColor (Color c)
 Set the symbol fill color. More...
 
SymbolsetFillColor (string c)
 This method sets the symbol fill color. More...
 
Color getFillColor () const
 This method gets fill color. More...
 
SymbolsetStrokeColor (Color c)
 
SymbolsetStrokeColor (string c)
 This method sets the symbol stroke color. More...
 
Color getStrokeColor ()
 This method gets stroke color. More...
 
SymbolsetStrokeWidth (float strk_width)
 This method sets the symbol stroke width. More...
 
float getStrokeWidth () const
 This method gets stroke width. More...
 
SymbolsetOpacity (float op)
 This method sets the symbol opacity. More...
 
float getOpacity () const
 This method gets symbol opacity. More...
 
SymbolsetStrokeDash (int dash)
 This method sets the stroke dash level. More...
 
int getStrokeDash () const
 This method gets stroke dash level. More...
 
SymbolsetLayer (int l)
 
int getLayer () const
 
Symboltranslate (float tx, float ty)
 Translate a 2D point. More...
 
Symbolscale (float sx, float sy)
 Scale a Symbol. More...
 
Symbolscale (float scalefactor)
 Scale a Symbol. More...
 
Symbolrotate (float angle)
 Rotate a 2D point (about Z) More...
 
Symbolscale (float sx, float sy, float px, float py)
 Scale about an arbitrary point (px, py) More...
 
Symbolrotate (float angle, float px, float py)
 Rotate a 2D point about an arbitrary point (px, py) More...
 
SymbolsetTransform (float a, float b, float c, float d, float e, float f)
 

Additional Inherited Members

- Protected Member Functions inherited from bridges::datastructure::Symbol
const string getSymbolAttributeRepresentation () const
 Get the JSON of the symbol representation. More...
 

Constructor & Destructor Documentation

◆ SymbolGroup()

bridges::datastructure::SymbolGroup::SymbolGroup ( )
inline

Constructors

Member Function Documentation

◆ addSymbol()

template<typename T >
void bridges::datastructure::SymbolGroup::addSymbol ( s)
inline

◆ addSymbolPtr()

void bridges::datastructure::SymbolGroup::addSymbolPtr ( std::shared_ptr< Symbol s)
inline

This method adds a symbol to the collection.

Parameters
ssymbol being added

◆ getAllSymbols()

std::vector<std::shared_ptr<Symbol> > bridges::datastructure::SymbolGroup::getAllSymbols ( ) const
inline

◆ getShapeType()

virtual string bridges::datastructure::SymbolGroup::getShapeType ( ) const
inlineoverridevirtual

This method returns the JSON representation of the symbol group.

Returns
string JSON string

This method gets the shape type name

Returns
shape type

Implements bridges::datastructure::Symbol.

◆ getSymbolRepresentation()

virtual const string bridges::datastructure::SymbolGroup::getSymbolRepresentation ( ) const
inlineoverridevirtual

Virtual method to get the JSON representation of the symbol.

Implements bridges::datastructure::Symbol.


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