COPASI API  4.16.103
Public Member Functions | Protected Attributes | Private Member Functions | List of all members
CLRectangle Class Reference

#include <CLRectangle.h>

Inheritance diagram for CLRectangle:
Inheritance graph
[legend]
Collaboration diagram for CLRectangle:
Collaboration graph
[legend]

Public Member Functions

 CLRectangle (CCopasiContainer *pParent=NULL)
 
 CLRectangle (const CLRectangle &source, CCopasiContainer *pParent=NULL)
 
 CLRectangle (const CLRelAbsVector &x, const CLRelAbsVector &y, const CLRelAbsVector &z, const CLRelAbsVector &w, const CLRelAbsVector &h, CCopasiContainer *pParent=NULL)
 
 CLRectangle (const CLRelAbsVector &x, const CLRelAbsVector &y, const CLRelAbsVector &w, const CLRelAbsVector &h, CCopasiContainer *pParent=NULL)
 
 CLRectangle (const sbmlRectangle &source, CCopasiContainer *pParent=NULL)
 
const CLRelAbsVectorgetHeight () const
 
CLRelAbsVectorgetHeight ()
 
const std::string & getKey () const
 
const CLRelAbsVectorgetRadiusX () const
 
CLRelAbsVectorgetRadiusX ()
 
const CLRelAbsVectorgetRadiusY () const
 
CLRelAbsVectorgetRadiusY ()
 
const CLRelAbsVectorgetWidth () const
 
CLRelAbsVectorgetWidth ()
 
const CLRelAbsVectorgetX () const
 
CLRelAbsVectorgetX ()
 
const CLRelAbsVectorgetY () const
 
CLRelAbsVectorgetY ()
 
const CLRelAbsVectorgetZ () const
 
CLRelAbsVectorgetZ ()
 
void setCoordinates (const CLRelAbsVector &x, const CLRelAbsVector &y, const CLRelAbsVector &z)
 
void setCoordinatesAndSize (const CLRelAbsVector &x, const CLRelAbsVector &y, const CLRelAbsVector &z, const CLRelAbsVector &w, const CLRelAbsVector &h)
 
void setHeight (const CLRelAbsVector &h)
 
void setRadii (const CLRelAbsVector &rx, const CLRelAbsVector &ry)
 
void setRadiusX (const CLRelAbsVector &rx)
 
void setRadiusY (const CLRelAbsVector &ry)
 
void setSize (const CLRelAbsVector &w, const CLRelAbsVector &h)
 
void setWidth (const CLRelAbsVector &w)
 
void setX (const CLRelAbsVector &x)
 
void setY (const CLRelAbsVector &y)
 
void setZ (const CLRelAbsVector &z)
 
sbmlRectangletoSBML (unsigned int level, unsigned int version) const
 
 ~CLRectangle ()
 
- Public Member Functions inherited from CLGraphicalPrimitive2D
virtual void addSBMLAttributes (GraphicalPrimitive2D *pPrimitive) const
 
 CLGraphicalPrimitive2D ()
 
 CLGraphicalPrimitive2D (const GraphicalPrimitive2D &source)
 
const std::string & getFillColor () const
 
FILL_RULE getFillRule () const
 
bool isSetFill () const
 
bool isSetFillRule () const
 
void setFillColor (const std::string &color)
 
void setFillRule (FILL_RULE rule)
 
- Public Member Functions inherited from CLGraphicalPrimitive1D
virtual void addSBMLAttributes (GraphicalPrimitive1D *pPrimitive) const
 
 CLGraphicalPrimitive1D ()
 
 CLGraphicalPrimitive1D (const GraphicalPrimitive1D &source)
 
const std::vector< unsigned int > & getDashArray () const
 
const std::string & getStroke () const
 
double getStrokeWidth () const
 
bool isSetDashArray () const
 
bool isSetStroke () const
 
bool isSetStrokeWidth () const
 
void parseDashArray (const std::string &s)
 
void setDashArray (const std::vector< unsigned int > &array)
 
void setStroke (const std::string &key)
 
void setStrokeWidth (double width)
 
- Public Member Functions inherited from CLTransformation2D
 CLTransformation2D ()
 
 CLTransformation2D (const double m[6])
 
 CLTransformation2D (const Transformation2D &source)
 
std::string get2DTransformationString () const
 
const double * getMatrix2D () const
 
virtual void parseTransformation (const std::string &transformationString)
 
