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

#include <CLRenderCubicBezier.h>

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

Public Member Functions

const CLRelAbsVectorbasePoint1_X () const
 
CLRelAbsVectorbasePoint1_X ()
 
const CLRelAbsVectorbasePoint1_Y () const
 
CLRelAbsVectorbasePoint1_Y ()
 
const CLRelAbsVectorbasePoint1_Z () const
 
CLRelAbsVectorbasePoint1_Z ()
 
const CLRelAbsVectorbasePoint2_X () const
 
CLRelAbsVectorbasePoint2_X ()
 
const CLRelAbsVectorbasePoint2_Y () const
 
CLRelAbsVectorbasePoint2_Y ()
 
const CLRelAbsVectorbasePoint2_Z () const
 
CLRelAbsVectorbasePoint2_Z ()
 
 CLRenderCubicBezier ()
 
 CLRenderCubicBezier (const CLRenderCubicBezier &orig)
 
 CLRenderCubicBezier (const CLRelAbsVector &bp1_x, const CLRelAbsVector &bp1_y, const CLRelAbsVector &bp1_z, const CLRelAbsVector &bp2_x, const CLRelAbsVector &bp2_y, const CLRelAbsVector &bp2_z, const CLRelAbsVector &end_x, const CLRelAbsVector &end_y, const CLRelAbsVector &end_z)
 
 CLRenderCubicBezier (const RenderCubicBezier &source)
 
virtual CLRenderCubicBezieroperator= (const CLRenderCubicBezier &orig)
 
void setBasePoint1 (const CLRelAbsVector &x, const CLRelAbsVector &y, const CLRelAbsVector &z=CLRelAbsVector(0.0, 0.0))
 
void setBasePoint1_X (const CLRelAbsVector &v)
 
void setBasePoint1_Y (const CLRelAbsVector &v)
 
void setBasePoint1_Z (const CLRelAbsVector &v)
 
void setBasePoint2 (const CLRelAbsVector &x, const CLRelAbsVector &y, const CLRelAbsVector &z=CLRelAbsVector(0.0, 0.0))
 
void setBasePoint2_X (const CLRelAbsVector &v)
 
void setBasePoint2_Y (const CLRelAbsVector &v)
 
void setBasePoint2_Z (const CLRelAbsVector &v)
 
virtual RenderPoint * toSBML (unsigned int level, unsigned int version) const
 
virtual ~CLRenderCubicBezier ()
 
- Public Member Functions inherited from CLRenderPoint
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)
 
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 mBasePoint1_X
 
CLRelAbsVector mBasePoint1_Y
 
CLRelAbsVector mBasePoint1_Z
 
CLRelAbsVector mBasePoint2_X
 
CLRelAbsVector mBasePoint2_Y
 
CLRelAbsVector mBasePoint2_Z
 
- Protected Attributes inherited from CLRenderPoint
CLRelAbsVector mXOffset
 
CLRelAbsVector mYOffset
 
CLRelAbsVector mZOffset
 
- Protected Attributes inherited from CLBase
std::string mTag
 

Detailed Description

Definition at line 24 of file CLRenderCubicBezier.h.

Constructor & Destructor Documentation

CLRenderCubicBezier::CLRenderCubicBezier ( )

Creates a CubicBezier and returns the pointer.

Creates a CLRenderCubicBezier and returns the pointer.

Definition at line 16 of file CLRenderCubicBezier.cpp.

References mBasePoint1_X, mBasePoint1_Y, mBasePoint1_Z, mBasePoint2_X, mBasePoint2_Y, mBasePoint2_Z, CLRenderPoint::mXOffset, CLRenderPoint::mYOffset, and CLRenderPoint::mZOffset.

