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:
Modifier and Type | Class and Description |
---|---|
static class |
SoNode.RenderModes
Defines the list of supported render mode for a custom node.
|
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) |
SoNode.RenderModes |
getRenderEngineMode()
Returns the supported Render engine mode.
|
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, getName, isDisposable, isSynchronizable, setName, setSynchronizable
getNativeResourceHandle
public SoNode.RenderModes getRenderEngineMode()
For custom node, this method returns by default
SoNode.RenderModes.OIV_UNKNOWN_RENDERING_MODE
, override this method to
specify the Render engine mode supported by your custom node.
public SoNode copy()
public boolean isBoundingBoxIgnoring()
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 setOverride(boolean state)
SoBaseColor
, SoColorIndex
, SoComplexity
, SoDepthBuffer
, SoDrawStyle
, SoEnvironment
, SoFont
, SoFullSceneAntialiasing
, SoLightModel
, SoMaterial
, SoMaterialBinding
, SoPackedColor
, SoPattern
, SoPickStyle
, SoPolygonOffset
, SoShapeHints
, 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 boolean isOverride()
public void touch()
public boolean affectsState()
SoSeparator
) that isolate their effects from the rest of the graph override this method to return false.public SoNode copy(boolean copyConnections)
public void getPrimitiveCount(SoGetPrimitiveCountAction action)
public void grabEventsCleanup()
public void write(SoWriteAction action)
public int getRenderUnitID()
public void distribute(SoDistributeAction action)
public void GLRenderOffPath(SoGLRenderAction action)
public void GLRenderInPath(SoGLRenderAction action)
public void grabEventsSetup()
public void GLRenderBelowPath(SoGLRenderAction action)
public void callback(SoCallbackAction action)
public void getBoundingBox(SoGetBoundingBoxAction action)
public void doAction(SoAction action)
public void GLRender(SoGLRenderAction action)
public void getMatrix(SoGetMatrixAction action)
public void rayPick(SoRayPickAction action)
public void search(SoSearchAction action)
public void handleEvent(SoHandleEventAction action)
public void pick(SoPickAction action)
Generated on July 31, 2019, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com