public class SoVRMLShape extends SoVRMLNode
<font color="#0000FF">NOTE:</font> This class does not exist in Open Inventor 10.0 and later.
This section describes the expected behavior of the node in a conforming VRML97 browser application. In some cases, the application is responsible for implementing portions of the expected behavior. Open Inventor viewer classes and IVF classes implement some of the application behaviors.
This section may reference portions of the VRML97 specification that are not present in this help file. The complete VRML97 spec is available at
The SoVRMLShape node has four fields: appearance and geometry which are used to create rendered objects in the world. The appearance field specifies an SoVRMLAppearance node that specifies the visual attributes (e.g. material and texture) to be applied to the geometry. The geometry field specifies a geometry node. The specified geometry node is rendered with the specified appearance nodes applied.
The bboxCenter and bboxSize fields specify a bounding box that encloses the SoVRMLShape node's geometry. This is a hint that may be used for optimization purposes. If the specified bounding box is smaller than the actual bounding box of the children at any time, then the results are undefined. A default bboxSize value, (-1 -1 -1), implies that the bounding box is not specified and if needed must be calculated by the browser. See "Concepts -
Bounding Boxes" for a description of the bboxCenter and bboxSize fields.
See "Concepts - Lighting Model" for details of the VRML lighting model and the interaction between SoVRMLAppearance and geometry nodes.
If the geometry field is NULL the object is not drawn.
Note: The following fields renderCaching and boundingBoxCachingSoSeparator for a discussion of Open Inventor caching and culling.
File format/default:
VRMLShape {
| appearance | NULL |
| geometry | NULL |
| bboxCenter | 0 0 0 |
| bboxSize | -1 -1 -1 |
| metadata | NULL |
| renderCaching | AUTO |
| boundingBoxCaching | AUTO |
Action behavior:
SoGLRenderAction, SoRayPickAction, SoGetBoundingBoxAction, SoCallbackAction
Sets: SoCacheElement
Deprecated since Open Inventor 9500
| Modifier and Type | Class and Description |
|---|---|
static class |
SoVRMLShape.Cachings
Deprecated.
Possible values for caching.
|
Inventor.ConstructorCommand| Modifier and Type | Field and Description |
|---|---|
SoSFNode |
appearance
Deprecated.
Specifies an
SoVRMLAppearance node that defines the visual attributes. |
static int |
AUTO
Deprecated.
Use
SoVRMLShape.Cachings.AUTO instead. |
SoSFVec3f |
bboxCenter
Deprecated.
Center of a bounding box that encloses the children.
|
SoSFVec3f |
bboxSize
Deprecated.
Size of a bounding box that encloses the children.
|
SoSFEnum<SoVRMLShape.Cachings> |
boundingBoxCaching
Deprecated.
Whether to cache during bounding box traversal.
|
SoSFNode |
geometry
Deprecated.
A geometry node.
|
static int |
OFF
Deprecated.
Use
SoVRMLShape.Cachings.OFF instead. |
static int |
ON
Deprecated.
Use
SoVRMLShape.Cachings.ON instead. |
SoSFEnum<SoVRMLShape.Cachings> |
renderCaching
Deprecated.
Whether to cache during rendering traversal.
|
metadataVERBOSE_LEVEL, ZeroHandle| Constructor and Description |
|---|
SoVRMLShape()
Deprecated.
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static int |
getNumRenderCaches()
Deprecated.
As of Open Inventor 8.0, use
SoDB.getNumRenderCaches() instead. |
static void |
setNumRenderCaches(int howMany)
Deprecated.
As of Open Inventor 8.0, use
SoDB.setNumRenderCaches(int) instead. |
affectsState, callback, copy, copy, distribute, doAction, getAlternateRep, getBoundingBox, getByName, getMatrix, getPrimitiveCount, getRenderUnitID, GLRender, GLRenderBelowPath, GLRenderInPath, GLRenderOffPath, grabEventsCleanup, grabEventsSetup, handleEvent, isBoundingBoxIgnoring, isOverride, pick, rayPick, search, setOverride, touch, writecopyFieldValues, copyFieldValues, enableNotify, fieldsAreEqual, get, getAllFields, getEventIn, getEventOut, getField, getFieldName, hasDefaultValues, isNotifyEnabled, set, setToDefaultsdispose, getEXTERNPROTO, getName, getPROTO, isDisposable, isSynchronizable, setName, setSynchronizablegetAddress, getNativeResourceHandle, startInternalThreads, stopInternalThreads@Deprecated public static final int OFF
SoVRMLShape.Cachings.OFF instead.@Deprecated public static final int ON
SoVRMLShape.Cachings.ON instead.@Deprecated public static final int AUTO
SoVRMLShape.Cachings.AUTO instead.public final SoSFNode appearance
SoVRMLAppearance node that defines the visual attributes.public final SoSFNode geometry
public final SoSFVec3f bboxCenter
public final SoSFVec3f bboxSize
public final SoSFEnum<SoVRMLShape.Cachings> renderCaching
NOTE: This field is not compatible with VRML97. If you specify a non-default value for this field, when this node is written to a VRML file, the file will contain this incompatible field and standard VRML97 file readers will not be able to read it.
public final SoSFEnum<SoVRMLShape.Cachings> boundingBoxCaching
NOTE: This field is not compatible with VRML97. If you specify a non-default value for this field, when this node is written to a VRML file, the file will contain this incompatible field and standard VRML97 file readers will not be able to read it.
@Deprecated public static int getNumRenderCaches()
SoDB.getNumRenderCaches() instead.@Deprecated public static void setNumRenderCaches(int howMany)
SoDB.setNumRenderCaches(int) instead.Generated on July 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com