/[gzz]/gzz/gfx/libcoords/Coords.hxx
ViewVC logotype

Diff of /gzz/gfx/libcoords/Coords.hxx

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.9 by tjl, Mon Sep 30 08:15:42 2002 UTC revision 1.10 by tjl, Tue Oct 1 07:55:44 2002 UTC
# Line 11  namespace Coords { Line 11  namespace Coords {
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
# Line 74  namespace Coords { Line 73  namespace Coords {
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;

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26