COPASI API
4.40.278
|
#include <CLRelAbsVector.h>
Public Member Functions | |
CLRelAbsVector (const RelAbsVector &source) | |
CLRelAbsVector (const std::string &coordString) | |
CLRelAbsVector (double a=0.0, double r=0.0) | |
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 (const std::string &coordString) |
void | setCoordinate (double abs, double rel=0.0) |
void | setRelativeValue (double rel) |
RelAbsVector * | toSBML () const |
std::string | toString () const |
Protected Attributes | |
double | mAbs |
double | mRel |
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.
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.
References setCoordinate().
CLRelAbsVector::CLRelAbsVector | ( | const RelAbsVector & | source | ) |
Constructor to generate object from the corresponding SBML object.
double CLRelAbsVector::getAbsoluteValue | ( | ) | const |
Returns the absolute coordinate value.
References mAbs.
Referenced by 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(), CLLayoutRenderer::getFontSpec(), CLGroup::isSetFontSize(), and CLText::isSetFontSize().
double CLRelAbsVector::getRelativeValue | ( | ) | const |
Returns the relative coordinate value.
References mRel.
Referenced by 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(), CLLayoutRenderer::getFontSpec(), and CLLayoutRenderer::map_gradient_color().
bool CLRelAbsVector::operator!= | ( | const CLRelAbsVector & | other | ) | const |
CLRelAbsVector CLRelAbsVector::operator+ | ( | const CLRelAbsVector & | other | ) | const |
addition operator
References CLRelAbsVector(), mAbs, and mRel.
CLRelAbsVector CLRelAbsVector::operator/ | ( | double | x | ) | const |
division by a double.
References CLRelAbsVector(), mAbs, and mRel.
CLRelAbsVector & CLRelAbsVector::operator= | ( | const CLRelAbsVector & | src | ) |
bool CLRelAbsVector::operator== | ( | const CLRelAbsVector & | other | ) | const |
void CLRelAbsVector::setAbsoluteValue | ( | double | abs | ) |
void CLRelAbsVector::setCoordinate | ( | const std::string & | coordString | ) |
void CLRelAbsVector::setCoordinate | ( | double | abs, |
double | rel = 0.0 |
||
) |
void CLRelAbsVector::setRelativeValue | ( | double | rel | ) |
Sets the relative coordinate value.
References mRel.
RelAbsVector * CLRelAbsVector::toSBML | ( | ) | const |
Converts this object to the corresponding SBML object.
Referenced by CLRenderPoint::addSBMLAttributes(), CLEllipse::toSBML(), CLGradientStop::toSBML(), CLGroup::toSBML(), CLImage::toSBML(), CLLinearGradient::toSBML(), CLRadialGradient::toSBML(), CLRectangle::toSBML(), CLRenderCubicBezier::toSBML(), and CLText::toSBML().
std::string CLRelAbsVector::toString | ( | ) | const |
Referenced by operator<<(), CCopasiXML::saveEllipseElement(), CCopasiXML::saveGradientStop(), CCopasiXML::saveImageElement(), CCopasiXML::saveLinearGradient(), CCopasiXML::saveRadialGradient(), CCopasiXML::saveRectangleElement(), CCopasiXML::saveRenderPoint(), and CCopasiXML::saveRenderTextElement().
|
protected |
Referenced by getAbsoluteValue(), operator+(), operator/(), operator=(), operator==(), setAbsoluteValue(), setCoordinate(), toSBML(), and toString().
|
protected |
Referenced by getRelativeValue(), operator+(), operator/(), operator=(), operator==(), setCoordinate(), setRelativeValue(), toSBML(), and toString().