Visualization Library

A lightweight C++ OpenGL middleware for 2D/3D graphics
[Home] [Tutorials] [All Classes] [Grouped Classes]
Public Member Functions | Protected Attributes

vl::ClipPlane Class Reference

Wraps the OpenGL function glClipPlane(). More...

#include <ClipPlane.hpp>

Inheritance diagram for vl::ClipPlane:
vl::RenderStateIndexed vl::RenderState vl::Object

List of all members.

Public Member Functions

 ClipPlane (real o=0.0f, vec3 n=vec3(0, 0, 0))
 Constructor.
 ClipPlane (const vec3 &o, const vec3 &n)
 Constructor.
virtual ERenderState type () const
 Returns RS_ClipPlane0.
virtual void apply (int index, const Camera *camera, OpenGLContext *) const
 Applies the light render states.
void bindTransform (Transform *transform)
 Attach the light to a vl::Transform.
TransformboundTransform ()
 Returns the vl::Transform to which the Light is attached.
const TransformboundTransform () const
 Returns the vl::Transform to which the Light is attached.
const Planeplane () const
 Returns the actual plane used to perform the clipping.
Planeplane ()
 Returns the actual plane used to perform the clipping.
void setPlane (const Plane &plane)
 Defines the actual plane used to perform the clipping.
virtual ref< RenderStateclone () const

Protected Attributes

ref< TransformmBoundTransform
Plane mPlane

Detailed Description

Wraps the OpenGL function glClipPlane().

See also http://www.opengl.org/sdk/docs/man/xhtml/glClipPlane.xml

See also:
Shader, Effect, Actor

Definition at line 49 of file ClipPlane.hpp.


Constructor & Destructor Documentation

ClipPlane::ClipPlane ( real  o = 0.0f,
vec3  n = vec3(0,0,0) 
)

Constructor.

Definition at line 37 of file ClipPlane.cpp.

References mPlane, vl::Plane::setNormal(), vl::Plane::setOrigin(), and VL_DEBUG_SET_OBJECT_NAME.

ClipPlane::ClipPlane ( const vec3 o,
const vec3 n 
)

Constructor.

Definition at line 44 of file ClipPlane.cpp.

References vl::dot(), mPlane, vl::Plane::setNormal(), vl::Plane::setOrigin(), and VL_DEBUG_SET_OBJECT_NAME.


Member Function Documentation

virtual ERenderState vl::ClipPlane::type (  ) const [inline, virtual]

Returns RS_ClipPlane0.

Reimplemented from vl::RenderState.

Definition at line 62 of file ClipPlane.hpp.

References vl::RS_ClipPlane.

void ClipPlane::apply ( int  index,
const Camera camera,
OpenGLContext  
) const [virtual]
void vl::ClipPlane::bindTransform ( Transform transform ) [inline]

Attach the light to a vl::Transform.

Definition at line 68 of file ClipPlane.hpp.

Referenced by vl::VLXClassWrapper_ClipPlane::importClipPlane().

Transform* vl::ClipPlane::boundTransform (  ) [inline]

Returns the vl::Transform to which the Light is attached.

Definition at line 71 of file ClipPlane.hpp.

Referenced by apply(), and vl::VLXClassWrapper_ClipPlane::exportClipPlane().

const Transform* vl::ClipPlane::boundTransform (  ) const [inline]

Returns the vl::Transform to which the Light is attached.

Definition at line 74 of file ClipPlane.hpp.

const Plane& vl::ClipPlane::plane (  ) const [inline]

Returns the actual plane used to perform the clipping.

Definition at line 77 of file ClipPlane.hpp.

Referenced by vl::VLXClassWrapper_ClipPlane::exportClipPlane(), and vl::VLXClassWrapper_ClipPlane::importClipPlane().

Plane& vl::ClipPlane::plane (  ) [inline]

Returns the actual plane used to perform the clipping.

Definition at line 80 of file ClipPlane.hpp.

void vl::ClipPlane::setPlane ( const Plane plane ) [inline]

Defines the actual plane used to perform the clipping.

Definition at line 83 of file ClipPlane.hpp.

virtual ref<RenderState> vl::ClipPlane::clone (  ) const [inline, virtual]

Implements vl::RenderState.

Definition at line 85 of file ClipPlane.hpp.


Member Data Documentation

Definition at line 93 of file ClipPlane.hpp.

Definition at line 94 of file ClipPlane.hpp.

Referenced by apply(), and ClipPlane().


The documentation for this class was generated from the following files:

Visualization Library v2011.09.1160 Reference Documentation
Copyright 2005-2011 Michele Bosi. All rights reserved.
Updated on Tue Sep 27 2011 15:20:22.
Permission is granted to use this page to write and publish articles regarding Visualization Library.