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

SoVRMLLOD.h

00001 /**************************************************************************\
00002  *
00003  *  This file is part of the Coin 3D visualization library.
00004  *  Copyright (C) 1998-2007 by Systems in Motion.  All rights reserved.
00005  *
00006  *  This library is free software; you can redistribute it and/or
00007  *  modify it under the terms of the GNU General Public License
00008  *  ("GPL") version 2 as published by the Free Software Foundation.
00009  *  See the file LICENSE.GPL at the root directory of this source
00010  *  distribution for additional information about the GNU GPL.
00011  *
00012  *  For using Coin with software that can not be combined with the GNU
00013  *  GPL, and for taking advantage of the additional benefits of our
00014  *  support services, please contact Systems in Motion about acquiring
00015  *  a Coin Professional Edition License.
00016  *
00017  *  See http://www.coin3d.org/ for more information.
00018  *
00019  *  Systems in Motion, Postboks 1283, Pirsenteret, 7462 Trondheim, NORWAY.
00020  *  http://www.sim.no/  sales@sim.no  coin-support@coin3d.org
00021  *
00022 \**************************************************************************/
00023 
00024 #ifndef COIN_SOVRMLLOD_H
00025 #define COIN_SOVRMLLOD_H
00026 
00027 #include <Inventor/nodes/SoSubNode.h>
00028 #include <Inventor/nodes/SoGroup.h>
00029 #include <Inventor/fields/SoMFFloat.h>
00030 #include <Inventor/fields/SoSFVec3f.h>
00031 #include <Inventor/fields/SoMFNode.h>
00032 
00033 class SoVRMLLODP;
00034 
00035 class COIN_DLL_API SoVRMLLOD : public SoGroup
00036 {
00037   typedef SoGroup inherited;
00038   SO_NODE_HEADER(SoVRMLLOD);
00039 
00040 public:
00041   static void initClass(void);
00042   SoVRMLLOD(void);
00043   SoVRMLLOD(int levels);
00044 
00045   SoMFFloat range;
00046   SoSFVec3f center;
00047   SoMFNode level;
00048 
00049   virtual SbBool affectsState(void) const;
00050 
00051   void addLevel(SoNode * level);
00052   void insertLevel(SoNode * level, int idx);
00053   SoNode * getLevel(int idx) const;
00054   int findLevel(const SoNode * level) const;
00055   int getNumLevels(void) const;
00056   void removeLevel(int idx);
00057   void removeLevel(SoNode * level);
00058   void removeAllLevels(void);
00059   void replaceLevel(int idx, SoNode * level);
00060   void replaceLevel(SoNode * old, SoNode * level);
00061 
00062   virtual void doAction(SoAction * action);
00063   virtual void callback(SoCallbackAction * action);
00064   virtual void GLRender(SoGLRenderAction * action);
00065   virtual void rayPick(SoRayPickAction * action);
00066   virtual void getBoundingBox(SoGetBoundingBoxAction * action);
00067   virtual void search(SoSearchAction * action);
00068   virtual void write(SoWriteAction * action);
00069   virtual void getPrimitiveCount(SoGetPrimitiveCountAction * action);
00070   virtual void audioRender(SoAudioRenderAction * action);
00071 
00072   virtual void GLRenderBelowPath(SoGLRenderAction * action);
00073   virtual void GLRenderInPath(SoGLRenderAction * action);
00074   virtual void GLRenderOffPath(SoGLRenderAction * action);
00075 
00076   void addChild(SoNode * child);
00077   void insertChild(SoNode * child, int idx);
00078   SoNode * getChild(int idx) const;
00079   int findChild(const SoNode * child) const;
00080   int getNumChildren(void) const;
00081   void removeChild(int idx);
00082   void removeChild(SoNode * child);
00083   void removeAllChildren(void);
00084   void replaceChild(int idx, SoNode * child);
00085   void replaceChild(SoNode * old, SoNode * child);
00086   virtual SoChildList * getChildren(void) const;
00087 
00088 protected:
00089   virtual ~SoVRMLLOD();
00090 
00091   virtual void notify(SoNotList * list);
00092   virtual SbBool readInstance(SoInput * in, unsigned short flags);
00093   virtual void copyContents(const SoFieldContainer * from, SbBool copyConn);
00094 
00095   virtual int whichToTraverse(SoAction * action);
00096 
00097 private:
00098   void commonConstructor(void);
00099   SoVRMLLODP * pimpl;
00100   friend class SoVRMLLODP;
00101 }; // class SoVRMLLOD
00102 
00103 #endif // ! COIN_SOVRMLLOD_H

Copyright © 1998-2007 by Systems in Motion AS. All rights reserved.

Generated on Mon Feb 28 2011 10:11:59 for Coin by Doxygen. 1.7.3