SoToVRMLAction Class Reference
[Actions]

VSG extension Converts an Open Inventor scene graph into a VRML 1.0-style scene graph. More...

#include <Inventor/actions/SoToVRMLAction.h>

Inheritance diagram for SoToVRMLAction:
SoAction SoTypedObject SoToVRML2Action PoToVRML2Action

List of all members.

Public Member Functions

virtual SoType getTypeId () const
 SoToVRMLAction ()
 ~SoToVRMLAction ()
virtual void apply (SoNode *node)
virtual void apply (SoPath *path)
virtual void apply (const SoPathList &path_list, SbBool obeys_rules=FALSE)
SoNodegetVRMLSceneGraph () const
void expandSoFile (SbBool e)
SbBool areSoFileExpanded () const
void setUrlName (const SbString name)
SbString getUrlName () const
void writeTexCoords (SbBool w)
SbBool areTexCoordWritten () const
void expandTexture2Node (SbBool e)
SbBool areTexture2NodeExpanded () const
void keepUnknownNodes (SbBool k)
SbBool areUnknownNodeKept () const
void convertInlineNodes (SbBool inlineNode)
SbBool doConvertInlineNodes () const
void conditionalConversion (SbBool conditional)
SbBool doConditionalConversion () const

Static Public Member Functions

static SoType getClassTypeId ()

Detailed Description

VSG extension Converts an Open Inventor scene graph into a VRML 1.0-style scene graph.

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

NOTE: 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.

NOTE: This class does not exist in Open Inventor 10.0 and later.

SEE ALSO

SoAction, SoToVRML2Action

Deprecated:

Deprecated since Open Inventor 9500
The VRML API is no longer supported. See section http://oivdoc95.vsg3d.com/content/compatibility-notes-4#Deprecation of the Reference Manual.
See related examples:

ToolsIvToVRML


Constructor & Destructor Documentation

SoToVRMLAction::SoToVRMLAction (  ) 

Constructor.

SoToVRMLAction::~SoToVRMLAction (  ) 

Destructor.


Member Function Documentation

virtual void SoToVRMLAction::apply ( const SoPathList path_list,
SbBool  obeys_rules = FALSE 
) [virtual]

Apply action to the specified list of path.

Reimplemented from SoAction.

Reimplemented in SoToVRML2Action, and PoToVRML2Action.

virtual void SoToVRMLAction::apply ( SoPath path  )  [virtual]

Apply action to the specified path.

Reimplemented from SoAction.

Reimplemented in SoToVRML2Action, and PoToVRML2Action.

virtual void SoToVRMLAction::apply ( SoNode node  )  [virtual]

Apply action to the specified root node.

Reimplemented from SoAction.

Reimplemented in SoToVRML2Action, and PoToVRML2Action.

SbBool SoToVRMLAction::areSoFileExpanded (  )  const [inline]

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

SbBool SoToVRMLAction::areTexCoordWritten (  )  const [inline]

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

SbBool SoToVRMLAction::areTexture2NodeExpanded (  )  const [inline]

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

SbBool SoToVRMLAction::areUnknownNodeKept (  )  const [inline]

Gets whether to preserve nodes of unknown type.

void SoToVRMLAction::conditionalConversion ( SbBool  conditional  )  [inline]

Sets whether inline nodes are conditionally converted to VRML.

If TRUE, the header of the Inline node is checked, and if already VRML, no conversion is done. Default = FALSE.

void SoToVRMLAction::convertInlineNodes ( SbBool  inlineNode  )  [inline]

Sets whether inline nodes are converted to VRML.

If TRUE, Inline nodes are converted. Default = TRUE.

SbBool SoToVRMLAction::doConditionalConversion (  )  const [inline]

Gets whether inline nodes are conditionally converted to VRML.

SbBool SoToVRMLAction::doConvertInlineNodes (  )  const [inline]

Gets whether inline nodes are converted to VRML.

void SoToVRMLAction::expandSoFile ( SbBool  e  )  [inline]

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

void SoToVRMLAction::expandTexture2Node ( SbBool  e  )  [inline]

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

Reimplemented in SoToVRML2Action.

static SoType SoToVRMLAction::getClassTypeId (  )  [static]

Returns the type identifier for this class.

Reimplemented from SoAction.

Reimplemented in SoToVRML2Action, and PoToVRML2Action.

virtual SoType SoToVRMLAction::getTypeId (  )  const [virtual]

Returns the type identifier for this specific instance.

Implements SoTypedObject.

Reimplemented in SoToVRML2Action, and PoToVRML2Action.

SbString SoToVRMLAction::getUrlName (  )  const [inline]

Gets the directory in which to write VRMLInline files.

SoNode* SoToVRMLAction::getVRMLSceneGraph (  )  const [inline]

Returns result as VRML style scene graph.

NOTE: The returned node has a reference count of 1, not 0.

void SoToVRMLAction::keepUnknownNodes ( SbBool  k  )  [inline]

Sets whether to preserve nodes of unknown type.

void SoToVRMLAction::setUrlName ( const SbString  name  )  [inline]

Sets the directory in which to write VRMLInline files.

void SoToVRMLAction::writeTexCoords ( SbBool  w  )  [inline]

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


The documentation for this class was generated from the following file:

Open Inventor Toolkit reference manual, generated on 12 Feb 2024
Copyright © Thermo Fisher Scientific All rights reserved.
http://www.openinventor.com/