16  : CLRenderPoint()
17 {
24 }
CLRelAbsVector mBasePoint1_Z
CLRelAbsVector mXOffset
Definition: CLRenderPoint.h:26
CLRelAbsVector mBasePoint2_Y
CLRelAbsVector mBasePoint2_X
CLRelAbsVector mZOffset
Definition: CLRenderPoint.h:28
CLRelAbsVector mBasePoint2_Z
CLRelAbsVector mYOffset
Definition: CLRenderPoint.h:27
CLRelAbsVector mBasePoint1_X
CLRelAbsVector mBasePoint1_Y
CLRenderCubicBezier::CLRenderCubicBezier ( const CLRenderCubicBezier orig)

Copy constructor.

Definition at line 42 of file CLRenderCubicBezier.cpp.

42  :
43  CLRenderPoint(orig),
50 {
51 }
CLRelAbsVector mBasePoint1_Z
CLRelAbsVector mBasePoint2_Y
CLRelAbsVector mBasePoint2_X
CLRelAbsVector mBasePoint2_Z
CLRelAbsVector mBasePoint1_X
CLRelAbsVector mBasePoint1_Y
CLRenderCubicBezier::CLRenderCubicBezier ( const CLRelAbsVector bp1_x,
const CLRelAbsVector bp1_y,
const CLRelAbsVector bp1_z,
const CLRelAbsVector bp2_x,
const CLRelAbsVector bp2_y,
const CLRelAbsVector bp2_z,
const CLRelAbsVector end_x,
const CLRelAbsVector end_y,
const CLRelAbsVector end_z 
)

Creates a CubicBezier with the given points and returns the pointer.

Definition at line 29 of file CLRenderCubicBezier.cpp.

29  : CLRenderPoint(end_x, end_y, end_z),
30  mBasePoint1_X(bp1_x),
31  mBasePoint1_Y(bp1_y),
32  mBasePoint1_Z(bp1_z),
33  mBasePoint2_X(bp2_x),
34  mBasePoint2_Y(bp2_y),
35  mBasePoint2_Z(bp2_z)
36 {
37 }
CLRelAbsVector mBasePoint1_Z
CLRelAbsVector mBasePoint2_Y
CLRelAbsVector mBasePoint2_X
CLRelAbsVector mBasePoint2_Z
CLRelAbsVector mBasePoint1_X
CLRelAbsVector mBasePoint1_Y
CLRenderCubicBezier::CLRenderCubicBezier ( const RenderCubicBezier &  source)

Constructor to generate object from the corresponding SBML object.

Definition at line 56 of file CLRenderCubicBezier.cpp.

56  :
57  CLRenderPoint(source),
58  mBasePoint1_X(source.basePoint1_X()),
59  mBasePoint1_Y(source.basePoint1_Y()),
60  mBasePoint1_Z(source.basePoint1_Z()),
61  mBasePoint2_X(source.basePoint2_X()),
62  mBasePoint2_Y(source.basePoint2_Y()),
63  mBasePoint2_Z(source.basePoint2_Z())
64 {
65 }
CLRelAbsVector mBasePoint1_Z
CLRelAbsVector mBasePoint2_Y
CLRelAbsVector mBasePoint2_X
CLRelAbsVector mBasePoint2_Z
CLRelAbsVector mBasePoint1_X
CLRelAbsVector mBasePoint1_Y
CLRenderCubicBezier::~CLRenderCubicBezier ( )
virtual

Destructor.

Definition at line 89 of file CLRenderCubicBezier.cpp.

90 {
91 }

Member Function Documentation

const CLRelAbsVector & CLRenderCubicBezier::basePoint1_X ( ) const

Returns the x value of the first base point of the curve (the one closer to the starting point).

Definition at line 97 of file CLRenderCubicBezier.cpp.

References mBasePoint1_X.

Referenced by addToPath(), CLLayoutRenderer::draw_curve(), CLLayoutRenderer::draw_polygon(), and CCopasiXML::saveRenderPoint().

98 {
99  return this->mBasePoint1_X;
100 }
CLRelAbsVector mBasePoint1_X
CLRelAbsVector & CLRenderCubicBezier::basePoint1_X ( )

Returns the x value of the first base point of the curve (the one closer to the starting point).

Definition at line 151 of file CLRenderCubicBezier.cpp.

References mBasePoint1_X.

