11 |
class CoordSys { |
class CoordSys { |
12 |
protected: |
protected: |
13 |
CoordSys *super; |
CoordSys *super; |
|
float *params; |
|
14 |
CoordSys *inverse; |
CoordSys *inverse; |
15 |
public: |
public: |
16 |
virtual void setSuper(CoordSys *super) { |
virtual void setSuper(CoordSys *super) { |
17 |
this->super = super; |
this->super = super; |
18 |
} |
} |
19 |
virtual void setParams(float *params) { |
/** Always call setSuper first! |
20 |
this->params = params; |
*/ |
21 |
} |
virtual void setParams(float *params) = 0; |
22 |
|
|
23 |
/** Get the inverse of this coordinate system. |
/** Get the inverse of this coordinate system. |
24 |
* Always returns non-null but it is not guaranteed |
* Always returns non-null but it is not guaranteed |
73 |
*/ |
*/ |
74 |
virtual bool performGL() ; |
virtual bool performGL() ; |
75 |
|
|
76 |
CoordSys() : super(0), params(0), inverse(0) { |
CoordSys() : super(0), inverse(0) { |
77 |
} |
} |
78 |
virtual ~CoordSys() { |
virtual ~CoordSys() { |
79 |
if(inverse) delete inverse; |
if(inverse) delete inverse; |