SoDecimationPercentageElement Class Reference
[Elements]

VSG extension Stores the current shape decimation percentage. More...

#include <Inventor/elements/SoDecimationPercentageElement.h>

Inheritance diagram for SoDecimationPercentageElement:
SoFloatElement SoElement SoTypedObject

List of all members.

Static Public Member Functions

static SoType getClassTypeId ()
static int getClassStackIndex ()
static void set (SoState *state, float comp)
static void set (SoState *state, SoNode *, float comp)
static float get (SoState *state)
static float getDefault ()

Detailed Description

VSG extension Stores the current shape decimation percentage.

This element stores the current shape decimation percentage. If the SoDecimationTypeElement is set to "PERCENTAGE", shapes should use this element to determine the desired percentage of the total amount of triangles.

SEE ALSO

SoGLRenderAction, SoGetPrimitiveCountAction


Member Function Documentation

static float SoDecimationPercentageElement::get ( SoState state  )  [static]

Returns current decimation percentage from the state.

static int SoDecimationPercentageElement::getClassStackIndex (  )  [static]

Returns the stack id for this element.

Reimplemented from SoFloatElement.

static SoType SoDecimationPercentageElement::getClassTypeId (  )  [static]

Returns the type identifier for this class.

Reimplemented from SoFloatElement.

static float SoDecimationPercentageElement::getDefault (  )  [static]

Returns the default decimation percentage.

static void SoDecimationPercentageElement::set ( SoState state,
SoNode ,
float  comp 
) [static]

Sets the current decimation in the state.

static void SoDecimationPercentageElement::set ( SoState state,
float  comp 
) [static]

Sets the current decimation in the state.


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

Open Inventor Toolkit reference manual, generated on 4 Sep 2023
Copyright © Thermo Fisher Scientific All rights reserved.
https://www.openinventor.com/