void setMatrix (const double m[12])
 
void setMatrix2D (const double m[6])
 
- Public Member Functions inherited from CLTransformation
 CLTransformation ()
 
 CLTransformation (const double matrix[12])
 
std::string get3DTransformationString () const
 
virtual const double * getMatrix () const
 
bool is2DTransformation () const
 
bool isIdentityMatrix () const
 
bool isSetMatrix () const
 
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 ()
 
- Public Member Functions inherited from CCopasiObject
void addDirectDependency (const CCopasiObject *pObject)
 
 CCopasiObject (const CCopasiObject &src, const CCopasiContainer *pParent=NULL)
 
void clearDirectDependencies ()
 
void clearRefresh ()
 
bool dependsOn (DataObjectSet candidates, const DataObjectSet &context=DataObjectSet()) const
 
void getAllDependencies (DataObjectSet &dependencies, const DataObjectSet &context) const
 
virtual CCopasiObjectName getCN () const
 
virtual const DataObjectSetgetDirectDependencies (const DataObjectSet &context=DataObjectSet()) const
 
virtual const CObjectInterfacegetObject (const CCopasiObjectName &cn) const
 
CCopasiContainergetObjectAncestor (const std::string &type) const
 
CCopasiDataModelgetObjectDataModel ()
 
const CCopasiDataModelgetObjectDataModel () const
 
virtual std::string getObjectDisplayName (bool regular=true, bool richtext=false) const
 
const std::string & getObjectName () const
 
CCopasiContainergetObjectParent () const
 
const std::string & getObjectType () const
 
virtual const
CObjectInterface::ObjectSet
getPrerequisites () const
 
virtual RefreshgetRefresh () const
 
virtual std::string getUnits () const
 
UpdateMethodgetUpdateMethod () const
 
virtual const CCopasiObjectgetValueObject () const
 
virtual voidgetValuePointer () const
 
bool hasCircularDependencies (DataObjectSet &candidates, DataObjectSet &verified, const DataObjectSet &context) const
 
bool hasUpdateMethod () const
 
bool isArray () const
 
bool isContainer () const
 
bool isDataModel () const
 
bool isMatrix () const
 
bool isNameVector () const
 
bool isNonUniqueName () const
 
virtual bool isPrerequisiteForContext (const CObjectInterface *pObject, const CMath::SimulationContextFlag &context, const CObjectInterface::ObjectSet &changedObjects) const
 
bool isReference () const
 
bool isRoot () const
 
bool isSeparator () const
 
bool isStaticString () const
 
bool isValueBool () const
 
bool isValueDbl () const
 
bool isValueInt () const
 
bool isValueInt64 () const
 
bool isValueString () const
 
bool isVector () const
 
virtual bool mustBeDeleted (const DataObjectSet &deletedObjects) const
 
virtual void print (std::ostream *ostream) const
 
void removeDirectDependency (const CCopasiObject *pObject)
 
void setDirectDependencies (const DataObjectSet &directDependencies)
 
bool setObjectName (const std::string &name)
 
virtual bool setObjectParent (const CCopasiContainer *pParent)
 
void setObjectValue (const C_FLOAT64 &value)
 
void setObjectValue (const C_INT32 &value)
 
void setObjectValue (const bool &value)
 
template<class CType >
void setRefresh (CType *pType, void(CType::*method)(void))
 
template<class CType >
void setUpdateMethod (CType *pType, void(CType::*method)(const C_FLOAT64 &))
 
template<class CType >
void setUpdateMethod (CType *pType, void(CType::*method)(const C_INT32 &))
 
template<class CType >
void setUpdateMethod (CType *pType, void(CType::*method)(const bool &))
 
virtual ~CCopasiObject ()
 
- Public Member Functions inherited from CObjectInterface
 CObjectInterface ()
 
virtual ~CObjectInterface ()
 

Protected Attributes

CLRelAbsVector mHeight
 
std::string mKey
 
CLRelAbsVector mRX
 
CLRelAbsVector mRY
 
CLRelAbsVector mWidth
 
CLRelAbsVector mX
 
CLRelAbsVector mY
 
CLRelAbsVector mZ
 
- Protected Attributes inherited from CLGraphicalPrimitive2D
std::string mFill
 
FILL_RULE mFillRule
 
- Protected Attributes inherited from CLGraphicalPrimitive1D
std::string mStroke
 
