ClipPlane state class which encapsulates OpenGL glClipPlane() functionality
Inheritance:
Public Methods
-
ClipPlane()
-
ClipPlane(const ClipPlane& cp, const CopyOp& copyop=CopyOp::SHALLOW_COPY)
- Copy constructor using CopyOp to manage deep vs shallow copy
-
META_StateAttribute(ClipPlane, (Type)(CLIPPLANE+_clipPlaneNum))
-
virtual int compare(const StateAttribute& sa) const
- return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs
-
virtual void setStateSetModes(StateSet& ds, const GLModeValue value) const
-
void setClipPlane(const Vec4& plane)
- Set the clip plane, using a Vec4 to define plane.
-
void setClipPlane(const Plane& plane)
- Set the clip plane, using a Plane to define plane.
-
void setClipPlane(const double* plane)
- Set the clip plane, using a double[4] to define plane.
-
void getClipPlane(Vec4& plane) const
- Get the clip plane, values entered into a Vec4 passed to the getClipPlane.
-
void getClipPlane(Plane& plane) const
- Get the clip plane, values entered into a Plane passed to the getClipPlane.
-
void getClipPlane(double* plane) const
- Get the clip plane, values entered into a double[4] passed to the getClipPlane.
-
void setClipPlaneNum(const unsigned int num)
- Set the clip plane number.
-
const unsigned int getClipPlaneNum() const
- Get the clip plane number.
-
virtual void apply(State& state) const
- Apply the clip plane's state to the OpenGL state machine.
Protected Fields
-
double _clipPlane[4]
-
unsigned int _clipPlaneNum
Protected Methods
-
virtual ~ClipPlane()
Public Methods
-
virtual Object* cloneType() const
-
virtual Object* clone(const CopyOp&) const
-
virtual bool isSameKindAs(const Object* obj) const
-
virtual const char* className() const
-
virtual const Type getType() const
-
bool operator < (const StateAttribute& rhs) const
-
bool operator == (const StateAttribute& rhs) const
-
bool operator != (const StateAttribute& rhs) const
-
virtual void compile(State&) const
Public Members
-
typedef GLenum GLMode
-
typedef unsigned int GLModeValue
-
typedef unsigned int OverrideValue
-
enum Values
-
typedef unsigned int Type
-
enum Types
Inherited from Object:
Public Methods
-
inline Referenced& operator = (Referenced&)
-
inline void ref() const
-
inline void unref() const
-
inline const int referenceCount() const
Protected Fields
-
mutable int _refCount
Documentation
ClipPlane state class which encapsulates OpenGL glClipPlane() functionality
- ClipPlane()
- ClipPlane(const ClipPlane& cp, const CopyOp& copyop=CopyOp::SHALLOW_COPY)
- Copy constructor using CopyOp to manage deep vs shallow copy
- META_StateAttribute(ClipPlane, (Type)(CLIPPLANE+_clipPlaneNum))
- virtual int compare(const StateAttribute& sa) const
- return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs
- virtual void setStateSetModes(StateSet& ds, const GLModeValue value) const
- void setClipPlane(const Vec4& plane)
- Set the clip plane, using a Vec4 to define plane.
- void setClipPlane(const Plane& plane)
- Set the clip plane, using a Plane to define plane.
- void setClipPlane(const double* plane)
- Set the clip plane, using a double[4] to define plane.
- void getClipPlane(Vec4& plane) const
- Get the clip plane, values entered into a Vec4 passed to the getClipPlane.
- void getClipPlane(Plane& plane) const
- Get the clip plane, values entered into a Plane passed to the getClipPlane.
- void getClipPlane(double* plane) const
- Get the clip plane, values entered into a double[4] passed to the getClipPlane.
- void setClipPlaneNum(const unsigned int num)
- Set the clip plane number.
- const unsigned int getClipPlaneNum() const
- Get the clip plane number.
- virtual void apply(State& state) const
- Apply the clip plane's state to the OpenGL state machine.
- virtual ~ClipPlane()
- double _clipPlane[4]
- unsigned int _clipPlaneNum
- This class has no child classes.
Alphabetic index HTML hierarchy of classes or Java
This page was generated with the help of DOC++.