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

#include <Circle.h>

Inheritance diagram for bridges::datastructure::Circle:
bridges::datastructure::Symbol

Detailed Description

This class defines a circle and is part of the symbol collection. A circle has a radius.

Author
Kalpathi Subramanian
Date
12/24/18, 7/12/19

Public Member Functions

 Circle ()
 
 Circle (double r)
 
 Circle (double cx, double cy, double r)
 
double getRadius ()
 This method returns the radius of the circle. More...
 
void setRadius (double r)
 This method sets the radius of the circle. More...
 
void setCircle (double cx, double cy, double r)
 This method sets the circle dimensions. More...
 
void setCenter (double cx, double cy)
 
double getCenterX () const
 
double getCenterY () const
 
const string getSymbolRepresentation () const override
 
- 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

◆ Circle() [1/3]

bridges::datastructure::Circle::Circle ( )
inline

constructors

◆ Circle() [2/3]

bridges::datastructure::Circle::Circle ( double  r)
inline

Create a circle of radius r

Parameters
r: radius

◆ Circle() [3/3]

bridges::datastructure::Circle::Circle ( double  cx,
double  cy,
double  r 
)
inline

Create a circle with both location and radius

Parameters
locx,locy: center of circle
r: radius

Member Function Documentation

◆ getCenterX()

double bridges::datastructure::Circle::getCenterX ( ) const
inline

◆ getCenterY()

double bridges::datastructure::Circle::getCenterY ( ) const
inline

◆ getRadius()

double bridges::datastructure::Circle::getRadius ( )
inline

This method returns the radius of the circle.

Returns
radius

◆ getSymbolRepresentation()

const string bridges::datastructure::Circle::getSymbolRepresentation ( ) const
inlineoverridevirtual

This method returns the JSON representation of the shape

Returns
string JSON string

Implements bridges::datastructure::Symbol.

◆ setCenter()

void bridges::datastructure::Circle::setCenter ( double  cx,
double  cy 
)
inline

◆ setCircle()

void bridges::datastructure::Circle::setCircle ( double  cx,
double  cy,
double  r 
)
inline

This method sets the circle dimensions.

Parameters
locxx coordinat of location
locyy coordinat of location
rradius

◆ setRadius()

void bridges::datastructure::Circle::setRadius ( double  r)
inline

This method sets the radius of the circle.

Parameters
rradius

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