SoROIGetAlternateRep 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.LDM.Nodes
[EditorBrowsableAttribute(EditorBrowsableState.Advanced)] public override SoNode GetAlternateRep( SoAction action )
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.