Open Inventor Release 2024.2.0
 
Loading...
Searching...
No Matches
SoSTLWriteAction.h
1/*=======================================================================
2 *** THE CONTENT OF THIS WORK IS PROPRIETARY TO FEI S.A.S, (FEI S.A.S.), ***
3 *** AND IS DISTRIBUTED UNDER A LICENSE AGREEMENT. ***
4 *** ***
5 *** REPRODUCTION, DISCLOSURE, OR USE, IN WHOLE OR IN PART, OTHER THAN AS ***
6 *** SPECIFIED IN THE LICENSE ARE NOT TO BE UNDERTAKEN EXCEPT WITH PRIOR ***
7 *** WRITTEN AUTHORIZATION OF FEI S.A.S. ***
8 *** ***
9 *** RESTRICTED RIGHTS LEGEND ***
10 *** USE, DUPLICATION, OR DISCLOSURE BY THE GOVERNMENT OF THE CONTENT OF THIS ***
11 *** WORK OR RELATED DOCUMENTATION IS SUBJECT TO RESTRICTIONS AS SET FORTH IN ***
12 *** SUBPARAGRAPH (C)(1) OF THE COMMERCIAL COMPUTER SOFTWARE RESTRICTED RIGHT ***
13 *** CLAUSE AT FAR 52.227-19 OR SUBPARAGRAPH (C)(1)(II) OF THE RIGHTS IN ***
14 *** TECHNICAL DATA AND COMPUTER SOFTWARE CLAUSE AT DFARS 52.227-7013. ***
15 *** ***
16 *** COPYRIGHT (C) 1996-2017 BY FEI S.A.S, ***
17 *** BORDEAUX, FRANCE ***
18 *** ALL RIGHTS RESERVED ***
19**=======================================================================*/
20/*=======================================================================
21** Author : David Beilloin (Sep 2014)
22**=======================================================================*/
23
24
25#ifndef _SO_TO_STL_ACTION_H_
26#define _SO_TO_STL_ACTION_H_
27
28#include <Inventor/io/STL/SoSTLFileFormat.h>
29
30#include <Inventor/actions/SoCallbackAction.h>
31
32class SoSTLWriteActionImpl;
33
59{
60 SO_ACTION_HEADER(SoSTLWriteAction);
61public:
64
67
72 void setOutputFileName( const SbString& filename );
73
77 void setBinaryOutput(bool flag);
78
82 bool isBinaryOutput() const;
83
85 virtual void apply(SoNode *node);
86 virtual void apply(SoPath *path);
87 virtual void apply(const SoPathList &pathList, SbBool obeysRules = FALSE);
88
89private:
91 static void initClass();
92 static void exitClass();
93
94private:
96 virtual void beginTraversal(SoNode *);
97
99 virtual void endTraversal(SoNode *);
100
101 // don't need extra work of compactPath
102 virtual SbBool shouldCompactPathLists() const
103 { return FALSE; }
104
105private:
106 // implementation class
107 SoSTLWriteActionImpl* m_impl;
108};
109
110#endif //_SO_TO_STL_ACTION_H_
Class for smart character strings.
Definition SbString.h:202
Performs a generic traversal of a scene graph or path.
Abstract base class for all database nodes.
Definition SoNode.h:145
Path that points to a list of hierarchical nodes.
Definition SoPath.h:187
Maintains a list of pointers to paths.
Definition SoPathList.h:81
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Class for export...
virtual void apply(SoNode *node)
Initiates an action on the graph defined by a node.
bool isBinaryOutput() const
Returns current state of binary flag.
void setBinaryOutput(bool flag)
Sets whether output should be ASCII (default) or binary.
~SoSTLWriteAction()
Destructor.
SoSTLWriteAction()
Constructor.
void setOutputFileName(const SbString &filename)
Set the output filename to write to.
virtual void apply(SoPath *path)
Initiates an action on the graph defined by a path.
virtual void apply(const SoPathList &pathList, SbBool obeysRules=FALSE)
Initiates an action on the graph defined by a list of paths.
int SbBool
Boolean type.
Definition SbBase.h:87