Visualization Library v1.0.3

A lightweight C++ OpenGL middleware for 2D/3D graphics

VL     Star     Watch     Fork     Issue

[Download] [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
void setEnabled (bool enabled)
bool enabled () const

Protected Attributes

ref< TransformmBoundTransform
Plane mPlane
bool mEnabled

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 mEnabled, 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 45 of file ClipPlane.cpp.

References vl::dot(), mEnabled, 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.

void vl::ClipPlane::setEnabled ( bool  enabled ) [inline]

Definition at line 92 of file ClipPlane.hpp.

bool vl::ClipPlane::enabled (  ) const [inline]

Definition at line 94 of file ClipPlane.hpp.

Referenced by apply().


Member Data Documentation

Definition at line 97 of file ClipPlane.hpp.

Definition at line 98 of file ClipPlane.hpp.

Referenced by apply(), and ClipPlane().

bool vl::ClipPlane::mEnabled [protected]

Definition at line 99 of file ClipPlane.hpp.

Referenced by ClipPlane().


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

Visualization Library v1.0.3 Reference Documentation
Copyright Michele Bosi. All rights reserved.
Updated on Tue Feb 7 2017 00:55:09.
Permission is granted to use this page to write and publish articles regarding Visualization Library.