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

#include <CLRenderPoint.h>

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

Public Member Functions

virtual void addSBMLAttributes (RenderPoint *pPoint) const
 
 CLRenderPoint ()
 
 CLRenderPoint (const CLRenderPoint &orig)
 
 CLRenderPoint (const CLRelAbsVector &x, const CLRelAbsVector &y, const CLRelAbsVector &z=CLRelAbsVector(0.0, 0.0))
 
 CLRenderPoint (const RenderPoint &source)
 
const CLRelAbsVectorgetXOffset () const
 
CLRelAbsVectorgetXOffset ()
 
const CLRelAbsVectorgetYOffset () const
 
CLRelAbsVectorgetYOffset ()
 
const CLRelAbsVectorgetZOffset () const
 
CLRelAbsVectorgetZOffset ()
 
void initDefaults ()
 
CLRenderPointoperator= (const CLRenderPoint &orig)
 
bool operator== (const CLRenderPoint &left)
 
void setOffsets (const CLRelAbsVector &x, const CLRelAbsVector &y, const CLRelAbsVector &z=CLRelAbsVector(0.0, 0.0))
 
void setX (const CLRelAbsVector &x)
 
void setXOffset (const CLRelAbsVector &x)
 
void setY (const CLRelAbsVector &y)
 
void setYOffset (const CLRelAbsVector &y)
 
void setZ (const CLRelAbsVector &z)
 
void setZOffset (const CLRelAbsVector &z)
 
virtual RenderPoint * toSBML (unsigned int level, unsigned int version) const
 
const CLRelAbsVectorx () const
 
CLRelAbsVectorx ()
 
const CLRelAbsVectory () const
 
CLRelAbsVectory ()
 
const CLRelAbsVectorz () const
 
CLRelAbsVectorz ()
 
virtual ~CLRenderPoint ()
 
- 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 ()
 

Protected Attributes

CLRelAbsVector mXOffset
 
CLRelAbsVector mYOffset
 
CLRelAbsVector mZOffset
 
- Protected Attributes inherited from CLBase
std::string mTag
 

Detailed Description

Definition at line 22 of file CLRenderPoint.h.

Constructor & Destructor Documentation

CLRenderPoint::CLRenderPoint ( )

Creates a new point with x,y and z set to 0.0.

Definition at line 24 of file CLRenderPoint.cpp.

24  :
25  CLBase(),
26  mXOffset(CLRelAbsVector(0.0, 0.0)),
27  mYOffset(CLRelAbsVector(0.0, 0.0)),
28  mZOffset(CLRelAbsVector(0.0, 0.0))
29 {
30 }
CLRelAbsVector mXOffset
Definition: CLRenderPoint.h:26
CLBase()
Definition: CLBase.h:36
CLRelAbsVector mZOffset
Definition: CLRenderPoint.h:28
CLRelAbsVector mYOffset
Definition: CLRenderPoint.h:27
CLRenderPoint::CLRenderPoint ( const CLRenderPoint orig)

Copy constructor.

Definition at line 35 of file CLRenderPoint.cpp.

35  :
36  CLBase(orig),
37  mXOffset(orig.mXOffset),
38  mYOffset(orig.mYOffset),
39  mZOffset(orig.mZOffset)
40 {
41 }
CLRelAbsVector mXOffset
Definition: CLRenderPoint.h:26
CLBase()
Definition: CLBase.h:36
CLRelAbsVector mZOffset
Definition: CLRenderPoint.h:28
CLRelAbsVector mYOffset
Definition: CLRenderPoint.h:27
CLRenderPoint::CLRenderPoint ( const CLRelAbsVector x,
const CLRelAbsVector y,
const CLRelAbsVector z = CLRelAbsVector(0.0, 0.0) 
)

Creates a new point with the given ccordinates.

Definition at line 70 of file CLRenderPoint.cpp.

70  :
71  CLBase()
72  , mXOffset(x)
73  , mYOffset(y)
74  , mZOffset(z)
75 {
76 }
CLRelAbsVector mXOffset
Definition: CLRenderPoint.h:26
CLBase()
Definition: CLBase.h:36
CLRelAbsVector mZOffset
Definition: CLRenderPoint.h:28
CLRelAbsVector mYOffset
Definition: CLRenderPoint.h:27
CLRenderPoint::CLRenderPoint ( const RenderPoint &  source)

Constructor to generate object from the corresponding SBML object.

Definition at line 46 of file CLRenderPoint.cpp.

