Click or drag to resize
SoToVRML2Action Class

Note: This API is now obsolete.

Converts an Open Inventor scene graph into a VRML 2.0-style scene graph.

Inheritance Hierarchy

Namespace: OIV.Inventor.Actions
Assembly: OIV.Inventor (in OIV.Inventor.dll) Version: 9.9.13.0 (9.9.13.0)
Syntax
[ObsoleteAttribute("See documentation for more details")]
[EditorBrowsableAttribute(EditorBrowsableState.Never)]
public class SoToVRML2Action : SoToVRMLAction

The SoToVRML2Action type exposes the following members.

Constructors
  NameDescription
Public methodSoToVRML2Action

Constructor.

Top
Methods
  NameDescription
Public methodApply(SoNode)

Apply action to the specified root node.

(Overrides SoToVRMLActionApply(SoNode).)
Public methodApply(SoPath)

Apply action to the specified path.

(Overrides SoToVRMLActionApply(SoPath).)
Public methodApply(SoPathList)
Calls Apply(path_list, false).
Public methodApply(SoPathList, Boolean)

Apply action to the specified list of path.

(Overrides SoToVRMLActionApply(SoPathList, Boolean).)
Public methodAreSoFileExpanded

Gets whether to read the contents of SoFile nodes into the new scene graph.

(Inherited from SoToVRMLAction.)
Public methodAreTexCoordWritten

Gets whether to put texture coordinates into the new scene graph.

(Inherited from SoToVRMLAction.)
Public methodAreTexture2NodeExpanded

Gets whether to bring the contents of texture files into the new scene graph , or to leave them as references to files.

(Inherited from SoToVRMLAction.)
Public methodAreTextureNodeExpanded
Public methodAreUnknownNodeKept

Gets whether to preserve nodes of unknown type.

(Inherited from SoToVRMLAction.)
Public methodClearApplyResult

