Bridges-C++  3.4.4
Bridges(C++ API)
Public Member Functions | Protected Attributes | List of all members
bridges::datastructure::SymbolCollection Class Reference

#include <SymbolCollection.h>

Inheritance diagram for bridges::datastructure::SymbolCollection:
bridges::datastructure::DataStructure

Detailed Description

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

Author
Kalpathi Subramanian
Date
10/9/18, 7/12/19, 12/28/20

Public Member Functions

void setViewport (float xmin, float xmax, float ymin, float ymax)
 set the dimensions of the view More...
 
 SymbolCollection ()
 
virtual const string getDStype () const
 This method gets the data structure type. More...
 
void addSymbolPtr (std::shared_ptr< Symbol > s)
 This method adds a symbol to the collection. More...
 
template<typename T >
void addSymbol (T s)
 
- Public Member Functions inherited from bridges::datastructure::DataStructure
virtual ~DataStructure ()=default
 

Protected Attributes

float domainxmin = -100.0
 
float domainxmax = 100.0
 
float domainymin = -100.0
 
float domainymax = 100.0
 

Constructor & Destructor Documentation

◆ SymbolCollection()

bridges::datastructure::SymbolCollection::SymbolCollection ( )
inline

Constructor

Member Function Documentation

◆ addSymbol()

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

◆ addSymbolPtr()

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

This method adds a symbol to the collection.

Parameters
ssymbol being added

◆ getDStype()

virtual const string bridges::datastructure::SymbolCollection::getDStype ( ) const
inlinevirtual

This method gets the data structure type.

Returns
The date structure type as a string

Implements bridges::datastructure::DataStructure.

◆ setViewport()

void bridges::datastructure::SymbolCollection::setViewport ( float  xmin,
float  xmax,
float  ymin,
float  ymax 
)
inline

set the dimensions of the view

If this is not specified, then it will be computed from the symbols in the domain

Parameters
xminminimum X coord of view
xmaxmaximum X coord of view
yminminimum Y coord of view
ymaxmaximum Y coord of view

Member Data Documentation

◆ domainxmax

float bridges::datastructure::SymbolCollection::domainxmax = 100.0
mutableprotected

◆ domainxmin

float bridges::datastructure::SymbolCollection::domainxmin = -100.0
mutableprotected

◆ domainymax

float bridges::datastructure::SymbolCollection::domainymax = 100.0
mutableprotected

◆ domainymin

float bridges::datastructure::SymbolCollection::domainymin = -100.0
mutableprotected

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