152 {
153  return this->mBasePoint1_X;
154 }
CLRelAbsVector mBasePoint1_X
const CLRelAbsVector & CLRenderCubicBezier::basePoint1_Y ( ) const

Returns the y value of the first base point of the curve (the one closer to the starting point).

Definition at line 106 of file CLRenderCubicBezier.cpp.

References mBasePoint1_Y.

Referenced by addToPath(), CLLayoutRenderer::draw_curve(), CLLayoutRenderer::draw_polygon(), and CCopasiXML::saveRenderPoint().

107 {
108  return this->mBasePoint1_Y;
109 }
CLRelAbsVector mBasePoint1_Y
CLRelAbsVector & CLRenderCubicBezier::basePoint1_Y ( )

Returns the y value of the first base point of the curve (the one closer to the starting point).

Definition at line 160 of file CLRenderCubicBezier.cpp.

References mBasePoint1_Y.

161 {
162  return this->mBasePoint1_Y;
163 }
CLRelAbsVector mBasePoint1_Y
const CLRelAbsVector & CLRenderCubicBezier::basePoint1_Z ( ) const

Returns the z value of the first base point of the curve (the one closer to the starting point).

Definition at line 115 of file CLRenderCubicBezier.cpp.

References mBasePoint1_Z.

Referenced by CLLayoutRenderer::draw_curve(), CLLayoutRenderer::draw_polygon(), and CCopasiXML::saveRenderPoint().

116 {
117  return this->mBasePoint1_Z;
118 }
CLRelAbsVector mBasePoint1_Z
CLRelAbsVector & CLRenderCubicBezier::basePoint1_Z ( )

Returns the z value of the first base point of the curve (the one closer to the starting point).

Definition at line 169 of file CLRenderCubicBezier.cpp.

References mBasePoint1_Z.

170 {
171  return this->mBasePoint1_Z;
172 }
CLRelAbsVector mBasePoint1_Z
const CLRelAbsVector & CLRenderCubicBezier::basePoint2_X ( ) const

Returns the x value of the second base point of the curve (the one closer to the end point).

Definition at line 124 of file CLRenderCubicBezier.cpp.

References mBasePoint2_X.

Referenced by addToPath(), CLLayoutRenderer::draw_curve(), CLLayoutRenderer::draw_polygon(), and CCopasiXML::saveRenderPoint().

125 {
126  return this->mBasePoint2_X;
127 }
CLRelAbsVector mBasePoint2_X
CLRelAbsVector & CLRenderCubicBezier::basePoint2_X ( )

Returns the x value of the second base point of the curve (the one closer to the end point).

Definition at line 178 of file CLRenderCubicBezier.cpp.

References mBasePoint2_X.

179 {
180  return this->mBasePoint2_X;
181 }
CLRelAbsVector mBasePoint2_X
const CLRelAbsVector & CLRenderCubicBezier::basePoint2_Y ( ) const

Returns the y value of the second base point of the curve (the one closer to the end point).

Definition at line 133 of file CLRenderCubicBezier.cpp.

References mBasePoint2_Y.

Referenced by addToPath(), CLLayoutRenderer::draw_curve(), CLLayoutRenderer::draw_polygon(), and CCopasiXML::saveRenderPoint().

134 {
135  return this->mBasePoint2_Y;
136 }
CLRelAbsVector mBasePoint2_Y
CLRelAbsVector & CLRenderCubicBezier::basePoint2_Y ( )

Returns the y value of the second base point of the curve (the one closer to the end point).

Definition at line 187 of file CLRenderCubicBezier.cpp.

References mBasePoint2_Y.

188 {
189  return this->mBasePoint2_Y;
190 }
CLRelAbsVector mBasePoint2_Y
const CLRelAbsVector & CLRenderCubicBezier::basePoint2_Z ( ) const

Returns the z value of the second base point of the curve (the one closer to the end point).

Definition at line 142 of file CLRenderCubicBezier.cpp.

References mBasePoint2_Z.

