Click or drag to resize
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
Assembly: OIV.LDM (in OIV.LDM.dll) Version: 2023.1.3.0 (2023.1.3)
Syntax
[EditorBrowsableAttribute(EditorBrowsableState.Advanced)]
public override 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