COPASI API
4.16.103
|
#include <CLRelAbsVector.h>
Public Member Functions | |
CLRelAbsVector (double a=0.0, double r=0.0) | |
CLRelAbsVector (const std::string &coordString) | |
CLRelAbsVector (const RelAbsVector &source) | |
double | getAbsoluteValue () const |
double | getRelativeValue () const |
bool | operator!= (const CLRelAbsVector &other) const |
CLRelAbsVector | operator+ (const CLRelAbsVector &other) const |
CLRelAbsVector | operator/ (double x) const |
CLRelAbsVector & | operator= (const CLRelAbsVector &src) |
bool | operator== (const CLRelAbsVector &other) const |
void | setAbsoluteValue (double abs) |
void | setCoordinate (double abs, double rel=0.0) |
void | setCoordinate (const std::string &coordString) |
void | setRelativeValue (double rel) |
RelAbsVector * | toSBML () const |
std::string | toString () const |
Protected Attributes | |
double | mAbs |
double | mRel |
Definition at line 22 of file CLRelAbsVector.h.
CLRelAbsVector::CLRelAbsVector | ( | double | a = 0.0 , |
double | r = 0.0 |
||
) |
Constructor with two values. First value sets the absolute value, econd sets the relative value.
Definition at line 30 of file CLRelAbsVector.cpp.
Referenced by operator+(), and operator/().
CLRelAbsVector::CLRelAbsVector | ( | const std::string & | coordString | ) |
Constructor with a string. The string has to be parsed. If the string does not represent a valid value, the relative and the absolute component of the CLRelAbsVector are set to NaN.
Constructor with two values. First value sets the absolute value, econd sets the relative value.
Definition at line 38 of file CLRelAbsVector.cpp.
References setCoordinate().
CLRelAbsVector::CLRelAbsVector | ( | const RelAbsVector & | source | ) |
Constructor to generate object from the corresponding SBML object.
Definition at line 46 of file CLRelAbsVector.cpp.
double CLRelAbsVector::getAbsoluteValue | ( | ) | const |
Returns the absolute coordinate value.
Definition at line 161 of file CLRelAbsVector.cpp.
References mAbs.
Referenced by addToPath(), CLLayoutRenderer::convert_to_absolute(), CLLayoutRenderer::create_linear_gradient_texture(), CLLayoutRenderer::create_radial_gradient_texture(), CLLayoutRenderer::draw_ellipse(), CLLayoutRenderer::draw_image(), CLLayoutRenderer::draw_rectangle(), CLLayoutRenderer::draw_text(), fillItemFromEllipse(), fillItemFromImage(), fillItemFromRectangle(), fillItemFromText(), getFont(), CLLayoutRenderer::getFontSpec(), getLinearGradient(), getPath(), getRadialGradient(), CLText::isSetFontSize(), CLGroup::isSetFontSize(), and moveToPoint().
double CLRelAbsVector::getRelativeValue | ( | ) | const |
Returns the relative coordinate value.
Definition at line 169 of file CLRelAbsVector.cpp.
References mRel.
Referenced by addToPath(), CLGradientStops::CLGradientStops(), CLLayoutRenderer::convert_to_absolute(), CLLayoutRenderer::create_linear_gradient_texture(), CLLayoutRenderer::create_radial_gradient_texture(), CLLayoutRenderer::draw_ellipse(), CLLayoutRenderer::draw_image(), CLLayoutRenderer::draw_rectangle(), CLLayoutRenderer::draw_text(), fillItemFromEllipse(), fillItemFromImage(), fillItemFromRectangle(), fillItemFromText(), getFont(), CLLayoutRenderer::getFontSpec(), getLinearGradient(), getPath(), getRadialGradient(), CLText::isSetFontSize(), CLGroup::isSetFontSize(), and moveToPoint().
bool CLRelAbsVector::operator!= | ( | const CLRelAbsVector & | other | ) | const |
Definition at line 218 of file CLRelAbsVector.cpp.
CLRelAbsVector CLRelAbsVector::operator+ | ( | const CLRelAbsVector & | other | ) | const |
addition operator
Definition at line 177 of file CLRelAbsVector.cpp.
References CLRelAbsVector(), mAbs, and mRel.
CLRelAbsVector CLRelAbsVector::operator/ | ( | double | x | ) | const |
division by a double.
Definition at line 185 of file CLRelAbsVector.cpp.
References CLRelAbsVector(), mAbs, and mRel.
CLRelAbsVector & CLRelAbsVector::operator= | ( | const CLRelAbsVector & | src | ) |
Definition at line 254 of file CLRelAbsVector.cpp.
bool CLRelAbsVector::operator== | ( | const CLRelAbsVector & | other | ) | const |
Definition at line 190 of file CLRelAbsVector.cpp.
void CLRelAbsVector::setAbsoluteValue | ( | double | abs | ) |
void CLRelAbsVector::setCoordinate | ( | double | abs, |
double | rel = 0.0 |
||
) |
Sets the coordiantes.
Definition at line 55 of file CLRelAbsVector.cpp.
References abs, mAbs, and mRel.
Referenced by CLRelAbsVector().
void CLRelAbsVector::setCoordinate | ( | const std::string & | coordString | ) |
Sets the coordiantes from the given string.
Definition at line 64 of file CLRelAbsVector.cpp.
void CLRelAbsVector::setRelativeValue | ( | double | rel | ) |
Sets the relative coordinate value.
Definition at line 153 of file CLRelAbsVector.cpp.
References mRel.
RelAbsVector * CLRelAbsVector::toSBML | ( | ) | const |
Converts this object to the corresponding SBML object.
Definition at line 268 of file CLRelAbsVector.cpp.
Referenced by CLRenderPoint::addSBMLAttributes(), CLGradientStop::toSBML(), CLLinearGradient::toSBML(), CLRadialGradient::toSBML(), CLImage::toSBML(), CLEllipse::toSBML(), CLRenderCubicBezier::toSBML(), CLRectangle::toSBML(), CLText::toSBML(), and CLGroup::toSBML().
std::string CLRelAbsVector::toString | ( | ) | const |
Definition at line 223 of file CLRelAbsVector.cpp.
Referenced by operator<<(), CCopasiXML::saveEllipseElement(), CCopasiXML::saveGradientStop(), CCopasiXML::saveImageElement(), CCopasiXML::saveLinearGradient(), CCopasiXML::saveRadialGradient(), CCopasiXML::saveRectangleElement(), CCopasiXML::saveRenderPoint(), and CCopasiXML::saveRenderTextElement().
|
protected |
Definition at line 25 of file CLRelAbsVector.h.
Referenced by getAbsoluteValue(), operator+(), operator/(), operator=(), operator==(), setAbsoluteValue(), setCoordinate(), toSBML(), and toString().
|
protected |
Definition at line 26 of file CLRelAbsVector.h.
Referenced by getRelativeValue(), operator+(), operator/(), operator=(), operator==(), setCoordinate(), setRelativeValue(), toSBML(), and toString().