public class SoNode extends SoFieldContainer
File format/default:
This is an abstract class. See the reference page of a derived class for the format and default values.
Action behavior:
SoSearchAction
If the node, type, or name matches the search criteria, returns a path to the node.
SoWriteAction
Writes the contents of the node to the current SoOutput
.
See also:
Inventor.ConstructorCommand
VERBOSE_LEVEL, ZeroHandle
Modifier and Type | Method and Description |
---|---|
boolean |
affectsState()
Returns true if a node has an effect on the state during traversal.
|
void |
callback(SoCallbackAction action) |
SoNode |
copy()
Calls copy(false).
|
SoNode |
copy(boolean copyConnections)
Creates and returns an exact copy of the node.
|
void |
distribute(SoDistributeAction action) |
void |
doAction(SoAction action) |
SoNode |
getAlternateRep(SoAction action)
This method is called by actions to allow the node to provide an "alternate
representation" when appropriate (typically depending on the action type).
|
void |
getBoundingBox(SoGetBoundingBoxAction action) |
static SoNode |
getByName(java.lang.String name)
A node's name can be set using
SoBase.setName() . |
void |
getMatrix(SoGetMatrixAction action) |
void |
getPrimitiveCount(SoGetPrimitiveCountAction action) |
int |
getRenderUnitID() |
void |
GLRender(SoGLRenderAction action) |
void |
GLRenderBelowPath(SoGLRenderAction action) |
void |
GLRenderInPath(SoGLRenderAction action) |
void |
GLRenderOffPath(SoGLRenderAction action) |
void |
grabEventsCleanup() |
void |
grabEventsSetup() |
void |
handleEvent(SoHandleEventAction action) |
boolean |
isBoundingBoxIgnoring()
This method is used by getBoundingBox action traversal to know if the current node must be traversed or not, ie the bounding should be ignored.
|
boolean |
isOverride()
Returns the state of the override flag.
|
void |
pick(SoPickAction action) |
void |
rayPick(SoRayPickAction action) |
void |
search(SoSearchAction action) |
void |
setOverride(boolean state)
Turns the override flag on or off.
|
void |
touch()
Marks an instance as modified, simulating a change to it.
|
void |
write(SoWriteAction action) |
copyFieldValues, copyFieldValues, enableNotify, fieldsAreEqual, get, getAllFields, getEventIn, getEventOut, getField, getFieldName, hasDefaultValues, isNotifyEnabled, set, setToDefaults
dispose, getEXTERNPROTO, getName, getPROTO, isDisposable, isSynchronizable, setName, setSynchronizable
getAddress, getNativeResourceHandle, startInternalThreads, stopInternalThreads
public SoNode copy()
public void callback(SoCallbackAction action)
public void setOverride(boolean state)
SoBaseColor
, SoColorIndex
, SoComplexity
, SoDepthBuffer
, SoDrawStyle
, SoEnvironment
, SoFont
, SoFullSceneAntialiasing
, SoLightModel
, SoMaterial
, SoMaterialBinding
, SoPackedColor
, SoPattern
, SoPickStyle
, SoPolygonOffset
, SoShapeHints
, SoTransparencyType
, SoVertexProperty
, SoTextProperty
. SoDrawStyle
node at the top of a graph to ensure that the whole scene is drawn as wireframe objects, regardless of drawing styles specified lower in the scene graph. Use the setOverride()
method to set and reset the override flag. The isOverride()
method returns the state of the override flag.
Normally, the override flag is not used within a scene graph for modeling. Use it in applications where you need to specify a temporary change to the whole graph.
Note: The override flag is not written to a file.
Setting the override flag on a node whose field values are not inherited (for example on a sphere with a radius of 7) has no effect on other nodes in the graph of that type.
public static SoNode getByName(java.lang.String name)
SoBase.setName()
.
This method allows nodes to be looked up by name. It returns the last node given the specified name.public SoNode copy(boolean copyConnections)
Please also note that instance data other than Inventor fields and public children will not be copied by this method. If extra data needs to be copied as well, this method will have to be manually overridden.
public boolean affectsState()
SoSeparator
) that isolate their effects from the rest of the graph override this method to return false.public boolean isOverride()
public void doAction(SoAction action)
public void rayPick(SoRayPickAction action)
public void search(SoSearchAction action)
public boolean isBoundingBoxIgnoring()
public void write(SoWriteAction action)
public void getMatrix(SoGetMatrixAction action)
public void getBoundingBox(SoGetBoundingBoxAction action)
public void handleEvent(SoHandleEventAction action)
public void pick(SoPickAction action)
public void GLRender(SoGLRenderAction action)
public void grabEventsSetup()
public void GLRenderOffPath(SoGLRenderAction action)
public void grabEventsCleanup()
public void touch()
public int getRenderUnitID()
public void distribute(SoDistributeAction action)
public void getPrimitiveCount(SoGetPrimitiveCountAction action)
public SoNode getAlternateRep(SoAction action)
SoIndexedTexture2
node is traversed by an SoToU3DAction
, it returns an SoTexture2
node as its alternate representation, because indexed textures are not supported in U3D. A custom node can use this mechanism to provide an alternate representation using standard nodes when it is travered by an SoWriteAction
.
By default the node itself is returned.
public void GLRenderInPath(SoGLRenderAction action)
public void GLRenderBelowPath(SoGLRenderAction action)
Generated on January 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com