SoShapeStyleElement Class Reference
[Elements]

Stores some information used by shapes. More...

#include <Inventor/elements/SoShapeStyleElement.h>

Inheritance diagram for SoShapeStyleElement:
SoElement SoTypedObject

List of all members.

Classes

struct  SoTextureData

Public Types

enum  flags {
  INVISIBLE_BIT = 0x1,
  BBOX_BIT = 0x2,
  DELAY_TRANSP_BIT = 0x4
}

Public Member Functions

virtual void push (SoState *state)
virtual void pop (SoState *state, const SoElement *prevTopElement)
SbBool mightNotRender () const
SbBool needNormals () const
SbBool needTangents () const
SbBool needTexCoords (int unit=0) const
SbBool needTexCoords3 (int unit=0) const
int getRenderCaseMask () const
virtual void print (FILE *fp) const

Static Public Member Functions

static SoType getClassTypeId ()
static int getClassStackIndex ()
static const SoShapeStyleElementget (SoState *state)
static void setDrawStyle (SoState *state, int32_t value)
static void setComplexityType (SoState *state, int32_t value)
static void setTransparencyType (SoState *state, int32_t value)
static void setTextureEnabled (SoState *state, SbBool value, int unit=0)
static void setTexture3Enabled (SoState *state, SbBool value, int unit=0)
static void setTextureFunction (SoState *state, SbBool value, int unit=0)
static void setLightModel (SoState *state, int32_t value)
static void setOverrides (SoState *state, SbBool value)

Detailed Description

Stores some information used by shapes.

This elements stores some information shapes need to quickly determine whether or not they should render, and, if they should render, how they should render. Specifically, it stores:

NeedNormals: TRUE if lighting is on
NeedTangents: TRUE if lighting is on
NeedTexCoords: TRUE if texturing and texcoords not generated by GL
MightNotRender: TRUE if:

SEE ALSO


Member Enumeration Documentation

flags

Enumerator:
INVISIBLE_BIT 

INVISIBLE_BIT.

BBOX_BIT 

BBOX_BIT.

DELAY_TRANSP_BIT 

DELAY_TRANSP_BIT.


Member Function Documentation

static const SoShapeStyleElement* SoShapeStyleElement::get ( SoState state  )  [static]

Get a readable instance.

static int SoShapeStyleElement::getClassStackIndex (  )  [static]

Returns the stack id for this element.

Reimplemented from SoElement.

static SoType SoShapeStyleElement::getClassTypeId (  )  [static]

Returns the type identifier for this class.

Reimplemented from SoElement.

int SoShapeStyleElement::getRenderCaseMask (  )  const [inline]

Returns a mask that can be used by the SoVertexPropertyCache class (see SoVertexProperty.h for the SoRenderInfo class) to quickly mask out the normal or texture coordinate cases if normals or texture coordinates aren't needed.

SbBool SoShapeStyleElement::mightNotRender (  )  const [inline]

Returns TRUE if shapes may not render for some reason.

SbBool SoShapeStyleElement::needNormals (  )  const [inline]

Returns TRUE if need normals.

SbBool SoShapeStyleElement::needTangents (  )  const [inline]

Returns TRUE if need tangents.

SbBool SoShapeStyleElement::needTexCoords ( int  unit = 0  )  const

Returns TRUE if need texture coordinates.

SbBool SoShapeStyleElement::needTexCoords3 ( int  unit = 0  )  const

Returns TRUE if need 3D texture coordinates.

virtual void SoShapeStyleElement::pop ( SoState state,
const SoElement prevTopElement 
) [virtual]

Pops element. Allows for side effects to occur. Default methods do nothing.

virtual void SoShapeStyleElement::print ( FILE *  fp  )  const [virtual]

Prints element (for debugging).

Reimplemented from SoElement.

virtual void SoShapeStyleElement::push ( SoState state  )  [virtual]

Pushes element. Allows for side effects to occur. Default methods do nothing.

Reimplemented from SoElement.

static void SoShapeStyleElement::setComplexityType ( SoState state,
int32_t  value 
) [static]

API used by other elements.

static void SoShapeStyleElement::setDrawStyle ( SoState state,
int32_t  value 
) [static]

API used by other elements.

static void SoShapeStyleElement::setLightModel ( SoState state,
int32_t  value 
) [static]

API used by other elements.

static void SoShapeStyleElement::setOverrides ( SoState state,
SbBool  value 
) [static]

Set value is TRUE if either diffuse, transparency, or materialbinding are overridden; otherwise FALSE.

static void SoShapeStyleElement::setTexture3Enabled ( SoState state,
SbBool  value,
int  unit = 0 
) [static]

API used by other elements.

static void SoShapeStyleElement::setTextureEnabled ( SoState state,
SbBool  value,
int  unit = 0 
) [static]

API used by other elements.

static void SoShapeStyleElement::setTextureFunction ( SoState state,
SbBool  value,
int  unit = 0 
) [static]

API used by other elements.

static void SoShapeStyleElement::setTransparencyType ( SoState state,
int32_t  value 
) [static]

API used by other elements.


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

Open Inventor Toolkit reference manual, generated on 15 Mar 2023
Copyright © Thermo Fisher Scientific All rights reserved.
http://www.openinventor.com/