Click or drag to resize
SoNodeGetAlternateRep Method

This method is called by actions to allow the node to provide an "alternate representation" when appropriate (typically depending on the action type).

Namespace: OIV.Inventor.Nodes
Assembly: OIV.Inventor (in OIV.Inventor.dll) Version: 2024.1.2.0 (2024.1.2)
Syntax
[EditorBrowsableAttribute(EditorBrowsableState.Advanced)]
public virtual SoNode GetAlternateRep(
	SoAction action
)

Parameters

action
Type: OIV.Inventor.ActionsSoAction

Return Value

Type: SoNode
Remarks

For example, when an OIV.Inventor.Nodes.SoIndexedTexture2 node is traversed by an OIV.HardCopy.SoToU3DAction, it returns an OIV.Inventor.Nodes.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 OIV.Inventor.Actions.SoWriteAction.

By default the node itself is returned.

See Also