COPASI API  4.16.103
CLRenderCubicBezier.h
Go to the documentation of this file.
1 // Begin CVS Header
2 // $Source: /Volumes/Home/Users/shoops/cvs/copasi_dev/copasi/layout/CLRenderCubicBezier.h,v $
3 // $Revision: 1.4 $
4 // $Name: $
5 // $Author: shoops $
6 // $Date: 2011/09/30 16:35:21 $
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 CLRenderCubicBezier_H__
15 #define CLRenderCubicBezier_H__
16 
17 #include <string>
18 
21 
22 class RenderCubicBezier;
23 
25 {
26 protected:
33 
34 public:
35 
36  /**
37  * Creates a CubicBezier and returns the pointer.
38  */
40 
41  /**
42  * Copy constructor.
43  */
45 
46  /**
47  * Creates a CubicBezier with the given points and returns the pointer.
48  */
49  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);
50 
51  /**
52  * Constructor to generate object from the corresponding SBML object.
53  */
54  CLRenderCubicBezier(const RenderCubicBezier& source);
55 
56  /**
57  * Destructor.
58  */
59  virtual ~CLRenderCubicBezier();
60 
61  /**
62  * Assignment operator
63  */
65 
66  /**
67  * Returns the x value of the first base point of the curve (the one closer to the
68  * starting point).
69  */
70  const CLRelAbsVector& basePoint1_X() const;
71 
72  /**
73  * Returns the y value of the first base point of the curve (the one closer to the
74  * starting point).
75  */
76  const CLRelAbsVector& basePoint1_Y() const;
77 
78  /**
79  * Returns the z value of the first base point of the curve (the one closer to the
80  * starting point).
81  */
82  const CLRelAbsVector& basePoint1_Z() const;
83 
84  /**
85  * Returns the x value of the second base point of the curve (the one closer to the
86  * end point).
87  */
88  const CLRelAbsVector& basePoint2_X() const;
89 
90  /**
91  * Returns the y value of the second base point of the curve (the one closer to the
92  * end point).
93  */
94  const CLRelAbsVector& basePoint2_Y() const;
95 
96  /**
97  * Returns the z value of the second base point of the curve (the one closer to the
98  * end point).
99  */
100  const CLRelAbsVector& basePoint2_Z() const;
101 
102  /**
103  * Returns the x value of the first base point of the curve (the one closer to the
104  * starting point).
105  */
107 
108  /**
109  * Returns the y value of the first base point of the curve (the one closer to the
110  * starting point).
111  */
113 
114  /**
115  * Returns the z value of the first base point of the curve (the one closer to the
116  * starting point).
117  */
119 
120  /**
121  * Returns the x value of the second base point of the curve (the one closer to the
122  * end point).
123  */
125 
126  /**
127  * Returns the y value of the second base point of the curve (the one closer to the
128  * end point).
129  */
131 
132  /**
133  * Returns the z value of the second base point of the curve (the one closer to the
134  * end point).
135  */
137 
138  /**
139  * Sets the x value of the first base point of the curve (the one closer to the
140  * starting point).
141  */
142  void setBasePoint1_X(const CLRelAbsVector& v);
143 
144  /**
145  * Sets the y value of the first base point of the curve (the one closer to the
146  * starting point).
147  */
148  void setBasePoint1_Y(const CLRelAbsVector& v);
149 
150  /**
151  * Sets the z value of the first base point of the curve (the one closer to the
152  * starting point).
153  */
154  void setBasePoint1_Z(const CLRelAbsVector& v);
155 
156  /**
157  * Sets the x value of the second base point of the curve (the one closer to the
158  * end point).
159  */
160  void setBasePoint2_X(const CLRelAbsVector& v);
161 
162  /**
163  * Sets the y value of the second base point of the curve (the one closer to the
164  * end point).
165  */
166  void setBasePoint2_Y(const CLRelAbsVector& v);
167 
168  /**
169  * Sets the z value of the second base point of the curve (the one closer to the
170  * end point).
171  */
172  void setBasePoint2_Z(const CLRelAbsVector& v);
173 
174  /**
175  * Sets the first basepoint to the given values.
176  */
177  void setBasePoint1(const CLRelAbsVector& x, const CLRelAbsVector& y, const CLRelAbsVector& z = CLRelAbsVector(0.0, 0.0));
178 
179  /**
180  * Sets the second basepoint to the given values.
181  */
182  void setBasePoint2(const CLRelAbsVector& x, const CLRelAbsVector& y, const CLRelAbsVector& z = CLRelAbsVector(0.0, 0.0));
183 
184  /**
185  * Converts this object to the corresponding SBML object.
186  */
187  virtual RenderPoint* toSBML(unsigned int level, unsigned int version) const;
188 };
189 
190 #endif /* CLCubicBezier_H__ */
CLRelAbsVector mBasePoint1_Z
const CLRelAbsVector & basePoint1_X() const
CLRelAbsVector mBasePoint2_Y
CLRelAbsVector mBasePoint2_X
void setBasePoint1_Z(const CLRelAbsVector &v)
const CLRelAbsVector & basePoint2_Y() const
const CLRelAbsVector & z() const
const CLRelAbsVector & basePoint2_Z() const
const CLRelAbsVector & basePoint2_X() const
virtual CLRenderCubicBezier & operator=(const CLRenderCubicBezier &orig)
void setBasePoint2_Z(const CLRelAbsVector &v)
void setBasePoint2_X(const CLRelAbsVector &v)
CLRelAbsVector mBasePoint2_Z
void setBasePoint2_Y(const CLRelAbsVector &v)
void setBasePoint1(const CLRelAbsVector &x, const CLRelAbsVector &y, const CLRelAbsVector &z=CLRelAbsVector(0.0, 0.0))
void setBasePoint1_X(const CLRelAbsVector &v)
const CLRelAbsVector & basePoint1_Z() const
CLRelAbsVector mBasePoint1_X
virtual RenderPoint * toSBML(unsigned int level, unsigned int version) const
const CLRelAbsVector & basePoint1_Y() const
CLRelAbsVector mBasePoint1_Y
void setBasePoint2(const CLRelAbsVector &x, const CLRelAbsVector &y, const CLRelAbsVector &z=CLRelAbsVector(0.0, 0.0))
void setBasePoint1_Y(const CLRelAbsVector &v)