std::vector< unsigned int > mStrokeDashArray
 
double mStrokeWidth
 
- Protected Attributes inherited from CLTransformation2D
double mMatrix2D [6]
 
- Protected Attributes inherited from CLTransformation
double mMatrix [12]
 
- Protected Attributes inherited from CLBase
std::string mTag
 

Private Member Functions

CLRectangleoperator= (const CLRectangle &source)
 

Additional Inherited Members

- Public Types inherited from CLGraphicalPrimitive2D
enum  FILL_RULE { UNSET, NONZERO, EVENODD, INHERIT }
 
- Public Types inherited from CCopasiObject
typedef std::set< const
CCopasiObject * > 
DataObjectSet
 
typedef std::vector< Refresh * > DataUpdateSequence
 
- Public Types inherited from CObjectInterface
typedef std::set< const
CObjectInterface * > 
ObjectSet
 
typedef std::vector
< CObjectInterface * > 
UpdateSequence
 
- Static Public Member Functions inherited from CLTransformation2D
static const double * getIdentityMatrix2D ()
 
- Static Public Member Functions inherited from CLTransformation
static const double * getIdentityMatrix ()
 
- Static Public Member Functions inherited from CCopasiObject
static std::vector< Refresh * > buildUpdateSequence (const DataObjectSet &objects, const DataObjectSet &uptoDateObjects, const DataObjectSet &context=DataObjectSet())
 
static void setRenameHandler (CRenameHandler *rh)
 
- Static Public Attributes inherited from CLTransformation2D
static const double IDENTITY2D [6] = {1.0, 0.0, 0.0, 1.0, 0.0, 0.0}
 
- Static Public Attributes inherited from CLTransformation
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 Types inherited from CCopasiObject
enum  Flag {
  Container = 0x1, Vector = 0x2, Matrix = 0x4, NameVector = 0x8,
  Reference = 0x10, ValueBool = 0x20, ValueInt = 0x40, ValueInt64 = 0x80,
  ValueDbl = 0x100, NonUniqueName = 0x200, StaticString = 0x400, ValueString = 0x800,
  Separator = 0x1000, ModelEntity = 0x2000, Array = 0x4000, DataModel = 0x8000,
  Root = 0x10000, Gui = 0x20000
}
 
- Protected Member Functions inherited from CLTransformation2D
virtual void addSBMLAttributes (Transformation2D *pTransformation) const
 
void updateMatrix2D ()
 
void updateMatrix3D ()
 
- Protected Member Functions inherited from CCopasiObject
 CCopasiObject ()
 
 CCopasiObject (const std::string &name, const CCopasiContainer *pParent=NULL, const std::string &type="CN", const unsigned C_INT32 &flag=0)
 
- Static Protected Attributes inherited from CCopasiObject
static CRenameHandlersmpRenameHandler = NULL
 

Detailed Description

Definition at line 24 of file CLRectangle.h.

Constructor & Destructor Documentation

CLRectangle::CLRectangle ( CCopasiContainer pParent = NULL)

Constructor.

Definition at line 25 of file CLRectangle.cpp.

References CKeyFactory::add(), CCopasiRootContainer::getKeyFactory(), and mKey.

25  :
27  CCopasiObject("Rectangle", pParent),
28  mKey("")
29 {
30  this->mKey = CCopasiRootContainer::getKeyFactory()->add("Rectangle", this);
31 }
std::string add(const std::string &prefix, CCopasiObject *pObject)
std::string mKey
Definition: CLRectangle.h:42
static CKeyFactory * getKeyFactory()
CLRectangle::CLRectangle ( const CLRectangle source,
CCopasiContainer pParent = NULL 
)

Copy Constructor.

Definition at line 36 of file CLRectangle.cpp.

References CKeyFactory::add(), CCopasiRootContainer::getKeyFactory(), and mKey.

