Coin Logo Coin3D is Free Software,
published under the BSD 3-clause license.
https://bitbucket.org/Coin3D/
http://www.kongsberg.com/kogt/
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
GLDepthBufferElement Class Reference

The SoGLDrawStyleElement controls the OpenGL depth buffer. More...

#include <Inventor/elements/GLDepthBufferElement.h>

Inherits SoElement.

Public Types

enum  Func {
  NEVER, ALWAYS, LESS, LEQUAL,
  EQUAL, GEQUAL, GREATER, NOTEQUAL
}
 

Public Member Functions

virtual void init (SoState *state)
 
virtual void push (SoState *state)
 
virtual void pop (SoState *state, const SoElement *prevTopElement)
 
virtual SbBool matches (const SoElement *element) const
 
virtual SoElementcopyMatchInfo (void) const
 
- Public Member Functions inherited from SoElement
const SoType getTypeId (void) const
 
int getStackIndex (void) const
 
void setDepth (const int depth)
 
int getDepth (void) const
 
virtual void print (FILE *file=stdout) const
 
virtual ~SoElement ()
 

Static Public Member Functions

static void initClass (void)
 
static void set (SoState *state, const Func func, const SbBool enable)
 
- Static Public Member Functions inherited from SoElement
static void initClass (void)
 
static SoType getClassTypeId (void)
 
static int getClassStackIndex (void)
 
static void initElements (void)
 
static int getNumStackIndices (void)
 
static SoType getIdFromStackIndex (const int stackIndex)
 

Protected Member Functions

virtual ~GLDepthBufferElement ()
 
- Protected Member Functions inherited from SoElement
 SoElement (void)
 
void capture (SoState *const state) const
 
virtual void captureThis (SoState *state) const
 
void setTypeId (const SoType typeId)
 
void setStackIndex (const int index)
 
SoElementgetNextInStack (void) const
 
SoElementgetNextFree (void) const
 

Additional Inherited Members

- Static Protected Member Functions inherited from SoElement
static SoElementgetElement (SoState *const state, const int stackIndex)
 
static const SoElementgetConstElement (SoState *const state, const int stackIndex)
 
static int createStackIndex (const SoType id)
 
- Protected Attributes inherited from SoElement
SoType typeId
 
int stackIndex
 
int depth
 
- Static Protected Attributes inherited from SoElement
static int classStackIndex
 
static SoTypeListstackToType
 

Detailed Description

The SoGLDrawStyleElement controls the OpenGL depth buffer.

Member Enumeration Documentation

◆ Func

Enumerator
NEVER 
ALWAYS 
LESS 
LEQUAL 
EQUAL 
GEQUAL 
GREATER 
NOTEQUAL 

Constructor & Destructor Documentation

◆ ~GLDepthBufferElement()

GLDepthBufferElement::~GLDepthBufferElement ( void  )
protectedvirtual

The destructor.

Member Function Documentation

◆ copyMatchInfo()

SoElement * GLDepthBufferElement::copyMatchInfo ( void  ) const
virtual

Internal Coin method.

Implements SoElement.

◆ init()

void GLDepthBufferElement::init ( SoState state)
virtual

Internal Coin method.

Reimplemented from SoElement.

◆ initClass()

void GLDepthBufferElement::initClass ( void  )
static

This static method initializes static data for the GLDepthBufferElement class.

◆ matches()

SbBool GLDepthBufferElement::matches ( const SoElement element) const
virtual

Internal Coin method.

Implements SoElement.

◆ pop()

void GLDepthBufferElement::pop ( SoState state,
const SoElement prevTopElement 
)
virtual

Internal Coin method.

Reimplemented from SoElement.

◆ push()

void GLDepthBufferElement::push ( SoState state)
virtual

Reimplemented from SoElement.

◆ set()

void GLDepthBufferElement::set ( SoState state,
const Func  func,
const SbBool  enable 
)
static

Set this element's values.


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