00001 #ifndef COIN_SOWRITEACTION_H
00002 #define COIN_SOWRITEACTION_H
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027 #include <Inventor/actions/SoAction.h>
00028 #include <Inventor/actions/SoSubAction.h>
00029
00030
00031 class COIN_DLL_API SoWriteAction : public SoAction {
00032 typedef SoAction inherited;
00033
00034 SO_ACTION_HEADER(SoWriteAction);
00035
00036 public:
00037 SoWriteAction(void);
00038 SoWriteAction(SoOutput * out);
00039 virtual ~SoWriteAction();
00040
00041 static void initClass(void);
00042
00043 SoOutput * getOutput(void) const;
00044
00045 void continueToApply(SoNode * node);
00046 void continueToApply(SoPath * path);
00047
00048 protected:
00049 virtual void beginTraversal(SoNode * node);
00050 virtual SbBool shouldCompactPathLists(void) const;
00051
00052 private:
00053 void commonConstructor(SoOutput * out);
00054
00055 SoOutput * outobj;
00056 SbBool localoutputalloc;
00057 SbBool continuing;
00058 };
00059
00060 #endif // !COIN_SOWRITEACTION_H