46  :
47  CLBase(),
48  mXOffset(source.x()),
49  mYOffset(source.y()),
50  mZOffset(source.z())
51 {
52 }
CLRelAbsVector mXOffset
Definition: CLRenderPoint.h:26
CLBase()
Definition: CLBase.h:36
CLRelAbsVector mZOffset
Definition: CLRenderPoint.h:28
CLRelAbsVector mYOffset
Definition: CLRenderPoint.h:27
CLRenderPoint::~CLRenderPoint ( )
virtual

Destructor.

Definition at line 89 of file CLRenderPoint.cpp.

90 {
91 }

Member Function Documentation

void CLRenderPoint::addSBMLAttributes ( RenderPoint *  pPoint) const
virtual

Adds the attributes for a render point object to the passed in. object.

Definition at line 288 of file CLRenderPoint.cpp.

References mXOffset, mYOffset, mZOffset, and CLRelAbsVector::toSBML().

Referenced by toSBML(), and CLRenderCubicBezier::toSBML().

289 {
290  RelAbsVector* pV1 = this->mXOffset.toSBML();
291  RelAbsVector* pV2 = this->mYOffset.toSBML();
292  RelAbsVector* pV3 = this->mZOffset.toSBML();
293  pPoint->setCoordinates(*pV1, *pV2, *pV3);
294  delete pV1;
295  delete pV2;
296  delete pV3;
297 }
CLRelAbsVector mXOffset
Definition: CLRenderPoint.h:26
CLRelAbsVector mZOffset
Definition: CLRenderPoint.h:28
RelAbsVector * toSBML() const
CLRelAbsVector mYOffset
Definition: CLRenderPoint.h:27
const CLRelAbsVector & CLRenderPoint::getXOffset ( ) const

Returns the x offset.

Definition at line 162 of file CLRenderPoint.cpp.

References x().

Referenced by addToPath(), and moveToPoint().

163 {
164  return this->x();
165 }
const CLRelAbsVector & x() const
CLRelAbsVector & CLRenderPoint::getXOffset ( )

Returns the x offset.

Definition at line 216 of file CLRenderPoint.cpp.

References x().

217 {
218  return this->x();
219 }
const CLRelAbsVector & x() const
const CLRelAbsVector & CLRenderPoint::getYOffset ( ) const

Returns the y offset.

Definition at line 171 of file CLRenderPoint.cpp.

References y().

Referenced by addToPath(), and moveToPoint().

172 {
173  return this->y();
174 }
const CLRelAbsVector & y() const
CLRelAbsVector & CLRenderPoint::getYOffset ( )

Returns the y offset.

Definition at line 225 of file CLRenderPoint.cpp.

References y().

226 {
227  return this->y();
228 }
const CLRelAbsVector & y() const
const CLRelAbsVector & CLRenderPoint::getZOffset ( ) const

Returns the z offset.

Definition at line 180 of file CLRenderPoint.cpp.

References z().

181 {
182  return this->z();
183 }
const CLRelAbsVector & z() const
CLRelAbsVector & CLRenderPoint::getZOffset ( )

Returns the z offset.

Definition at line 234 of file CLRenderPoint.cpp.

References z().

235 {
236  return this->z();
237 }
const CLRelAbsVector & z() const
void CLRenderPoint::initDefaults ( )

Sets the Z offset to 0.0.

Definition at line 81 of file CLRenderPoint.cpp.

References setZOffset().

82 {
83  this->setZOffset(0.0);
84 }
void setZOffset(const CLRelAbsVector &z)
CLRenderPoint & CLRenderPoint::operator= ( const CLRenderPoint orig)

Assignment operator

Definition at line 54 of file CLRenderPoint.cpp.

References mXOffset, mYOffset, and mZOffset.

Referenced by CLRenderCubicBezier::operator=().

55 {
56  if (&orig != this)
57  {
58  this->CLBase::operator=(orig);
59  this->mXOffset = orig.mXOffset;
60  this->mYOffset = orig.mYOffset;
61  this->mZOffset = orig.mZOffset;
62  }
63 
64  return *this;
65 }
CLRelAbsVector mXOffset
Definition: CLRenderPoint.h:26
CLRelAbsVector mZOffset
Definition: CLRenderPoint.h:28
CLRelAbsVector mYOffset
Definition: CLRenderPoint.h:27
bool CLRenderPoint::operator== ( const CLRenderPoint left)

Comparison operator.

Definition at line 269 of file CLRenderPoint.cpp.

References mXOffset, mYOffset, and mZOffset.

