SoNodeSetOverride Method |
Turns the override flag on or off.
Namespace: OIV.Inventor.Nodes
The following property nodes are affected by the override flag: OIV.Inventor.Nodes.SoBaseColor, OIV.Inventor.Nodes.SoColorIndex, OIV.Inventor.Nodes.SoComplexity, OIV.Inventor.Nodes.SoDepthBuffer, OIV.Inventor.Nodes.SoDrawStyle, OIV.Inventor.Nodes.SoEnvironment, OIV.Inventor.Nodes.SoFont, OIV.Inventor.Nodes.SoFullSceneAntialiasing, OIV.Inventor.Nodes.SoLightModel, OIV.Inventor.Nodes.SoMaterial, OIV.Inventor.Nodes.SoPhysicalMaterial, OIV.Inventor.Nodes.SoMaterialBinding, OIV.Inventor.Nodes.SoPackedColor, OIV.Inventor.Nodes.SoPattern, OIV.Inventor.Nodes.SoPickStyle, OIV.Inventor.Nodes.SoPolygonOffset, OIV.Inventor.Nodes.SoShapeHints, OIV.Inventor.Nodes.SoVertexProperty, OIV.Inventor.Nodes.SoTextProperty. Every node has an override flag associated with it. The override flag is a powerful mechanism typically used (sparingly) near the top of a scene graph. When this flag is set, any nodes of the same type encountered later in the graph are ignored even if they also have their own override flag set. For example, you might insert a line-style OIV.Inventor.Nodes.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 OIV.Inventor.Nodes.SoNode.SetOverride(System.Boolean) method to set and reset the override flag. The OIV.Inventor.Nodes.SoNode.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.