COPASI API
4.40.278
|
#include <CLGraphicalPrimitive1D.h>
Public Member Functions | |
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 | 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 () |
CLGraphicalPrimitive1D::CLGraphicalPrimitive1D | ( | ) |
Constructor.
CLGraphicalPrimitive1D::CLGraphicalPrimitive1D | ( | const GraphicalPrimitive1D & | source | ) |
Constructor to generate object from the corresponding SBML object.
|
virtual |
Adds the attributes for a graphical primitive 1D object to the passed in. object.
Converts this object to the corresponding SBML object.
References CLTransformation2D::addSBMLAttributes(), mStroke, mStrokeDashArray, and mStrokeWidth.
Referenced by CLGraphicalPrimitive2D::addSBMLAttributes(), CLRenderCurve::toSBML(), and CLText::toSBML().
const std::vector< unsigned int > & CLGraphicalPrimitive1D::getDashArray | ( | ) | const |
Returns the stroke color.
References mStrokeDashArray.
Referenced by CLLayoutRenderer::extract_1d_attributes(), CCopasiXML::save1DAttributes(), and CLLayoutRenderer::update_textures_and_colors().
const std::string & CLGraphicalPrimitive1D::getStroke | ( | ) | const |
Returns the stroke color.
References mStroke.
Referenced by CLLayoutRenderer::extract_1d_attributes(), CCopasiXML::save1DAttributes(), and CLLayoutRenderer::update_textures_and_colors().
double CLGraphicalPrimitive1D::getStrokeWidth | ( | ) | const |
Returns the stroke width.
References mStrokeWidth.
Referenced by CLLayoutRenderer::extract_1d_attributes(), and CCopasiXML::save1DAttributes().
bool CLGraphicalPrimitive1D::isSetDashArray | ( | ) | const |
Returns true is the dash array has been set or false otherwise.
References mStrokeDashArray.
Referenced by CLLayoutRenderer::extract_1d_attributes(), CCopasiXML::save1DAttributes(), and CLLayoutRenderer::update_textures_and_colors().
bool CLGraphicalPrimitive1D::isSetStroke | ( | ) | const |
Returns true is the stroke has been set or false otherwise.
References mStroke.
Referenced by CLLayoutRenderer::extract_1d_attributes(), StyleHandler::processEnd(), CCopasiXML::save1DAttributes(), and CLLayoutRenderer::update_textures_and_colors().
bool CLGraphicalPrimitive1D::isSetStrokeWidth | ( | ) | const |
Returns true is the stroke width has been set or false otherwise.
References mStrokeWidth.
Referenced by CLLayoutRenderer::extract_1d_attributes(), StyleHandler::processEnd(), and CCopasiXML::save1DAttributes().
void CLGraphicalPrimitive1D::parseDashArray | ( | const std::string & | s | ) |
void CLGraphicalPrimitive1D::setDashArray | ( | const std::vector< unsigned int > & | array | ) |
Sets the dasharray.
References mStrokeDashArray.
void CLGraphicalPrimitive1D::setStroke | ( | const std::string & | key | ) |
Sets the stroke color.
References mStroke.
Referenced by StyleHandler::processEnd(), EllipseHandler::processStart(), GroupHandler::processStart(), PolygonHandler::processStart(), RectangleHandler::processStart(), RenderCurveHandler::processStart(), and RenderTextHandler::processStart().
void CLGraphicalPrimitive1D::setStrokeWidth | ( | double | width | ) |
Sets the stroke width.
References mStrokeWidth.
Referenced by StyleHandler::processEnd(), EllipseHandler::processStart(), GroupHandler::processStart(), PolygonHandler::processStart(), RectangleHandler::processStart(), RenderCurveHandler::processStart(), and RenderTextHandler::processStart().
|
protected |
Referenced by addSBMLAttributes(), getStroke(), isSetStroke(), and setStroke().
|
protected |
Referenced by addSBMLAttributes(), getDashArray(), isSetDashArray(), parseDashArray(), and setDashArray().
|
protected |
Referenced by addSBMLAttributes(), getStrokeWidth(), isSetStrokeWidth(), and setStrokeWidth().