COPASI API
4.40.278
|
#include <CLTransformation.h>
Public Member Functions | |
CLTransformation () | |
CLTransformation (const double matrix[12]) | |
std::string | get3DTransformationString () const |
virtual const double * | getMatrix () const |
bool | is2DTransformation () const |
bool | isIdentityMatrix () const |
bool | isSetMatrix () const |
virtual void | parseTransformation (const std::string &transformationString) |
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 () |
Static Public Member Functions | |
static const double * | getIdentityMatrix () |
Static Public Attributes | |
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 Attributes | |
double | mMatrix [12] |
Protected Attributes inherited from CLBase | |
std::string | mTag |
CLTransformation::CLTransformation | ( | ) |
Default constructor. All matrix elements are set to NaN
References mMatrix.
CLTransformation::CLTransformation | ( | const double | matrix[12] | ) |
Constructor with values for the matrix.
Constructor with id and values for the matrix.
References mMatrix.
std::string CLTransformation::get3DTransformationString | ( | ) | const |
Returns a string to represent the 3D transformation.
References mMatrix.
Referenced by CCopasiXML::saveTransformationAttributes().
|
static |
Returns the 3D identity matrix. The matrix contains 12 values.
References IDENTITY3D.
Referenced by CLGroupAttributes::CLGroupAttributes(), and CLLayoutRenderer::draw_curve().
|
virtual |
Returns the matrix.
Returns the matrix. The matrix contains 12 values.
References mMatrix.
Referenced by CLLayoutRenderer::extract_transformation_attributes().
bool CLTransformation::is2DTransformation | ( | ) | const |
Checks if the transformation is a 2D transformation, i.e. we have to check some of the values.
References mMatrix.
Referenced by CCopasiXML::saveTransformationAttributes().
bool CLTransformation::isIdentityMatrix | ( | ) | const |
Returns true if the matrix is the identity matrix.
References IDENTITY3D, and mMatrix.
Referenced by CCopasiXML::saveTransformationAttributes().
bool CLTransformation::isSetMatrix | ( | ) | const |
Returns true if the matrix has been set or false otherwise.
References mMatrix.
Referenced by CLLayoutRenderer::extract_transformation_attributes(), and CCopasiXML::saveTransformationAttributes().
|
virtual |
Sets the transformation matrix from the given string. The string has to contain 12 numerical values seperated by ",". Otherwise the matrix is set to the identity matrix.
Reimplemented in CLTransformation2D.
References IDENTITY3D, mMatrix, and setMatrix().
Referenced by CLTransformation2D::parseTransformation().
void CLTransformation::setMatrix | ( | const double | m[12] | ) |
Sets the matrix.
References mMatrix.
Referenced by parseTransformation(), and CLTransformation2D::setMatrix().
|
static |
Referenced by CLTransformation2D::CLTransformation2D(), getIdentityMatrix(), isIdentityMatrix(), and parseTransformation().
|
protected |