SoToVRML2Action Class |
Note: This API is now obsolete.
Converts an Open Inventor scene graph into a VRML 2.0-style scene graph.
Namespace: OIV.Inventor.Actions
The SoToVRML2Action type exposes the following members.
Name | Description | |
---|---|---|
![]() | SoToVRML2Action | Constructor. |
Name | Description | |
---|---|---|
![]() | Apply(SoNode) | Apply action to the specified root node. |
![]() | Apply(SoPath) | Apply action to the specified path. |
![]() | Apply(SoPathList) | Calls Apply(path_list, false). |
![]() | Apply(SoPathList, Boolean) | Apply action to the specified list of path. |
![]() | AreSoFileExpanded | Gets whether to read the contents of SoFile nodes into the new scene graph. |
![]() | AreTexCoordWritten | Gets whether to put texture coordinates into the new scene graph. |
![]() | AreTexture2NodeExpanded | Gets whether to bring the contents of texture files into the new scene graph , or to leave them as references to files. |
![]() | AreTextureNodeExpanded | |
![]() | AreUnknownNodeKept | Gets whether to preserve nodes of unknown type. |
![]() | ClearApplyResult | When applied, an action may reference nodes or create objects (e.g. |
![]() | ConditionalConversion | Sets whether inline nodes are conditionally converted to VRML. |
![]() | ConvertInlineNodes | Sets whether inline nodes are converted to VRML. |
![]() | DoConditionalConversion | Gets whether inline nodes are conditionally converted to VRML. |
![]() | DoConvertInlineNodes | Gets whether inline nodes are converted to VRML. |
![]() | DoReuseAppearanceNodes | Returns whether shared materials should be organized into shared appearance nodes in the new scene graph. |
![]() | DoReuseGeometryNodes | Returns whether shared geometry nodes should be shared in the new scene graph. |
![]() | DoReusePropertyNodes | Returns whether shared properties should be organized into shared nodes in the new scene graph. |
![]() ![]() | EnableElement | |
![]() | EnableElements | (Overrides SoToVRMLActionEnableElements.) |
![]() | Equals | (Inherited from Object.) |
![]() | ExpandSoFile | Sets whether to read the contents of SoFile nodes into the new scene graph. |
![]() | ExpandTexture2Node | |
![]() | ForwardTraversal | Traverse a node that is not part of the current scenegraph. |
![]() | GetContinueActionInBranchFlag | This function indicates if the action must stop in the current branch. |
![]() | GetCurPath | (Inherited from SoAction.) |
![]() | GetHashCode |
Overrides GetHashCode().
(Inherited from SoNetBase.) |
![]() | GetNodeAppliedTo | (Inherited from SoAction.) |
![]() | GetOriginalPathListAppliedTo | (Inherited from SoAction.) |
![]() | GetPathAppliedTo | (Inherited from SoAction.) |
![]() | GetPathCode(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. |
![]() | GetPathCode(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. |
![]() | GetPathListAppliedTo | (Inherited from SoAction.) |
![]() | GetPipeId | Gets pipe identifier in the range [1..N] associated to this render action while running a ScaleViz Multipipe configuration. |
![]() | GetSceneManager | Return the SoSceneManager associated with this action. |
![]() | GetState | (Inherited from SoAction.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | GetUrlName | Gets the directory in which to write VRMLInline files. |
![]() | GetVRML2SceneGraph | Returns result as VRML 2.0 scene graph. |
![]() | GetVRMLSceneGraph | Returns result as VRML style scene graph. |
![]() | GetWhatAppliedTo | (Inherited from SoAction.) |
![]() | HasTerminated | (Inherited from SoAction.) |
![]() | InvalidateState | Invalidates the current traversal state in the action, forcing it to be recreated when the action is next applied. |
![]() | IsBeingApplied | Returns true if this action is currently being applied. |
![]() | IsLastPathListAppliedTo | (Inherited from SoAction.) |
![]() | IsUsingAlternateRep | Returns true if current action is using alternate representations. |
![]() | KeepUnknownNodes | Sets whether to preserve nodes of unknown type. |
![]() | PostDelayedTraversal | Method called by SoMultiPassManager after delayed pass traversals. |
![]() | PreDelayedTraversal | Method called by SoMultiPassManager before delayed pass traversals. |
![]() | ResetContinueActionInBranchFlag | This function resets the continue action flag. |
![]() | ReuseAppearanceNodes | Sets whether shared materials should be organized into shared appearance nodes in the new scene graph. |
![]() | ReuseGeometryNodes | Sets whether shared geometry nodes should be shared in the new scene graph. |
![]() | ReusePropertyNodes | Sets whether shared properties should be organized into shared nodes in the new scene graph. |
![]() | SetPipeId | Sets pipe identifier in the range [1..N] associated to this render action while running a ScaleViz Multipipe configuration. |
![]() | SetSceneManager | Set the scene manager associated with this action (if any ). |
![]() | SetUpState | (Inherited from SoAction.) |
![]() | SetUrlName | Sets the directory in which to write VRMLInline files. |
![]() | StopActionInBranch | This function stops the action in the current Scene Graph branch. |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
![]() | Traverse | (Inherited from SoAction.) |
![]() | UseAlternateRep | Tell the action to use alternate representations during traversal when available. |
![]() | WriteTexCoords | Sets whether to put texture coordinates into the new scene graph. |
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.