table of contents
other sections
SoLevelOfDetail(3IV)() | SoLevelOfDetail(3IV)() |
NAME¶
SoLevelOfDetail — level-of-detail switching group nodeINHERITS FROM¶
SoBase > SoFieldContainer > SoNode > SoGroup > SoLevelOfDetailSYNOPSIS¶
#include <Inventor/nodes/SoLevelOfDetail.h>Fields from class SoLevelOfDetail:
SoMFFloat screenArea
Methods from class SoLevelOfDetail:
SoLevelOfDetail()
static SoType getClassTypeId()
Methods from class SoGroup:
void addChild(SoNode *child)
void insertChild(SoNode *child, int newChildIndex)
SoNode * getChild(int index) const
int findChild(const SoNode *child) const
int getNumChildren() const
void removeChild(int index)
void removeChild(SoNode *child)
void removeAllChildren()
void replaceChild(int index, SoNode *newChild)
void replaceChild(SoNode *oldChild, SoNode *newChild)
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¶
The children of this node typically represent the same object or objects at varying levels of detail, from highest detail to lowest. The size of the objects when projected into the viewport is used to determine which version to use (i.e., which child to traverse).FIELDS¶
SoMFFloat screenArea
Areas to use for comparison
METHODS¶
SoLevelOfDetail()
Creates a level-of-detail node with default settings.
static SoType getClassTypeId()
Returns type identifier for this class.
ACTION BEHAVIOR¶
SoGLRenderAction, SoRayPickAction, SoCallbackActionOnly the child with the appropriate level of detail is traversed.
SoGetBoundingBoxAction
The box that encloses all children is computed. (This is the box that is needed to compute the projected size.)
others
All implemented as for SoGroup.
FILE FORMAT/DEFAULTS¶
LevelOfDetail {
screenArea 0
}