Coin Logo http://www.sim.no/
http://www.coin3d.org/

SoToVRMLAction.h

00001 #ifndef COIN_SOTOVRMLACTION_H
00002 #define COIN_SOTOVRMLACTION_H
00003 
00004 /**************************************************************************\
00005  *
00006  *  This file is part of the Coin 3D visualization library.
00007  *  Copyright (C) by Kongsberg Oil & Gas Technologies.
00008  *
00009  *  This library is free software; you can redistribute it and/or
00010  *  modify it under the terms of the GNU General Public License
00011  *  ("GPL") version 2 as published by the Free Software Foundation.
00012  *  See the file LICENSE.GPL at the root directory of this source
00013  *  distribution for additional information about the GNU GPL.
00014  *
00015  *  For using Coin with software that can not be combined with the GNU
00016  *  GPL, and for taking advantage of the additional benefits of our
00017  *  support services, please contact Kongsberg Oil & Gas Technologies
00018  *  about acquiring a Coin Professional Edition License.
00019  *
00020  *  See http://www.coin3d.org/ for more information.
00021  *
00022  *  Kongsberg Oil & Gas Technologies, Bygdoy Alle 5, 0257 Oslo, NORWAY.
00023  *  http://www.sim.no/  sales@sim.no  coin-support@coin3d.org
00024  *
00025 \**************************************************************************/
00026 
00027 #include <Inventor/actions/SoAction.h>
00028 #include <Inventor/actions/SoSubAction.h>
00029 
00030 class SoToVRMLActionP;
00031 
00032 class COIN_DLL_API SoToVRMLAction : public SoAction {
00033   typedef SoAction inherited;
00034 
00035   SO_ACTION_HEADER(SoToVRMLAction);
00036 
00037 public:
00038   static void initClass(void);
00039 
00040   SoToVRMLAction(void);
00041   virtual ~SoToVRMLAction(void);
00042 
00043   virtual void apply(SoNode * node);
00044   virtual void apply(SoPath * path);
00045   virtual void apply(const SoPathList & pathlist, SbBool obeysrules = FALSE);
00046   
00047   SoNode * getVRMLSceneGraph(void) const;
00048   
00049   void expandSoFile(SbBool flag);
00050   SbBool areSoFileExpanded(void) const;
00051   
00052   void setUrlName(const SbString name);
00053   SbString getUrlName(void) const;
00054   
00055   void writeTexCoords(SbBool flag);
00056   SbBool areTexCoordWritten(void) const;
00057   
00058   void expandTexture2Node(SbBool flag);
00059   SbBool areTexture2NodeExpanded(void) const;
00060   
00061   void keepUnknownNodes(SbBool flag);
00062   SbBool areUnknownNodeKept(void) const;
00063   
00064   void convertInlineNodes(SbBool flag);
00065   SbBool doConvertInlineNodes(void) const;
00066   
00067   void conditionalConversion(SbBool flag);
00068   SbBool doConditionalConversion(void) const;
00069   
00070   void setVerbosity(SbBool flag);
00071   SbBool isVerbose(void) const;
00072 
00073 protected:
00074   virtual void beginTraversal(SoNode * node);
00075 
00076 private:
00077   SbPimplPtr<SoToVRMLActionP> pimpl;
00078   friend class SoToVRMLActionP;
00079 
00080   // NOT IMPLEMENTED:
00081   SoToVRMLAction(const SoToVRMLAction & rhs);
00082   SoToVRMLAction & operator = (const SoToVRMLAction & rhs);
00083 }; // SoToVRMLAction
00084 
00085 #endif // !COIN_SOTOVRMLACTION_H

Copyright © 1998-2010 by Kongsberg Oil & Gas Technologies. All rights reserved.

Generated for Coin by Doxygen 1.7.3.