COPASI API
4.16.103
Main Page
Namespaces
Classes
Files
File List
File Members
copasi
layout
CLTransformation2D.h
Go to the documentation of this file.
1
// Begin CVS Header
2
// $Source: /Volumes/Home/Users/shoops/cvs/copasi_dev/copasi/layout/CLTransformation2D.h,v $
3
// $Revision: 1.3 $
4
// $Name: $
5
// $Author: shoops $
6
// $Date: 2011/09/30 16:35:20 $
7
// End CVS Header
8
9
// Copyright (C) 2011 - 2010 by Pedro Mendes, Virginia Tech Intellectual
10
// Properties, Inc., University of Heidelberg, and The University
11
// of Manchester.
12
// All rights reserved.
13
14
#ifndef CLTransformation2D_H__
15
#define CLTransformation2D_H__
16
17
#include "
copasi/layout/CLTransformation.h
"
18
19
class
Transformation2D;
20
21
class
CLTransformation2D
:
public
CLTransformation
22
{
23
public
:
24
static
const
double
IDENTITY2D
[6];
25
26
/**
27
* Returns a 2D identity matrix.
28
* The matrix contains 6 values.
29
*/
30
static
const
double
*
getIdentityMatrix2D
();
31
32
/**
33
* Constructor.
34
*/
35
CLTransformation2D
();
36
37
/**
38
* Constructor with a matrix.
39
*/
40
CLTransformation2D
(
const
double
m[6]);
41
42
/**
43
* Constructor to generate object from the corresponding SBML object.
44
*/
45
CLTransformation2D
(
const
Transformation2D& source);
46
47
/**
48
* Sets the 2D matrix.
49
* The 3D matrix is updated accordingly.
50
*/
51
void
setMatrix2D
(
const
double
m[6]);
52
53
/**
54
* Sets the 3D matrix.
55
* The 2D matrix is updated accordingly.
56
*/
57
void
setMatrix
(
const
double
m[12]);
58
59
/**
60
* Returns the matrix.
61
* The matrix contains 6 values.
62
*/
63
const
double
*
getMatrix2D
()
const
;
64
65
/**
66
* Returns a string to represent the 2D transformation.
67
*/
68
std::string
get2DTransformationString
()
const
;
69
70
/**
71
* Sets the transformation matrix from the given string.
72
* The string has to contain either 6 or 12 numerical values seperated by ",".
73
* Otherwise the matrix is set to the identity matrix.
74
*/
75
virtual
void
parseTransformation
(
const
std::string& transformationString);
76
77
protected
:
78
79
/**
80
* Sets the 3D matrix from the 2D matrix.
81
*/
82
void
updateMatrix3D
();
83
84
/**
85
* Fills the 2D matrix with data from the 3D matrix.
86
*/
87
void
updateMatrix2D
();
88
89
/**
90
* the 2D matrix.
91
*/
92
double
mMatrix2D
[6];
93
94
/**
95
* Adds the attributes for a 2d transformation object to the passed in.
96
* object.
97
*/
98
virtual
void
addSBMLAttributes
(Transformation2D* pTransformation)
const
;
99
};
100
101
#endif
/* CLTransformation2D_H__ */
CLTransformation2D::get2DTransformationString
std::string get2DTransformationString() const
Definition:
CLTransformation2D.cpp:96
CLTransformation2D::addSBMLAttributes
virtual void addSBMLAttributes(Transformation2D *pTransformation) const
Definition:
CLTransformation2D.cpp:189
CLTransformation2D::setMatrix2D
void setMatrix2D(const double m[6])
Definition:
CLTransformation2D.cpp:64
CLTransformation2D::IDENTITY2D
static const double IDENTITY2D[6]
Definition:
CLTransformation2D.h:24
CLTransformation2D
Definition:
CLTransformation2D.h:21
CLTransformation
Definition:
CLTransformation.h:23
CLTransformation2D::updateMatrix3D
void updateMatrix3D()
Definition:
CLTransformation2D.cpp:114
CLTransformation2D::setMatrix
void setMatrix(const double m[12])
Definition:
CLTransformation2D.cpp:143
CLTransformation2D::CLTransformation2D
CLTransformation2D()
Definition:
CLTransformation2D.cpp:25
CLTransformation2D::getMatrix2D
const double * getMatrix2D() const
Definition:
CLTransformation2D.cpp:80
CLTransformation2D::updateMatrix2D
void updateMatrix2D()
Definition:
CLTransformation2D.cpp:133
CLTransformation2D::mMatrix2D
double mMatrix2D[6]
Definition:
CLTransformation2D.h:92
CLTransformation.h
CLTransformation2D::getIdentityMatrix2D
static const double * getIdentityMatrix2D()
Definition:
CLTransformation2D.cpp:89
CLTransformation2D::parseTransformation
virtual void parseTransformation(const std::string &transformationString)
Definition:
CLTransformation2D.cpp:149
Generated on Thu Jul 2 2015 14:50:18 for COPASI API by
1.8.6