table of contents
other sections
SoComplexity(3IV)() | SoComplexity(3IV)() |
NAME¶
SoComplexity — shape complexity nodeINHERITS FROM¶
SoBase > SoFieldContainer > SoNode > SoComplexitySYNOPSIS¶
#include <Inventor/nodes/SoComplexity.h>enum Type {
SoComplexity::SCREEN_SPACE Set complexity based on screen size
SoComplexity::OBJECT_SPACE Set complexity independent of screen size
SoComplexity::BOUNDING_BOX Draw all shapes as bounding boxes
}
Fields from class SoComplexity:
SoSFEnum type
SoSFFloat value
SoSFFloat textureQuality
Methods from class SoComplexity:
SoComplexity()
static SoType getClassTypeId()
Methods from class SoNode:
void setOverride(SbBool state)
SbBool isOverride() const
SoNode * copy(SbBool copyConnections = FALSE) const
virtual SbBool affectsState() const
static SoNode * getByName(const SbName &name)
static int getByName(const SbName &name, SoNodeList &list)
Methods from class SoFieldContainer:
void setToDefaults()
SbBool hasDefaultValues() const
SbBool fieldsAreEqual(const SoFieldContainer *fc) const
void copyFieldValues(const SoFieldContainer *fc, SbBool copyConnections = FALSE)
SbBool set(const char *fieldDataString)
void get(SbString &fieldDataString)
virtual int getFields(SoFieldList &resultList) const
virtual SoField * getField(const SbName &fieldName) const
SbBool getFieldName(const SoField *field, SbName &fieldName) const
SbBool isNotifyEnabled() const
SbBool enableNotify(SbBool flag)
Methods from class SoBase:
void ref()
void unref() const
void unrefNoDelete() const
void touch()
virtual SoType getTypeId() const
SbBool isOfType(SoType type) const
virtual void setName(const SbName &name)
virtual SbName getName() const
DESCRIPTION¶
This node sets the current shape complexity value. This is a heuristic value which provides a hint at what geometric complexity to render shape nodes. Values range from 0 to 1, where 0 means minimum complexity and 1 means maximum complexity. Each shape node interprets complexity in its own way.FIELDS¶
SoSFEnum type
How shape complexity is interpreted.
SoSFFloat value
Complexity value.
SoSFFloat textureQuality
Hint about texture quality. A value of 0 indicates that the fastest texturing should be used, while a value of 1 indicates that the best quality texturing should be used.
METHODS¶
SoComplexity()
Creates a complexity node with default settings.
static SoType getClassTypeId()
Returns type identifier for this class.
ACTION BEHAVIOR¶
SoGLRenderAction, SoCallbackAction, SoGetBoundingBoxAction, SoRayPickActionSets the current complexity in the state.
FILE FORMAT/DEFAULTS¶
Complexity {
type OBJECT_SPACE value 0.5 textureQuality 0.5
}