36  :
37  CLGraphicalPrimitive2D(source),
38  CCopasiObject(source, pParent),
39  mX(source.mX),
40  mY(source.mY),
41  mZ(source.mZ),
42  mWidth(source.mWidth),
43  mHeight(source.mHeight),
44  mRX(source.mRX),
45  mRY(source.mRY),
46  mKey("")
47 {
48  this->mKey = CCopasiRootContainer::getKeyFactory()->add("Rectangle", this);
49 }
CLRelAbsVector mRY
Definition: CLRectangle.h:37
CLRelAbsVector mY
Definition: CLRectangle.h:32
CLRelAbsVector mZ
Definition: CLRectangle.h:33
CLRelAbsVector mWidth
Definition: CLRectangle.h:34
CLRelAbsVector mX
Definition: CLRectangle.h:31
CLRelAbsVector mRX
Definition: CLRectangle.h:36
std::string add(const std::string &prefix, CCopasiObject *pObject)
std::string mKey
Definition: CLRectangle.h:42
CLRelAbsVector mHeight
Definition: CLRectangle.h:35
static CKeyFactory * getKeyFactory()
CLRectangle::CLRectangle ( const CLRelAbsVector x,
const CLRelAbsVector y,
const CLRelAbsVector z,
const CLRelAbsVector w,
const CLRelAbsVector h,
CCopasiContainer pParent = NULL 
)

Constructor that takes x, y and z coordinate values, the width and the height.

Constructor that takes an id, the x, y and z coordinate values, the width and the height.

Definition at line 55 of file CLRectangle.cpp.

References CKeyFactory::add(), CCopasiRootContainer::getKeyFactory(), and mKey.

55  :
57  CCopasiObject("Rectangle", pParent),
58  mX(x),
59  mY(y),
60  mZ(z),
61  mWidth(w),
62  mHeight(h),
63  mRX(CLRelAbsVector(0.0, 0.0)),
64  mRY(CLRelAbsVector(0.0, 0.0)),
65  mKey("")
66 {
67  this->mKey = CCopasiRootContainer::getKeyFactory()->add("Rectangle", this);
68 }
CLRelAbsVector mRY
Definition: CLRectangle.h:37
CLRelAbsVector mY
Definition: CLRectangle.h:32
CLRelAbsVector mZ
Definition: CLRectangle.h:33
CLRelAbsVector mWidth
Definition: CLRectangle.h:34
CLRelAbsVector mX
Definition: CLRectangle.h:31
CLRelAbsVector mRX
Definition: CLRectangle.h:36
std::string add(const std::string &prefix, CCopasiObject *pObject)
std::string mKey
Definition: CLRectangle.h:42
CLRelAbsVector mHeight
Definition: CLRectangle.h:35
static CKeyFactory * getKeyFactory()
CLRectangle::CLRectangle ( const CLRelAbsVector x,
const CLRelAbsVector y,
const CLRelAbsVector w,
const CLRelAbsVector h,
CCopasiContainer pParent = NULL 
)

Constructor that takes x and y coordinate values, the width and the height.

Constructor that takes an id, x and y coordinate values, the width and the height.

Definition at line 74 of file CLRectangle.cpp.

References CKeyFactory::add(), CCopasiRootContainer::getKeyFactory(), and mKey.

74  :
76  CCopasiObject("Rectangle", pParent),
77  mX(x),
78  mY(y),
79  mZ(CLRelAbsVector(0.0, 0.0)),
80  mWidth(w),
81  mHeight(h),
82  mRX(CLRelAbsVector(0.0, 0.0)),
83  mRY(CLRelAbsVector(0.0, 0.0)),
84  mKey("")
85 {
86  this->mKey = CCopasiRootContainer::getKeyFactory()->add("Rectangle", this);
87 }
CLRelAbsVector mRY
Definition: CLRectangle.h:37
CLRelAbsVector mY
Definition: CLRectangle.h:32
CLRelAbsVector mZ
Definition: CLRectangle.h:33
CLRelAbsVector mWidth
Definition: CLRectangle.h:34
CLRelAbsVector mX
Definition: CLRectangle.h:31
CLRelAbsVector mRX
Definition: CLRectangle.h:36
std::string add(const std::string &prefix, CCopasiObject *pObject)
std::string mKey
Definition: CLRectangle.h:42
CLRelAbsVector mHeight
Definition: CLRectangle.h:35
static CKeyFactory * getKeyFactory()
CLRectangle::CLRectangle ( const sbmlRectangle source,
CCopasiContainer pParent = NULL 
)

Constructor to generate object from the corresponding SBML object.

CLRectangle::~CLRectangle ( )

Destructor.

Destructor

Definition at line 110 of file CLRectangle.cpp.

References CCopasiRootContainer::getKeyFactory(), mKey, and CKeyFactory::remove().

111 {
113 }
bool remove(const std::string &key)
std::string mKey
Definition: CLRectangle.h:42
static CKeyFactory * getKeyFactory()

