The SoClipPlaneElement class is used to manage the clip plane stack.
More...
#include <Inventor/elements/SoClipPlaneElement.h>
The SoClipPlaneElement class is used to manage the clip plane stack.
◆ ~SoClipPlaneElement()
SoClipPlaneElement::~SoClipPlaneElement |
( |
| ) |
|
|
protectedvirtual |
◆ getClassTypeId()
SoType SoClipPlaneElement::getClassTypeId |
( |
void | | ) |
|
|
static |
This static method returns the SoType object associated with objects of this class.
◆ getClassStackIndex()
int SoClipPlaneElement::getClassStackIndex |
( |
void | | ) |
|
|
static |
This static method returns the state stack index for the class.
◆ createInstance()
void * SoClipPlaneElement::createInstance |
( |
void | | ) |
|
|
static |
This API member is considered internal to the library, as it is not likely to be of interest to the application programmer.
Creates a new instance of the class type corresponding to the SoType object.
◆ initClass()
void SoClipPlaneElement::initClass |
( |
void | | ) |
|
|
static |
Initialize relevant common data for all instances, like the type system.
◆ init()
void SoClipPlaneElement::init |
( |
SoState * | state | ) |
|
|
virtual |
◆ push()
void SoClipPlaneElement::push |
( |
SoState * | state | ) |
|
|
virtual |
This method is called every time a new element is required in one of the stacks. This happens when a writable element is requested, using SoState::getElement() or indirectly SoElement::getElement(), and the depth of the current element is less than the state depth.
Override this method if your element needs to copy data from the previous top of stack. The push() method is called on the new element, and the previous element can be found using SoElement::getNextInStack().
Reimplemented from SoAccumulatedElement.
◆ add()
Adds plane as an active plane. Calls addToElt() to do the job.
◆ getInstance()
Returns the current (top-of-stack) element.
◆ getNum()
int SoClipPlaneElement::getNum |
( |
void | | ) |
const |
Returns the current number of active clipping planes.
◆ get()
const SbPlane & SoClipPlaneElement::get |
( |
const int | index, |
|
|
const SbBool | inworldspace = TRUE ) const |
Returns the index'th plane.
◆ addToElt()
void SoClipPlaneElement::addToElt |
( |
const SbPlane & | plane, |
|
|
const SbMatrix & | modelMatrix ) |
|
protectedvirtual |
This method adds the clipping plane, plane, to an instance. modelmatrix is the current model matrix.
Reimplemented in SoGLClipPlaneElement.
◆ planes
SbList<so_plane_data> SoClipPlaneElement::planes |
|
protected |
List of currently active planes.
◆ startIndex
int SoClipPlaneElement::startIndex |
|
protected |
The documentation for this class was generated from the following files: