Stores some information used by shapes. More...
#include <Inventor/elements/SoShapeStyleElement.h>
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 SoShapeStyleElement * | get (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) |
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:
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.
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.