Member Function Documentation

const CLRelAbsVector & CLRectangle::getHeight ( ) const

Returns the height.

Definition at line 187 of file CLRectangle.cpp.

References mHeight.

Referenced by CLLayoutRenderer::draw_rectangle(), fillItemFromRectangle(), getPath(), and CCopasiXML::saveRectangleElement().

188 {
189  return this->mHeight;
190 }
CLRelAbsVector mHeight
Definition: CLRectangle.h:35
CLRelAbsVector & CLRectangle::getHeight ( )

Returns the height.

Definition at line 243 of file CLRectangle.cpp.

References mHeight.

244 {
245  return this->mHeight;
246 }
CLRelAbsVector mHeight
Definition: CLRectangle.h:35
const std::string & CLRectangle::getKey ( ) const
virtual

Returns the key string of the object.

Returns the key of the rectangle

Reimplemented from CCopasiObject.

Definition at line 323 of file CLRectangle.cpp.

References mKey.

324 {
325  return this->mKey;
326 }
std::string mKey
Definition: CLRectangle.h:42
const CLRelAbsVector & CLRectangle::getRadiusX ( ) const

Returns the corner radius along th x axis.

Definition at line 195 of file CLRectangle.cpp.

References mRX.

Referenced by CLLayoutRenderer::draw_rectangle(), fillItemFromRectangle(), getPath(), and CCopasiXML::saveRectangleElement().

196 {
197  return this->mRX;
198 }
CLRelAbsVector mRX
Definition: CLRectangle.h:36
CLRelAbsVector & CLRectangle::getRadiusX ( )

Returns the corner radius along th x axis.

Definition at line 251 of file CLRectangle.cpp.

References mRX.

252 {
253  return this->mRX;
254 }
CLRelAbsVector mRX
Definition: CLRectangle.h:36
const CLRelAbsVector & CLRectangle::getRadiusY ( ) const

Returns the corner radius along the y axis.

Definition at line 203 of file CLRectangle.cpp.

References mRY.

Referenced by CLLayoutRenderer::draw_rectangle(), fillItemFromRectangle(), getPath(), and CCopasiXML::saveRectangleElement().

204 {
205  return this->mRY;
206 }
CLRelAbsVector mRY
Definition: CLRectangle.h:37
CLRelAbsVector & CLRectangle::getRadiusY ( )

Returns the corner radius along the y axis.

Definition at line 259 of file CLRectangle.cpp.

References mRY.

260 {
261  return this->mRY;
262 }
CLRelAbsVector mRY
Definition: CLRectangle.h:37
const CLRelAbsVector & CLRectangle::getWidth ( ) const

Returns the width.

Definition at line 179 of file CLRectangle.cpp.

References mWidth.

Referenced by CLLayoutRenderer::draw_rectangle(), fillItemFromRectangle(), getPath(), and CCopasiXML::saveRectangleElement().

180 {
181  return this->mWidth;
182 }
CLRelAbsVector mWidth
Definition: CLRectangle.h:34
CLRelAbsVector & CLRectangle::getWidth ( )

Returns the width.

Definition at line 235 of file CLRectangle.cpp.

References mWidth.

236 {
237  return this->mWidth;
238 }
CLRelAbsVector mWidth
Definition: CLRectangle.h:34
const CLRelAbsVector & CLRectangle::getX ( ) const

Returns the x coordinate.

Definition at line 155 of file CLRectangle.cpp.

References mX.

Referenced by CLLayoutRenderer::draw_rectangle(), fillItemFromRectangle(), getPath(), and CCopasiXML::saveRectangleElement().

156 {
157  return this->mX;
158 }
CLRelAbsVector mX
Definition: CLRectangle.h:31
CLRelAbsVector & CLRectangle::getX ( )

Returns the x coordinate.

Definition at line 211 of file CLRectangle.cpp.

References mX.

212 {
213  return this->mX;
214 }
CLRelAbsVector mX
Definition: CLRectangle.h:31
const CLRelAbsVector & CLRectangle::getY ( ) const

Returns the y coordinate.

Definition at line 163 of file CLRectangle.cpp.

References mY.

Referenced by CLLayoutRenderer::draw_rectangle(), fillItemFromRectangle(), getPath(), and CCopasiXML::saveRectangleElement().

164 {
165  return this->mY;
166 }
CLRelAbsVector mY
Definition: CLRectangle.h:32
CLRelAbsVector & CLRectangle::getY ( )