Referenced by CLLayoutRenderer::draw_curve(), CLLayoutRenderer::draw_polygon(), and CCopasiXML::saveRenderPoint().

143 {
144  return this->mBasePoint2_Z;
145 }
CLRelAbsVector mBasePoint2_Z
CLRelAbsVector & CLRenderCubicBezier::basePoint2_Z ( )

Returns the z value of the second base point of the curve (the one closer to the end point).

Definition at line 196 of file CLRenderCubicBezier.cpp.

References mBasePoint2_Z.

197 {
198  return this->mBasePoint2_Z;
199 }
CLRelAbsVector mBasePoint2_Z
CLRenderCubicBezier & CLRenderCubicBezier::operator= ( const CLRenderCubicBezier orig)
virtual

Assignment operator

Assignment operator.

Definition at line 70 of file CLRenderCubicBezier.cpp.

References mBasePoint1_X, mBasePoint1_Y, mBasePoint1_Z, mBasePoint2_X, mBasePoint2_Y, mBasePoint2_Z, and CLRenderPoint::operator=().

71 {
72  if (&orig != this)
73  {
74  this->CLRenderPoint::operator=(orig);
81  }
82 
83  return *this;
84 }
CLRelAbsVector mBasePoint1_Z
CLRelAbsVector mBasePoint2_Y
CLRelAbsVector mBasePoint2_X
CLRenderPoint & operator=(const CLRenderPoint &orig)
CLRelAbsVector mBasePoint2_Z
CLRelAbsVector mBasePoint1_X
CLRelAbsVector mBasePoint1_Y
void CLRenderCubicBezier::setBasePoint1 ( const CLRelAbsVector x,
const CLRelAbsVector y,
const CLRelAbsVector z = CLRelAbsVector(0.0, 0.0) 
)

Sets the first basepoint to the given values.

Definition at line 258 of file CLRenderCubicBezier.cpp.

References mBasePoint1_X, mBasePoint1_Y, mBasePoint1_Z, CLRenderPoint::x(), CLRenderPoint::y(), and CLRenderPoint::z().

259 {
260  this->mBasePoint1_X = x;
261  this->mBasePoint1_Y = y;
262  this->mBasePoint1_Z = z;
263 }
CLRelAbsVector mBasePoint1_Z
const CLRelAbsVector & z() const
const CLRelAbsVector & y() const
CLRelAbsVector mBasePoint1_X
const CLRelAbsVector & x() const
CLRelAbsVector mBasePoint1_Y
void CLRenderCubicBezier::setBasePoint1_X ( const CLRelAbsVector v)

Sets the x value of the first base point of the curve (the one closer to the starting point).

Definition at line 205 of file CLRenderCubicBezier.cpp.

References mBasePoint1_X.

206 {
207  this->mBasePoint1_X = v;;
208 }
CLRelAbsVector mBasePoint1_X
void CLRenderCubicBezier::setBasePoint1_Y ( const CLRelAbsVector v)

Sets the y value of the first base point of the curve (the one closer to the starting point).

Definition at line 214 of file CLRenderCubicBezier.cpp.

References mBasePoint1_Y.

215 {
216  this->mBasePoint1_Y = v;
217 }
CLRelAbsVector mBasePoint1_Y
void CLRenderCubicBezier::setBasePoint1_Z ( const CLRelAbsVector v)

Sets the z value of the first base point of the curve (the one closer to the starting point).

Definition at line 223 of file CLRenderCubicBezier.cpp.

References mBasePoint1_Z.

224 {
225  this->mBasePoint1_Z = v;
226 }
CLRelAbsVector mBasePoint1_Z
void CLRenderCubicBezier::setBasePoint2 ( const CLRelAbsVector x,
const CLRelAbsVector y,
const CLRelAbsVector z = CLRelAbsVector(0.0, 0.0) 
)

Sets the second basepoint to the given values.

Definition at line 268 of file CLRenderCubicBezier.cpp.

References mBasePoint2_X, mBasePoint2_Y, mBasePoint2_Z, CLRenderPoint::x(), CLRenderPoint::y(), and CLRenderPoint::z().

