15#define OSG_CLIPPLANE 1
22 #define GL_CLIP_PLANE0 0x3000
23 #define GL_CLIP_PLANE1 0x3001
24 #define GL_CLIP_PLANE2 0x3002
25 #define GL_CLIP_PLANE3 0x3003
26 #define GL_CLIP_PLANE4 0x3004
27 #define GL_CLIP_PLANE5 0x3005
59 virtual const char*
className()
const {
return "ClipPlane"; }
91 _clipPlane.set(plane[0],plane[1],plane[2],plane[3]);
#define COMPARE_StateAttribute_Parameter(parameter)
COMPARE_StateAttribute_Parameter macro is a helper for implementing the StatateAtribute::compare(....
Definition StateAttribute:69
#define COMPARE_StateAttribute_Types(TYPE, rhs_attribute)
COMPARE_StateAttribute_Types macro is a helper for implementing the StateAtribute::compare(....
Definition StateAttribute:57
#define GL_CLIP_PLANE0
Definition ClipPlane:22
The core osg library provides the basic scene graph classes such as Nodes, State and Drawables,...
Definition AlphaFunc:19
void setClipPlane(const Plane &plane)
Set the clip plane with the given Plane.
Definition ClipPlane:89
virtual osg::Object * cloneType() const
Clone the type of an attribute, with Object* return type.
Definition ClipPlane:55
void setClipPlane(const Vec4d &plane)
Set the clip plane with the given Vec4.
Definition ClipPlane:101
const Vec4d & getClipPlane() const
Gets the clip plane as a Vec4d.
Definition ClipPlane:104
void setClipPlaneNum(unsigned int num)
Sets the clip plane number.
virtual Type getType() const
Return the Type identifier of the attribute's class type.
Definition ClipPlane:60
virtual void apply(State &state) const
Applies the clip plane's state to the OpenGL state machine.
virtual const char * libraryName() const
Return the name of the attribute's library.
Definition ClipPlane:58
unsigned int _clipPlaneNum
Definition ClipPlane:121
ClipPlane(unsigned int no)
Definition ClipPlane:39
virtual bool isSameKindAs(const osg::Object *obj) const
Return true if this and obj are of the same kind of object.
Definition ClipPlane:57
virtual int compare(const StateAttribute &sa) const
Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs.
Definition ClipPlane:63
void setClipPlane(double a, double b, double c, double d)
Defines the plane as [ a b c d ].
Definition ClipPlane:95
Vec4d _clipPlane
Definition ClipPlane:120
ClipPlane(unsigned int no, const Plane &plane)
Definition ClipPlane:41
virtual unsigned int getMember() const
Return the member identifier within the attribute's class type.
Definition ClipPlane:79
ClipPlane(const ClipPlane &cp, const CopyOp ©op=CopyOp::SHALLOW_COPY)
Copy constructor using CopyOp to manage deep vs shallow copy.
Definition ClipPlane:45
virtual bool getModeUsage(StateAttribute::ModeUsage &usage) const
Return the modes associated with this StateAttribute.
Definition ClipPlane:81
ClipPlane(unsigned int no, double a, double b, double c, double d)
Definition ClipPlane:42
ClipPlane(unsigned int no, const Vec4d &plane)
Definition ClipPlane:40
virtual osg::Object * clone(const osg::CopyOp ©op) const
Clone an attribute, with Object* return type.
Definition ClipPlane:56
unsigned int getClipPlaneNum() const
Gets the clip plane number.
virtual const char * className() const
Return the name of the attribute's class type.
Definition ClipPlane:59
Copy Op(erator) used to control whether shallow or deep copy is used during copy construction and clo...
Definition CopyOp:41
@ SHALLOW_COPY
Definition CopyOp:47
Base class/standard interface for objects which require IO support, cloning and reference counting.
Definition Object:61
A plane class.
Definition Plane:34
Encapsulates the current applied OpenGL modes, attributes and vertex arrays settings,...
Definition State:80
GLenum GLMode
GLMode is the value used in glEnable/glDisable(mode)
Definition StateAttribute:81
Type
Type identifier to differentiate between different state types.
Definition StateAttribute:124
@ CLIPPLANE
Definition StateAttribute:159
Definition StateAttribute:308
virtual void usesMode(GLMode mode)=0
General purpose double quad.
Definition Vec4d:29
#define NULL
Definition Export:55
#define OSG_EXPORT
Definition Export:39