COPASI API
4.16.103
|
#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]) |
![]() | |
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] |
![]() | |
std::string | mTag |
Definition at line 23 of file CLTransformation.h.
CLTransformation::CLTransformation | ( | ) |
Default constructor. All matrix elements are set to NaN
Definition at line 28 of file CLTransformation.cpp.
References mMatrix.
CLTransformation::CLTransformation | ( | const double | matrix[12] | ) |
Constructor with values for the matrix.
Constructor with id and values for the matrix.
Definition at line 41 of file CLTransformation.cpp.
References mMatrix.
std::string CLTransformation::get3DTransformationString | ( | ) | const |
Returns a string to represent the 3D transformation.
Definition at line 125 of file CLTransformation.cpp.
References mMatrix.
Referenced by CCopasiXML::saveTransformationAttributes().
|
static |
Returns the 3D identity matrix. The matrix contains 12 values.
Definition at line 77 of file CLTransformation.cpp.
References IDENTITY3D.
Referenced by CLGroupAttributes::CLGroupAttributes(), and CLLayoutRenderer::draw_curve().
|
virtual |
Returns the matrix.
Returns the matrix. The matrix contains 12 values.
Definition at line 68 of file CLTransformation.cpp.
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.
Definition at line 112 of file CLTransformation.cpp.
References mMatrix.
Referenced by CCopasiXML::saveTransformationAttributes().
bool CLTransformation::isIdentityMatrix | ( | ) | const |
Returns true if the matrix is the identity matrix.
Definition at line 103 of file CLTransformation.cpp.
References IDENTITY3D, and mMatrix.
Referenced by CCopasiXML::saveTransformationAttributes().
bool CLTransformation::isSetMatrix | ( | ) | const |
Returns true if the matrix has been set or false otherwise.
Definition at line 87 of file CLTransformation.cpp.
References mMatrix.
Referenced by CLLayoutRenderer::extract_transformation_attributes(), CCopasiXML::saveTransformationAttributes(), and transform().
|
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.
Definition at line 145 of file CLTransformation.cpp.
References IDENTITY3D, mMatrix, and setMatrix().
Referenced by CLTransformation2D::parseTransformation().
void CLTransformation::setMatrix | ( | const double | m[12] | ) |
Sets the matrix.
Definition at line 54 of file CLTransformation.cpp.
References mMatrix.
Referenced by parseTransformation(), and CLTransformation2D::setMatrix().
|
static |
Definition at line 29 of file CLTransformation.h.
Referenced by CLTransformation2D::CLTransformation2D(), getIdentityMatrix(), isIdentityMatrix(), and parseTransformation().
|
protected |
Definition at line 26 of file CLTransformation.h.
Referenced by CLTransformation(), CLTransformation2D::CLTransformation2D(), get3DTransformationString(), getMatrix(), is2DTransformation(), isIdentityMatrix(), isSetMatrix(), parseTransformation(), setMatrix(), CLTransformation2D::updateMatrix2D(), and CLTransformation2D::updateMatrix3D().