COPASI API
4.16.103
|
#include <CLGraphicalPrimitive2D.h>
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) |
![]() | |
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) |
![]() | |
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]) |
![]() | |
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]) |
![]() | |
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 |
![]() | |
std::string | mStroke |
std::vector< unsigned int > | mStrokeDashArray |
double | mStrokeWidth |
![]() | |
double | mMatrix2D [6] |
![]() | |
double | mMatrix [12] |
![]() | |
std::string | mTag |
Additional Inherited Members | |
![]() | |
static const double * | getIdentityMatrix2D () |
![]() | |
static const double * | getIdentityMatrix () |
![]() | |
static const double | IDENTITY2D [6] = {1.0, 0.0, 0.0, 1.0, 0.0, 0.0} |
![]() | |
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} |
![]() | |
virtual void | addSBMLAttributes (Transformation2D *pTransformation) const |
void | updateMatrix2D () |
void | updateMatrix3D () |
Definition at line 24 of file CLGraphicalPrimitive2D.h.
CLGraphicalPrimitive2D::CLGraphicalPrimitive2D | ( | ) |
Constructor.
Definition at line 21 of file CLGraphicalPrimitive2D.cpp.
CLGraphicalPrimitive2D::CLGraphicalPrimitive2D | ( | const GraphicalPrimitive2D & | source | ) |
Constructor to generate object from the corresponding SBML object.
Definition at line 30 of file CLGraphicalPrimitive2D.cpp.
References EVENODD, INHERIT, NONZERO, setFillRule(), and UNSET.
|
virtual |
Adds the attributes for a 2d graphical primitive object to the passed in. object.
Definition at line 103 of file CLGraphicalPrimitive2D.cpp.
References CLGraphicalPrimitive1D::addSBMLAttributes(), EVENODD, INHERIT, mFill, mFillRule, NONZERO, and UNSET.
Referenced by CLLineEnding::toSBML(), CLPolygon::toSBML(), CLEllipse::toSBML(), CLRectangle::toSBML(), and CLGroup::toSBML().
const std::string & CLGraphicalPrimitive2D::getFillColor | ( | ) | const |
Returns the fill color.
Definition at line 70 of file CLGraphicalPrimitive2D.cpp.
References mFill.
Referenced by CLLayoutRenderer::extract_2d_attributes(), getBrush(), CCopasiXML::save2DAttributes(), and CLLayoutRenderer::update_textures_and_colors().
CLGraphicalPrimitive2D::FILL_RULE CLGraphicalPrimitive2D::getFillRule | ( | ) | const |
Returns the fill rule.
Definition at line 78 of file CLGraphicalPrimitive2D.cpp.
References mFillRule.
Referenced by addLineEndingToItem(), CLLayoutRenderer::extract_2d_attributes(), fillItemFromPolygon(), and CCopasiXML::save2DAttributes().
bool CLGraphicalPrimitive2D::isSetFill | ( | ) | const |
Returns true if the fill attribute is set or false otherwise.
Definition at line 86 of file CLGraphicalPrimitive2D.cpp.
References mFill.
Referenced by addLineEndingToItem(), CCopasiXMLParser::GroupElement::end(), CLLayoutRenderer::extract_2d_attributes(), getBrush(), CCopasiXML::save2DAttributes(), and CLLayoutRenderer::update_textures_and_colors().
bool CLGraphicalPrimitive2D::isSetFillRule | ( | ) | const |
Returns true if the fill rule attribute is set or false otherwise.
Definition at line 94 of file CLGraphicalPrimitive2D.cpp.
References mFillRule, and UNSET.
Referenced by addLineEndingToItem(), CCopasiXMLParser::GroupElement::end(), CLLayoutRenderer::extract_2d_attributes(), fillItemFromPolygon(), and CCopasiXML::save2DAttributes().
void CLGraphicalPrimitive2D::setFillColor | ( | const std::string & | color | ) |
Set fill color.
Definition at line 54 of file CLGraphicalPrimitive2D.cpp.
References mFill.
Referenced by CCopasiXMLParser::GroupElement::end(), CCopasiXMLParser::RectangleElement::start(), CCopasiXMLParser::EllipseElement::start(), CCopasiXMLParser::PolygonElement::start(), and CCopasiXMLParser::GroupElement::start().
void CLGraphicalPrimitive2D::setFillRule | ( | CLGraphicalPrimitive2D::FILL_RULE | rule | ) |
Sets the fill rule
Definition at line 62 of file CLGraphicalPrimitive2D.cpp.
References mFillRule.
Referenced by CLGraphicalPrimitive2D(), CCopasiXMLParser::GroupElement::end(), CCopasiXMLParser::RectangleElement::start(), CCopasiXMLParser::EllipseElement::start(), CCopasiXMLParser::PolygonElement::start(), and CCopasiXMLParser::GroupElement::start().
|
protected |
Definition at line 37 of file CLGraphicalPrimitive2D.h.
Referenced by addSBMLAttributes(), getFillColor(), isSetFill(), and setFillColor().
|
protected |
Definition at line 36 of file CLGraphicalPrimitive2D.h.
Referenced by addSBMLAttributes(), getFillRule(), isSetFillRule(), and setFillRule().