270 {
271  return (this->mXOffset == left.mXOffset && this->mYOffset == left.mYOffset && this->mZOffset == left.mZOffset);
272 }
CLRelAbsVector mXOffset
Definition: CLRenderPoint.h:26
CLRelAbsVector mZOffset
Definition: CLRenderPoint.h:28
CLRelAbsVector mYOffset
Definition: CLRenderPoint.h:27
void CLRenderPoint::setOffsets ( const CLRelAbsVector x,
const CLRelAbsVector y,
const CLRelAbsVector z = CLRelAbsVector(0.0, 0.0) 
)

Sets the coordinates to the given values.

Definition at line 97 of file CLRenderPoint.cpp.

References setXOffset(), setYOffset(), and setZOffset().

98 {
99  this->setXOffset(x);
100  this->setYOffset(y);
101  this->setZOffset(z);
102 }
void setZOffset(const CLRelAbsVector &z)
void setXOffset(const CLRelAbsVector &x)
void setYOffset(const CLRelAbsVector &y)
void CLRenderPoint::setX ( const CLRelAbsVector x)

Sets the x offset.

Definition at line 135 of file CLRenderPoint.cpp.

References mXOffset, and x().

Referenced by setXOffset().

136 {
137  this->mXOffset = x;
138 }
CLRelAbsVector mXOffset
Definition: CLRenderPoint.h:26
const CLRelAbsVector & x() const
void CLRenderPoint::setXOffset ( const CLRelAbsVector x)

Sets the x offset.

Definition at line 108 of file CLRenderPoint.cpp.

References setX().

Referenced by setOffsets().

109 {
110  this->setX(x);
111 }
void setX(const CLRelAbsVector &x)
void CLRenderPoint::setY ( const CLRelAbsVector y)

Sets the y offset.

Definition at line 144 of file CLRenderPoint.cpp.

References mYOffset, and y().

Referenced by setYOffset().

145 {
146  this->mYOffset = y;
147 }
const CLRelAbsVector & y() const
CLRelAbsVector mYOffset
Definition: CLRenderPoint.h:27
void CLRenderPoint::setYOffset ( const CLRelAbsVector y)

Sets the y offset.

Definition at line 117 of file CLRenderPoint.cpp.

References setY().

Referenced by setOffsets().

118 {
119  this->setY(y);
120 }
void setY(const CLRelAbsVector &y)
void CLRenderPoint::setZ ( const CLRelAbsVector z)

Sets the z offset.

Definition at line 153 of file CLRenderPoint.cpp.

References mZOffset, and z().

Referenced by setZOffset().

154 {
155  this->mZOffset = z;
156 }
const CLRelAbsVector & z() const
CLRelAbsVector mZOffset
Definition: CLRenderPoint.h:28
void CLRenderPoint::setZOffset ( const CLRelAbsVector z)

Sets the z offset.

Definition at line 126 of file CLRenderPoint.cpp.

References setZ().

Referenced by initDefaults(), and setOffsets().

127 {
128  this->setZ(z);
129 }
void setZ(const CLRelAbsVector &z)
RenderPoint * CLRenderPoint::toSBML ( unsigned int  level,
unsigned int  version 
) const
virtual

Converts this object to the corresponding SBML object.

Reimplemented in CLRenderCubicBezier.

Definition at line 277 of file CLRenderPoint.cpp.

References addSBMLAttributes().

278 {
279  RenderPoint* pP = new RenderPoint(level, version);
280  this->addSBMLAttributes(pP);
281  return pP;
282 }
virtual void addSBMLAttributes(RenderPoint *pPoint) const
const CLRelAbsVector & CLRenderPoint::x ( ) const
CLRelAbsVector & CLRenderPoint::x ( )

Returns the x offset.

Definition at line 243 of file CLRenderPoint.cpp.

References mXOffset.

244 {
245  return this->mXOffset;
246 }
CLRelAbsVector mXOffset
Definition: CLRenderPoint.h:26
const CLRelAbsVector & CLRenderPoint::y ( ) const
CLRelAbsVector & CLRenderPoint::y ( )

Returns the y offset.

Definition at line 252 of file CLRenderPoint.cpp.

References mYOffset.

253 {
254  return this->mYOffset;
255 }
CLRelAbsVector mYOffset
Definition: CLRenderPoint.h:27
const CLRelAbsVector & CLRenderPoint::z ( ) const
CLRelAbsVector & CLRenderPoint::z ( )

Returns the z offset.

Definition at line 261 of file CLRenderPoint.cpp.

References mZOffset.

262 {
263  return this->mZOffset;
264 }
CLRelAbsVector mZOffset
Definition: CLRenderPoint.h:28

Member Data Documentation

CLRelAbsVector CLRenderPoint::mXOffset
protected
CLRelAbsVector CLRenderPoint::mYOffset
protected
CLRelAbsVector CLRenderPoint::mZOffset
protected

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