When applied, an action may reference nodes or create objects (e.g.

(Inherited from SoAction.)
Public methodConditionalConversion

Sets whether inline nodes are conditionally converted to VRML.

(Inherited from SoToVRMLAction.)
Public methodConvertInlineNodes

Sets whether inline nodes are converted to VRML.

(Inherited from SoToVRMLAction.)
Public methodDoConditionalConversion

Gets whether inline nodes are conditionally converted to VRML.

(Inherited from SoToVRMLAction.)
Public methodDoConvertInlineNodes

Gets whether inline nodes are converted to VRML.

(Inherited from SoToVRMLAction.)
Public methodDoReuseAppearanceNodes

Returns whether shared materials should be organized into shared appearance nodes in the new scene graph.

Public methodDoReuseGeometryNodes

Returns whether shared geometry nodes should be shared in the new scene graph.

Public methodDoReusePropertyNodes

Returns whether shared properties should be organized into shared nodes in the new scene graph.

Public methodStatic memberEnableElement
Public methodEnableElements

(Overrides SoToVRMLActionEnableElements.)
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodExpandSoFile

Sets whether to read the contents of SoFile nodes into the new scene graph.

(Inherited from SoToVRMLAction.)
Public methodExpandTexture2Node
Public methodForwardTraversal

Traverse a node that is not part of the current scenegraph.

(Inherited from SoAction.)
Public methodGetContinueActionInBranchFlag

This function indicates if the action must stop in the current branch.

(Inherited from SoAction.)
Public methodGetCurPath
(Inherited from SoAction.)
Public methodGetHashCode
Overrides GetHashCode().
(Inherited from SoNetBase.)
Public methodGetNodeAppliedTo
(Inherited from SoAction.)
Public methodGetOriginalPathListAppliedTo
(Inherited from SoAction.)
Public methodGetPathAppliedTo
(Inherited from SoAction.)
Public methodGetPathCode(SbNativeArrayInt32)

Returns path code based on where current node (the node at the end of the current path) lies with respect to the path(s) the action is being applied to.

(Inherited from SoAction.)
Public methodGetPathCode(SbNativeInt32Array) Obsolete.

Returns path code based on where current node (the node at the end of the current path) lies with respect to the path(s) the action is being applied to.

(Inherited from SoAction.)
Public methodGetPathListAppliedTo
(Inherited from SoAction.)
Public methodGetPipeId

Gets pipe identifier in the range [1..N] associated to this render action while running a ScaleViz Multipipe configuration.

(Inherited from SoAction.)
Public methodGetSceneManager

Return the SoSceneManager associated with this action.

(Inherited from SoAction.)
Public methodGetState
(Inherited from SoAction.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGetUrlName

Gets the directory in which to write VRMLInline files.

(Inherited from SoToVRMLAction.)
Public methodGetVRML2SceneGraph

Returns result as VRML 2.0 scene graph.

Public methodGetVRMLSceneGraph

Returns result as VRML style scene graph.

(Inherited from SoToVRMLAction.)
Public methodGetWhatAppliedTo
(Inherited from SoAction.)
Public methodHasTerminated
(Inherited from SoAction.)
Public methodInvalidateState

Invalidates the current traversal state in the action, forcing it to be recreated when the action is next applied.

(Inherited from SoAction.)
Public methodIsBeingApplied

Returns true if this action is currently being applied.

(Inherited from SoAction.)
Public methodIsLastPathListAppliedTo
(Inherited from SoAction.)
Public methodIsUsingAlternateRep

Returns true if current action is using alternate representations.

(Inherited from SoAction.)
Public methodKeepUnknownNodes

Sets whether to preserve nodes of unknown type.

(Inherited from SoToVRMLAction.)
Public methodPostDelayedTraversal

Method called by SoMultiPassManager after delayed pass traversals.

(Inherited from SoAction.)
Public methodPreDelayedTraversal

Method called by SoMultiPassManager before delayed pass traversals.

(Inherited from SoAction.)
Public methodResetContinueActionInBranchFlag

This function resets the continue action flag.

(Inherited from SoAction.)
Public methodReuseAppearanceNodes

Sets whether shared materials should be organized into shared appearance nodes in the new scene graph.

Public methodReuseGeometryNodes

Sets whether shared geometry nodes should be shared in the new scene graph.

Public methodReusePropertyNodes

Sets whether shared properties should be organized into shared nodes in the new scene graph.

Public methodSetPipeId

Sets pipe identifier in the range [1..N] associated to this render action while running a ScaleViz Multipipe configuration.

(Inherited from SoAction.)
Public methodSetSceneManager

Set the scene manager associated with this action (if any ).

(Inherited from SoAction.)
Public methodSetUpState
(Inherited from SoAction.)
Public methodSetUrlName

Sets the directory in which to write VRMLInline files.

(Inherited from SoToVRMLAction.)
Public methodStopActionInBranch

This function stops the action in the current Scene Graph branch.

(Inherited from SoAction.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodTraverse
(Inherited from SoAction.)
Public methodUseAlternateRep

Tell the action to use alternate representations during traversal when available.

(Inherited from SoAction.)
Public methodWriteTexCoords

Sets whether to put texture coordinates into the new scene graph.

(Inherited from SoToVRMLAction.)
Top
Remarks

This action takes an Open Inventor scene graph and builds a new VRML 2.0-style scene graph. This scene graph can then be stored as a VRML file. The effect of this action is similar to the effect of the ivtovrml tool.

<font color="#0000FF">NOTE:</font> This class does not exist in Open Inventor 10.0 and later.

During the conversion process, a temporary intermediate copy of the scene graph may be created. If your input scene graph is large, the three copies of the scene graph (initial, intermediate, and final) may use a lot of memory.

There is not always an exact match between Open Inventor items and VRML 2.0 items. Some Open Inventor items, for example, 2D text (SoText2) do not exist in VRML 2.0 and will not be converted. Other items may be converted, but with subtle differences in behavior.

Texture Modeling : 3- and 4-component textures work differently in Open Inventor and VRML 2.0. In Open Inventor, by default, the texture color is multiplied by the material surface color ("modulate" mode). In VRML 2.0, a texture's RGB colors and transparency replace the material's current diffuse color and transparency (like "decal" mode). For example, if an object is red with a colored texture, in Open Inventor, the red would affect the appearance of the object. Once converted to VRML 2.0, the object would display the colors of the texture, without any influence of the red.

Texture Coordinates : Open Inventor and VRML 2.0 handle texture coordinates differently. If your scene graph uses texture coordinates for precise application of a texture to a shape, the visual results may be different after conversion to VRML 2.0.

See Also