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)
SbBool mightNotRender () const
SbBool needNormals () const
SbBool needTexCoords (int unit=0) const
SbBool needTexCoords3 (int unit=0) const
int getRenderCaseMask () 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)
static SbBool isScreenDoor (SoState *state)

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
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.

static SbBool SoShapeStyleElement::isScreenDoor ( SoState state  )  [static]

Returns TRUE if screen door is set.

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::needTexCoords ( int  unit = 0  )  const [inline]

Returns TRUE if need texture coordinates.

SbBool SoShapeStyleElement::needTexCoords3 ( int  unit = 0  )  const [inline]

Returns TRUE if need 3D texture coordinates.

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 12 Feb 2024
Copyright © Thermo Fisher Scientific All rights reserved.
http://www.openinventor.com/