Converts an Open Inventor scene graph into a VRML 1.0-style scene graph. More...
#include <Inventor/actions/SoToVRMLAction.h>
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) |
SoNode * | getVRMLSceneGraph () 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 () |
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.SoToVRMLAction::SoToVRMLAction | ( | ) |
Constructor.
SoToVRMLAction::~SoToVRMLAction | ( | ) |
Destructor.
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.