class Coords::CoordSys |
A single "final" transform, possibly defined hierarchically through others.
A single "final" transform, possibly defined hierarchically through others.If you get a CoordSys from somewhere, the only methods you should need to call are vertex(), transform(), getInverse(), nonlinearity(), canPerformGL(), performGL() and dump(). All other methods are for use by CoordSet or other classes constructing coordinate systems.
virtual void | setSuper (CoordSys** super) Set the parent(s) and determining coordinate systems of this coordsys. |
virtual void | setParams (float* params) Set the parameters of this coordsys from the given float array. |
CoordSys* | getInverse () Get the inverse of this coordinate system. |
virtual void | vertex (const ZPt &p) const Call glVertex with the given ZPt transformed into this coordinate system |
virtual ZPt | transform (const ZPt &p) const Return the given ZPt transformed into this coordinate system. |
virtual float | nonlinearity (const ZPt &p, float radius) How nonlinear is the coordinate system at the given point. |
virtual bool | canPerformGL () Whether this transformation can be performed by OpenGL alone |
virtual bool | performGL () Try to perform the GL operations to set this coordinate system in the current matrix. |
virtual void | dump (ostream &out) Print this coordinate system into the given ostream |
virtual bool | shouldBeDrawn () Check whether this coordinate system should be drawn with the current parameters. |
virtual bool | getOthertypeParams (int type, float* into) Get the parameters of a compatible type. |
virtual Pt | getSqSize () Get the size of the "unit square" of this coordinate system. |
bool | ownInverse True if this object owns the object pointed to by the inverse pointer |
virtual CoordSys* | createInverse () Don't use; use getInverse instead! |
Always call setSuper first!
This method will NOT set up vertex programs or change any other OpenGL state.
NOTE: Must be implemented also at GLVobCoorder.java.
Alphabetic index Hierarchy of classes