Open Inventor Release 2023.2.3
 
Loading...
Searching...
No Matches
SoLightModelElement Class Reference

Stores the current lighting model. More...

#include <Inventor/elements/SoLightModelElement.h>

+ Inheritance diagram for SoLightModelElement:

Public Types

enum  Model {
  BASE_COLOR ,
  PHONG ,
  PER_VERTEX_PHONG ,
  PER_PIXEL_PHONG
}
 These are the available lighting models. More...
 

Static Public Member Functions

static SoType getClassTypeId ()
 Returns the type identifier for this class.
 
static int getClassStackIndex ()
 Returns the stack id for this element.
 
static void set (SoState *state, Model model)
 Sets the current lighting model in the state.
 
static void set (SoState *state, SoNode *, Model model)
 Sets the current lighting model in the state.
 
static Model get (SoState *state)
 Returns current lighting model from the state.
 
static Model getDefault ()
 Returns the default lighting model.
 
- Static Public Member Functions inherited from SoElement
static SoType getClassTypeId ()
 Returns type identifier for SoElement class.
 
- Static Public Member Functions inherited from SoTypedObject
static SoType getClassTypeId ()
 Returns the type identifier for this class.
 

Additional Inherited Members

- Public Member Functions inherited from SoElement
virtual void push (SoState *state)
 Pushes element.
 
virtual void pop (SoState *state, const SoElement *prevTopElement)
 Pops element.
 
virtual void print (FILE *fp) const
 Prints element (for debugging).
 
virtual SoType getTypeId () const
 Returns type identifier for element instance.
 
- Public Member Functions inherited from SoTypedObject
SbBool isOfType (const SoType &type) const
 Returns TRUE if this object is of the type specified in type or is derived from that type.
 
template<typename TypedObjectClass >
SbBool isOfType () const
 Returns TRUE if this object is of the type of class TypedObjectClass or is derived from that class.
 

Detailed Description

Stores the current lighting model.

This element stores the current lighting model.

SEE ALSO

Definition at line 69 of file SoLightModelElement.h.

Member Enumeration Documentation

◆ Model

These are the available lighting models.

Enumerator
BASE_COLOR 

No lighting; just use base color.

PHONG 

Phong lighting.

PER_VERTEX_PHONG 

Per-vertex Phong lighting.

PER_PIXEL_PHONG 

Per-pixel Phong lighting.

Definition at line 77 of file SoLightModelElement.h.

Member Function Documentation

◆ get()

static Model SoLightModelElement::get ( SoState state)
static

Returns current lighting model from the state.

◆ getClassStackIndex()

static int SoLightModelElement::getClassStackIndex ( )
static

Returns the stack id for this element.


◆ getClassTypeId()

static SoType SoLightModelElement::getClassTypeId ( )
static

Returns the type identifier for this class.


◆ getDefault()

static Model SoLightModelElement::getDefault ( )
static

Returns the default lighting model.

◆ set() [1/2]

static void SoLightModelElement::set ( SoState state,
Model  model 
)
static

Sets the current lighting model in the state.

◆ set() [2/2]

static void SoLightModelElement::set ( SoState state,
SoNode ,
Model  model 
)
static

Sets the current lighting model in the state.


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