Visualization Library 2.1.0
A lightweight C++ OpenGL middleware for 2D/3D graphics
|
[Download] [Tutorials] [All Classes] [Grouped Classes] |
Wraps the OpenGL function glClipPlane(). More...
#include <ClipPlane.hpp>
Public Member Functions | |
ClipPlane (real o=0.0f, vec3 n=vec3(0, 0, 0)) | |
Constructor. More... | |
ClipPlane (const vec3 &o, const vec3 &n) | |
Constructor. More... | |
virtual ERenderState | type () const |
Returns RS_ClipPlane0. More... | |
virtual void | apply (int index, const Camera *camera, OpenGLContext *) const |
Applies the light render states. More... | |
void | bindTransform (Transform *transform) |
Attach the light to a vl::Transform. More... | |
Transform * | boundTransform () |
Returns the vl::Transform to which the Light is attached. More... | |
const Transform * | boundTransform () const |
Returns the vl::Transform to which the Light is attached. More... | |
const Plane & | plane () const |
Returns the actual plane used to perform the clipping. More... | |
Plane & | plane () |
Returns the actual plane used to perform the clipping. More... | |
void | setPlane (const Plane &plane) |
Defines the actual plane used to perform the clipping. More... | |
virtual ref< RenderState > | clone () const |
void | setEnabled (bool enabled) |
bool | enabled () const |
Public Member Functions inherited from vl::RenderStateIndexed | |
RenderStateIndexed () | |
Public Member Functions inherited from vl::RenderState | |
RenderState () | |
Public Member Functions inherited from vl::Object | |
Object () | |
Constructor. More... | |
Object (const Object &other) | |
Copy constructor: copies the name, ref count mutex and user data. More... | |
Object & | operator= (const Object &other) |
Copy operator: copies the object's name, ref count mutex and user data. More... | |
const std::string & | objectName () const |
The name of the object, by default set to the object's class name. More... | |
void | setObjectName (const char *name) |
The name of the object, by default set to the object's class name in debug builds. More... | |
void | setObjectName (const std::string &name) |
The name of the object, by default set to the object's class name in debug builds. More... | |
void | setRefCountMutex (IMutex *mutex) |
The mutex used to protect the reference counting of an Object across multiple threads. More... | |
IMutex * | refCountMutex () |
The mutex used to protect the reference counting of an Object across multiple threads. More... | |
const IMutex * | refCountMutex () const |
The mutex used to protect the reference counting of an Object across multiple threads. More... | |
int | referenceCount () const |
Returns the number of references of an object. More... | |
void | incReference () const |
Increments the reference count of an object. More... | |
void | decReference () |
Decrements the reference count of an object and deletes it if both automaticDelete() is true the count reaches 0. More... | |
void | setAutomaticDelete (bool autodel_on) |
If set to true the Object is deleted when its reference count reaches 0. More... | |
bool | automaticDelete () const |
If set to true the Object is deleted when its reference count reaches 0. More... | |
template<class T > | |
T * | as () |
Casts an Object to the specified class. More... | |
template<class T > | |
const T * | as () const |
Casts an Object to the specified class. More... | |
Protected Attributes | |
ref< Transform > | mBoundTransform |
Plane | mPlane |
bool | mEnabled |
Protected Attributes inherited from vl::Object | |
std::string | mObjectName |
IMutex * | mRefCountMutex |
int | mReferenceCount |
bool | mAutomaticDelete |
Additional Inherited Members | |
Protected Member Functions inherited from vl::Object | |
virtual | ~Object () |
Wraps the OpenGL function glClipPlane().
See also http://www.opengl.org/sdk/docs/man/xhtml/glClipPlane.xml
Definition at line 49 of file ClipPlane.hpp.
Constructor.
Definition at line 37 of file ClipPlane.cpp.
References mEnabled, mPlane, vl::Plane::setNormal(), and vl::Plane::setOrigin().
Constructor.
Definition at line 45 of file ClipPlane.cpp.
References vl::dot(), mEnabled, mPlane, vl::Plane::setNormal(), and vl::Plane::setOrigin().
|
virtual |
Applies the light render states.
Implements vl::RenderState.
Definition at line 53 of file ClipPlane.cpp.
References boundTransform(), vl::dot(), enabled(), mPlane, vl::Plane::normal(), vl::Plane::origin(), vl::Camera::viewMatrix(), VL_CHECK, vl::Transform::worldMatrix(), vl::Vector3< T_Scalar >::x(), vl::Vector3< T_Scalar >::y(), and vl::Vector3< T_Scalar >::z().
|
inline |
Attach the light to a vl::Transform.
Definition at line 68 of file ClipPlane.hpp.
Referenced by vlX::VLXClassWrapper_ClipPlane::importClipPlane().
|
inline |
Returns the vl::Transform to which the Light is attached.
Definition at line 71 of file ClipPlane.hpp.
Referenced by apply(), and vlX::VLXClassWrapper_ClipPlane::exportClipPlane().
|
inline |
Returns the vl::Transform to which the Light is attached.
Definition at line 74 of file ClipPlane.hpp.
|
inlinevirtual |
Implements vl::RenderState.
Definition at line 85 of file ClipPlane.hpp.
|
inline |
Definition at line 94 of file ClipPlane.hpp.
Referenced by apply().
|
inline |
Returns the actual plane used to perform the clipping.
Definition at line 77 of file ClipPlane.hpp.
Referenced by vlX::VLXClassWrapper_ClipPlane::exportClipPlane(), and vlX::VLXClassWrapper_ClipPlane::importClipPlane().
|
inline |
Returns the actual plane used to perform the clipping.
Definition at line 80 of file ClipPlane.hpp.
|
inline |
Definition at line 92 of file ClipPlane.hpp.
|
inline |
Defines the actual plane used to perform the clipping.
Definition at line 83 of file ClipPlane.hpp.
|
inlinevirtual |
Returns RS_ClipPlane0.
Reimplemented from vl::RenderState.
Definition at line 62 of file ClipPlane.hpp.
References vl::RS_ClipPlane.
Definition at line 97 of file ClipPlane.hpp.
|
protected |
Definition at line 99 of file ClipPlane.hpp.
Referenced by ClipPlane().
|
protected |
Definition at line 98 of file ClipPlane.hpp.
Referenced by apply(), and ClipPlane().
Visualization Library 2.1.0 Reference Documentation
Updated on Wed Mar 10 2021 16:02:48.
© Copyright Michele Bosi. All rights reserved.