COPASI API  4.40.278
CLGraphicalPrimitive2D Class Reference

#include <CLGraphicalPrimitive2D.h>

Inheritance diagram for CLGraphicalPrimitive2D:
[legend]

Public Types

enum  FILL_RULE { UNSET , NONZERO , EVENODD , INHERIT }
 

Public Member Functions

virtual void addSBMLAttributes (GraphicalPrimitive2D *pPrimitive) const
 
 CLGraphicalPrimitive2D ()
 
 CLGraphicalPrimitive2D (const GraphicalPrimitive2D &source)
 
const std::string & getFillColor () const
 
FILL_RULE getFillRule () const
 
bool isSetFill () const
 
bool isSetFillRule () const
 
void setFillColor (const std::string &color)
 
void setFillRule (FILL_RULE rule)
 
- Public Member Functions inherited from CLGraphicalPrimitive1D
virtual void addSBMLAttributes (GraphicalPrimitive1D *pPrimitive) const
 
 CLGraphicalPrimitive1D ()
 
 CLGraphicalPrimitive1D (const GraphicalPrimitive1D &source)
 
const std::vector< unsigned int > & getDashArray () const
 
const std::string & getStroke () const
 
double getStrokeWidth () const
 
bool isSetDashArray () const
 
bool isSetStroke () const
 
bool isSetStrokeWidth () const
 
void parseDashArray (const std::string &s)
 
void setDashArray (const std::vector< unsigned int > &array)
 
void setStroke (const std::string &key)
 
void setStrokeWidth (double width)
 
- Public Member Functions inherited from CLTransformation2D
 CLTransformation2D ()
 
 CLTransformation2D (const double m[6])
 
 CLTransformation2D (const Transformation2D &source)
 
std::string get2DTransformationString () const
 
const double * getMatrix2D () const
 
virtual void parseTransformation (const std::string &transformationString)
 
void setMatrix (const double m[12])
 
void setMatrix2D (const double m[6])
 
- Public Member Functions inherited from CLTransformation
 CLTransformation ()
 
 CLTransformation (const double matrix[12])
 
std::string get3DTransformationString () const
 
virtual const double * getMatrix () const
 
bool is2DTransformation () const
 
bool isIdentityMatrix () const
 
bool isSetMatrix () const
 
void setMatrix (const double m[12])
 
- Public Member Functions inherited from CLBase
 CLBase ()
 
 CLBase (const CLBase &b)
 
 CLBase (const SBase &)
 
const std::string & getTag () const
 
bool hasTag () const
 
virtual void moveBy (const CLPoint &)
 
void setTag (const std::string &tag)
 
virtual ~CLBase ()
 

Protected Attributes

std::string mFill
 
FILL_RULE mFillRule
 
- Protected Attributes inherited from CLGraphicalPrimitive1D
std::string mStroke
 
std::vector< unsigned int > mStrokeDashArray
 
double mStrokeWidth
 
- Protected Attributes inherited from CLTransformation2D
double mMatrix2D [6]
 
- Protected Attributes inherited from CLTransformation
double mMatrix [12]
 
- Protected Attributes inherited from CLBase
std::string mTag
 

Additional Inherited Members

- Static Public Member Functions inherited from CLTransformation2D
static const double * getIdentityMatrix2D ()
 
- Static Public Member Functions inherited from CLTransformation
static const double * getIdentityMatrix ()
 
- Static Public Attributes inherited from CLTransformation2D
static const double IDENTITY2D [6] = {1.0, 0.0, 0.0, 1.0, 0.0, 0.0}
 
- Static Public Attributes inherited from CLTransformation
static const double IDENTITY3D [12] = {1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0}
 
- Protected Member Functions inherited from CLTransformation2D
virtual void addSBMLAttributes (Transformation2D *pTransformation) const
 
void updateMatrix2D ()
 
void updateMatrix3D ()
 

Member Enumeration Documentation

◆ FILL_RULE

Enumerator
UNSET 
NONZERO 
EVENODD 
INHERIT 

Constructor & Destructor Documentation

◆ CLGraphicalPrimitive2D() [1/2]

CLGraphicalPrimitive2D::CLGraphicalPrimitive2D ( )

Constructor.

◆ CLGraphicalPrimitive2D() [2/2]

CLGraphicalPrimitive2D::CLGraphicalPrimitive2D ( const GraphicalPrimitive2D &  source)

Constructor to generate object from the corresponding SBML object.

References EVENODD, INHERIT, NONZERO, setFillRule(), and UNSET.

Member Function Documentation

◆ addSBMLAttributes()

void CLGraphicalPrimitive2D::addSBMLAttributes ( GraphicalPrimitive2D *  pPrimitive) const
virtual

Adds the attributes for a 2d graphical primitive object to the passed in. object.

References CLGraphicalPrimitive1D::addSBMLAttributes(), EVENODD, INHERIT, mFill, mFillRule, NONZERO, and UNSET.

Referenced by CLEllipse::toSBML(), CLGroup::toSBML(), CLLineEnding::toSBML(), CLPolygon::toSBML(), and CLRectangle::toSBML().

◆ getFillColor()

const std::string & CLGraphicalPrimitive2D::getFillColor ( ) const

◆ getFillRule()

CLGraphicalPrimitive2D::FILL_RULE CLGraphicalPrimitive2D::getFillRule ( ) const

Returns the fill rule.

References mFillRule.

Referenced by CLLayoutRenderer::extract_2d_attributes(), and CCopasiXML::save2DAttributes().

◆ isSetFill()

bool CLGraphicalPrimitive2D::isSetFill ( ) const

Returns true if the fill attribute is set or false otherwise.

References mFill.

Referenced by CLLayoutRenderer::extract_2d_attributes(), StyleHandler::processEnd(), CCopasiXML::save2DAttributes(), and CLLayoutRenderer::update_textures_and_colors().

◆ isSetFillRule()

bool CLGraphicalPrimitive2D::isSetFillRule ( ) const

Returns true if the fill rule attribute is set or false otherwise.

References mFillRule, and UNSET.

Referenced by CLLayoutRenderer::extract_2d_attributes(), StyleHandler::processEnd(), and CCopasiXML::save2DAttributes().

◆ setFillColor()

void CLGraphicalPrimitive2D::setFillColor ( const std::string &  color)

◆ setFillRule()

Member Data Documentation

◆ mFill

std::string CLGraphicalPrimitive2D::mFill
protected

◆ mFillRule

FILL_RULE CLGraphicalPrimitive2D::mFillRule
protected

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