Returns the y coordinate.

Definition at line 219 of file CLRectangle.cpp.

References mY.

220 {
221  return this->mY;
222 }
CLRelAbsVector mY
Definition: CLRectangle.h:32
const CLRelAbsVector & CLRectangle::getZ ( ) const

Returns the z coordinate.

Definition at line 171 of file CLRectangle.cpp.

References mZ.

Referenced by CLLayoutRenderer::draw_rectangle(), and CCopasiXML::saveRectangleElement().

172 {
173  return this->mZ;
174 }
CLRelAbsVector mZ
Definition: CLRectangle.h:33
CLRelAbsVector & CLRectangle::getZ ( )

Returns the z coordinate.

Definition at line 227 of file CLRectangle.cpp.

References mZ.

228 {
229  return this->mZ;
230 }
CLRelAbsVector mZ
Definition: CLRectangle.h:33
CLRectangle& CLRectangle::operator= ( const CLRectangle source)
private
void CLRectangle::setCoordinates ( const CLRelAbsVector x,
const CLRelAbsVector y,
const CLRelAbsVector z 
)

Sets the position.

Definition at line 127 of file CLRectangle.cpp.

References mX, mY, and mZ.

Referenced by setCoordinatesAndSize().

128 {
129  this->mX = x;
130  this->mY = y;
131  this->mZ = z;
132 }
CLRelAbsVector mY
Definition: CLRectangle.h:32
CLRelAbsVector mZ
Definition: CLRectangle.h:33
CLRelAbsVector mX
Definition: CLRectangle.h:31
void CLRectangle::setCoordinatesAndSize ( const CLRelAbsVector x,
const CLRelAbsVector y,
const CLRelAbsVector z,
const CLRelAbsVector w,
const CLRelAbsVector h 
)

Sets the position, the width and the height.

Definition at line 118 of file CLRectangle.cpp.

References setCoordinates(), and setSize().

Referenced by CCopasiXMLParser::RectangleElement::start().

119 {
120  this->setCoordinates(x, y, z);
121  this->setSize(w, h);
122 }
void setSize(const CLRelAbsVector &w, const CLRelAbsVector &h)
void setCoordinates(const CLRelAbsVector &x, const CLRelAbsVector &y, const CLRelAbsVector &z)
void CLRectangle::setHeight ( const CLRelAbsVector h)

Sets the height.

Definition at line 275 of file CLRectangle.cpp.

References mHeight.

276 {
277  this->mHeight = h;
278 }
CLRelAbsVector mHeight
Definition: CLRectangle.h:35
void CLRectangle::setRadii ( const CLRelAbsVector rx,
const CLRelAbsVector ry 
)

Sets the corner radii.

Sets the size.

Definition at line 146 of file CLRectangle.cpp.

References mRX, and mRY.

Referenced by CCopasiXMLParser::RectangleElement::start().

147 {
148  this->mRX = rx;
149  this->mRY = ry;
150 }
CLRelAbsVector mRY
Definition: CLRectangle.h:37
CLRelAbsVector mRX
Definition: CLRectangle.h:36
void CLRectangle::setRadiusX ( const CLRelAbsVector rx)

Sets the x radius for the corners.

Definition at line 283 of file CLRectangle.cpp.

References mRX.

284 {
285  this->mRX = rx;
286 }
CLRelAbsVector mRX
Definition: CLRectangle.h:36
void CLRectangle::setRadiusY ( const CLRelAbsVector ry)

Sets the y radius for the corners.

Definition at line 291 of file CLRectangle.cpp.

References mRY.

292 {
293  this->mRY = ry;
294 }
CLRelAbsVector mRY
Definition: CLRectangle.h:37
void CLRectangle::setSize ( const CLRelAbsVector w,
const CLRelAbsVector h 
)

Sets the size.

Definition at line 137 of file CLRectangle.cpp.

References mHeight, and mWidth.

Referenced by setCoordinatesAndSize().

138 {
139  this->mWidth = w;
140  this->mHeight = h;
141 }
CLRelAbsVector mWidth
Definition: CLRectangle.h:34
CLRelAbsVector mHeight
Definition: CLRectangle.h:35
void CLRectangle::setWidth ( const CLRelAbsVector w)

Sets the width.

Definition at line 267 of file CLRectangle.cpp.

References mWidth.