269 {
270  this->mBasePoint2_X = x;
271  this->mBasePoint2_Y = y;
272  this->mBasePoint2_Z = z;
273 }
CLRelAbsVector mBasePoint2_Y
CLRelAbsVector mBasePoint2_X
const CLRelAbsVector & z() const
const CLRelAbsVector & y() const
CLRelAbsVector mBasePoint2_Z
const CLRelAbsVector & x() const
void CLRenderCubicBezier::setBasePoint2_X ( const CLRelAbsVector v)

Sets the x value of the second base point of the curve (the one closer to the end point).

Definition at line 232 of file CLRenderCubicBezier.cpp.

References mBasePoint2_X.

233 {
234  this->mBasePoint2_X = v;
235 }
CLRelAbsVector mBasePoint2_X
void CLRenderCubicBezier::setBasePoint2_Y ( const CLRelAbsVector v)

Sets the y value of the second base point of the curve (the one closer to the end point).

Definition at line 241 of file CLRenderCubicBezier.cpp.

References mBasePoint2_Y.

242 {
243  this->mBasePoint2_Y = v;
244 }
CLRelAbsVector mBasePoint2_Y
void CLRenderCubicBezier::setBasePoint2_Z ( const CLRelAbsVector v)

Sets the z value of the second base point of the curve (the one closer to the end point).

Definition at line 250 of file CLRenderCubicBezier.cpp.

References mBasePoint2_Z.

251 {
252  this->mBasePoint2_Z = v;
253 }
CLRelAbsVector mBasePoint2_Z
RenderPoint * CLRenderCubicBezier::toSBML ( unsigned int  level,
unsigned int  version 
) const
virtual

Converts this object to the corresponding SBML object.

Reimplemented from CLRenderPoint.

Definition at line 278 of file CLRenderCubicBezier.cpp.

References CLRenderPoint::addSBMLAttributes(), mBasePoint1_X, mBasePoint1_Y, mBasePoint1_Z, mBasePoint2_X, mBasePoint2_Y, mBasePoint2_Z, and CLRelAbsVector::toSBML().

279 {
280  RenderCubicBezier* pCB = new RenderCubicBezier(level, version);
281  this->addSBMLAttributes(pCB);
282  RelAbsVector* pV1 = this->mBasePoint1_X.toSBML();
283  RelAbsVector* pV2 = this->mBasePoint1_Y.toSBML();
284  RelAbsVector* pV3 = this->mBasePoint1_Z.toSBML();
285  pCB->setBasePoint1(*pV1, *pV2, *pV3);
286  delete pV1;
287  delete pV2;
288  delete pV3;
289  pV1 = this->mBasePoint2_X.toSBML();
290  pV2 = this->mBasePoint2_Y.toSBML();
291  pV3 = this->mBasePoint2_Z.toSBML();
292  pCB->setBasePoint2(*pV1, *pV2, *pV3);
293  delete pV1;
294  delete pV2;
295  delete pV3;
296  return pCB;
297 }
CLRelAbsVector mBasePoint1_Z
CLRelAbsVector mBasePoint2_Y
CLRelAbsVector mBasePoint2_X
CLRelAbsVector mBasePoint2_Z
RelAbsVector * toSBML() const
CLRelAbsVector mBasePoint1_X
CLRelAbsVector mBasePoint1_Y
virtual void addSBMLAttributes(RenderPoint *pPoint) const

Member Data Documentation

CLRelAbsVector CLRenderCubicBezier::mBasePoint1_X
protected
CLRelAbsVector CLRenderCubicBezier::mBasePoint1_Y
protected
CLRelAbsVector CLRenderCubicBezier::mBasePoint1_Z
protected
CLRelAbsVector CLRenderCubicBezier::mBasePoint2_X
protected
CLRelAbsVector CLRenderCubicBezier::mBasePoint2_Y
protected
CLRelAbsVector CLRenderCubicBezier::mBasePoint2_Z
protected

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