#include <SoSceneWriter.h>
Classes | |
| struct | COLORED_POINT |
| struct holds point information when VRML_2 output is applied on SGI Inventor scenes More... | |
Public Types | |
| enum | Format { INVENTOR_ASCII = 0, INVENTOR_BINARY, STL_ASCII, STL_BINARY, VRML_97 } |
| Save formats. More... | |
| enum | SoPrimitive { LINE = 2, TRIANGLE = 3 } |
Public Member Functions | |
| SoSceneWriter () | |
| void | saveChanged () |
| save the scene | |
| virtual void | inputChanged (SoField *) |
| Engine dummy implementation. | |
| virtual void | evaluate () |
| Engine dummy implementation. | |
Static Public Member Functions | |
| static void | initClass () |
| initializes this class | |
| static void | saveChangedCB (void *data, SoSensor *a) |
| forward sensor CB to saveChanged() | |
Public Attributes | |
| SoSFNode | sceneGraph |
| input scene graph | |
| SoSFTrigger | save |
| save the scene | |
| SoSFString | filename |
| absolute filename of the output file | |
| SoSFEnum | format |
| format that should be written | |
| SoSFBool | bColorPerVertex |
| Format Options for self-coded VRML 2.0. | |
| SoSFBool | bUseGlobalColor |
| save only one color per object | |
| SoSFBool | bNormalPerVertex |
| save normal per vertex (or only one per facet) | |
| SoSFBool | bSaveNormals |
| save or suppress saving of normals | |
Protected Member Functions | |
| virtual | ~SoSceneWriter () |
| void | formatFileExtension () |
set filename field's extension according to format | |
| void | writeSimpleVRML2 () |
| write simple VRML 2 format (oko) | |
| static void | getTriIn (void *pData, SoCallbackAction *pAct, const SoPrimitiveVertex *pV1, const SoPrimitiveVertex *pV2, const SoPrimitiveVertex *pV3) |
| callback function for extracting triangulation from the scene | |
| void | writeVecToStlFile (SoMFVec3f *pMVec3f) |
| create .stl-file and write formated triangle data from List pMVec3f | |
| SbVec3f const | getNormal (const SbVec3f *pVec, const int nIdx) |
| compute the normal of the given triangle | |
The STL file format was implemented by Stephan Zidowitz. The Inventor formats use the Open Inventor SoWriteSction to write the scene. The VRML formats are only supported when compiled with TGS Open Inventor
Definition at line 66 of file SoSceneWriter.h.
| SoSceneWriter::SoSceneWriter | ( | ) |
| virtual SoSceneWriter::~SoSceneWriter | ( | ) | [protected, virtual] |
| virtual void SoSceneWriter::evaluate | ( | ) | [inline, virtual] |
| void SoSceneWriter::formatFileExtension | ( | ) | [protected] |
set filename field's extension according to format
| SbVec3f const SoSceneWriter::getNormal | ( | const SbVec3f * | pVec, | |
| const int | nIdx | |||
| ) | [protected] |
compute the normal of the given triangle
| static void SoSceneWriter::getTriIn | ( | void * | pData, | |
| SoCallbackAction * | pAct, | |||
| const SoPrimitiveVertex * | pV1, | |||
| const SoPrimitiveVertex * | pV2, | |||
| const SoPrimitiveVertex * | pV3 | |||
| ) | [static] |
callback function for extracting triangulation from the scene
| static void SoSceneWriter::initClass | ( | ) | [static] |
initializes this class
| virtual void SoSceneWriter::inputChanged | ( | SoField * | ) | [inline, virtual] |
| void SoSceneWriter::saveChanged | ( | ) |
save the scene
| static void SoSceneWriter::saveChangedCB | ( | void * | data, | |
| SoSensor * | a | |||
| ) | [static] |
forward sensor CB to saveChanged()
| void SoSceneWriter::writeSimpleVRML2 | ( | ) | [protected] |
write simple VRML 2 format (oko)
| void SoSceneWriter::writeVecToStlFile | ( | SoMFVec3f * | pMVec3f | ) | [protected] |
create .stl-file and write formated triangle data from List pMVec3f
| SoSFBool SoSceneWriter::bColorPerVertex |
Format Options for self-coded VRML 2.0.
save color per vertex (or only one per facet)
Definition at line 124 of file SoSceneWriter.h.
| SoSFBool SoSceneWriter::bNormalPerVertex |
| SoSFBool SoSceneWriter::bSaveNormals |
| SoSFBool SoSceneWriter::bUseGlobalColor |
| SoSFString SoSceneWriter::filename |
| SoSFEnum SoSceneWriter::format |
| SoSFTrigger SoSceneWriter::save |
| SoSFNode SoSceneWriter::sceneGraph |
1.5.8