268 {
269  this->mWidth = w;
270 }
CLRelAbsVector mWidth
Definition: CLRectangle.h:34
void CLRectangle::setX ( const CLRelAbsVector x)

Sets the x position.

Definition at line 299 of file CLRectangle.cpp.

References mX.

300 {
301  this->mX = x;
302 }
CLRelAbsVector mX
Definition: CLRectangle.h:31
void CLRectangle::setY ( const CLRelAbsVector y)

Sets the y position.

Definition at line 307 of file CLRectangle.cpp.

References mY.

308 {
309  this->mY = y;
310 }
CLRelAbsVector mY
Definition: CLRectangle.h:32
void CLRectangle::setZ ( const CLRelAbsVector z)

Sets the z position.

Definition at line 315 of file CLRectangle.cpp.

References mZ.

316 {
317  this->mZ = z;
318 }
CLRelAbsVector mZ
Definition: CLRectangle.h:33
Rectangle * CLRectangle::toSBML ( unsigned int  level,
unsigned int  version 
) const

Converts this object to the corresponding SBML object.

Definition at line 331 of file CLRectangle.cpp.

References CLGraphicalPrimitive2D::addSBMLAttributes(), mHeight, mRX, mRY, mWidth, mX, mY, mZ, and CLRelAbsVector::toSBML().

332 {
333  Rectangle* pRectangle = new Rectangle(level, version);
334  RelAbsVector* pV1 = this->mX.toSBML();
335  RelAbsVector* pV2 = this->mY.toSBML();
336  RelAbsVector* pV3 = this->mZ.toSBML();
337  RelAbsVector* pV4 = this->mWidth.toSBML();
338  RelAbsVector* pV5 = this->mHeight.toSBML();
339  pRectangle->setCoordinatesAndSize(*pV1, *pV2, *pV3, *pV4, *pV5);
340  delete pV1;
341  delete pV2;
342  delete pV3;
343  delete pV4;
344  delete pV5;
345  this->addSBMLAttributes(pRectangle);
346  pV1 = this->mRX.toSBML();
347  pV2 = this->mRY.toSBML();
348  pRectangle->setRadii(*pV1, *pV2);
349  delete pV1;
350  delete pV2;
351  return pRectangle;
352 }
CLRelAbsVector mRY
Definition: CLRectangle.h:37
CLRelAbsVector mY
Definition: CLRectangle.h:32
CLRelAbsVector mZ
Definition: CLRectangle.h:33
CLRelAbsVector mWidth
Definition: CLRectangle.h:34
CLRelAbsVector mX
Definition: CLRectangle.h:31
CLRelAbsVector mRX
Definition: CLRectangle.h:36
RelAbsVector * toSBML() const
virtual void addSBMLAttributes(GraphicalPrimitive2D *pPrimitive) const
CLRelAbsVector mHeight
Definition: CLRectangle.h:35

Member Data Documentation

CLRelAbsVector CLRectangle::mHeight
protected

Definition at line 35 of file CLRectangle.h.

Referenced by getHeight(), setHeight(), setSize(), and toSBML().

std::string CLRectangle::mKey
protected

key for the object.

Definition at line 42 of file CLRectangle.h.

Referenced by CLRectangle(), getKey(), and ~CLRectangle().

CLRelAbsVector CLRectangle::mRX
protected

Definition at line 36 of file CLRectangle.h.

Referenced by getRadiusX(), setRadii(), setRadiusX(), and toSBML().

CLRelAbsVector CLRectangle::mRY
protected

Definition at line 37 of file CLRectangle.h.

Referenced by getRadiusY(), setRadii(), setRadiusY(), and toSBML().

CLRelAbsVector CLRectangle::mWidth
protected

Definition at line 34 of file CLRectangle.h.

Referenced by getWidth(), setSize(), setWidth(), and toSBML().

CLRelAbsVector CLRectangle::mX
protected

Definition at line 31 of file CLRectangle.h.

Referenced by getX(), setCoordinates(), setX(), and toSBML().

CLRelAbsVector CLRectangle::mY
protected

Definition at line 32 of file CLRectangle.h.

Referenced by getY(), setCoordinates(), setY(), and toSBML().

CLRelAbsVector CLRectangle::mZ
protected

Definition at line 33 of file CLRectangle.h.

Referenced by getZ(), setCoordinates(), setZ(), and toSBML().


The documentation for this class was generated from the following files: