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

SoTabBoxDragger.h
00001 #ifndef COIN_SOTABBOXDRAGGER_H
00002 #define COIN_SOTABBOXDRAGGER_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/draggers/SoDragger.h>
00028 #include <Inventor/tools/SbLazyPimplPtr.h>
00029 #include <Inventor/fields/SoSFVec3f.h>
00030 
00031 class SoSensor;
00032 class SoFieldSensor;
00033 class SoTabBoxDraggerP;
00034 
00035 class COIN_DLL_API SoTabBoxDragger : public SoDragger {
00036   typedef SoDragger inherited;
00037 
00038   SO_KIT_HEADER(SoTabBoxDragger);
00039   SO_KIT_CATALOG_ENTRY_HEADER(boxGeom);
00040   SO_KIT_CATALOG_ENTRY_HEADER(surroundScale);
00041   SO_KIT_CATALOG_ENTRY_HEADER(tabPlane1);
00042   SO_KIT_CATALOG_ENTRY_HEADER(tabPlane1Sep);
00043   SO_KIT_CATALOG_ENTRY_HEADER(tabPlane1Xf);
00044   SO_KIT_CATALOG_ENTRY_HEADER(tabPlane2);
00045   SO_KIT_CATALOG_ENTRY_HEADER(tabPlane2Sep);
00046   SO_KIT_CATALOG_ENTRY_HEADER(tabPlane2Xf);
00047   SO_KIT_CATALOG_ENTRY_HEADER(tabPlane3);
00048   SO_KIT_CATALOG_ENTRY_HEADER(tabPlane3Sep);
00049   SO_KIT_CATALOG_ENTRY_HEADER(tabPlane3Xf);
00050   SO_KIT_CATALOG_ENTRY_HEADER(tabPlane4);
00051   SO_KIT_CATALOG_ENTRY_HEADER(tabPlane4Sep);
00052   SO_KIT_CATALOG_ENTRY_HEADER(tabPlane4Xf);
00053   SO_KIT_CATALOG_ENTRY_HEADER(tabPlane5);
00054   SO_KIT_CATALOG_ENTRY_HEADER(tabPlane5Sep);
00055   SO_KIT_CATALOG_ENTRY_HEADER(tabPlane5Xf);
00056   SO_KIT_CATALOG_ENTRY_HEADER(tabPlane6);
00057   SO_KIT_CATALOG_ENTRY_HEADER(tabPlane6Sep);
00058   SO_KIT_CATALOG_ENTRY_HEADER(tabPlane6Xf);
00059 
00060 public:
00061   static void initClass(void);
00062   SoTabBoxDragger(void);
00063 
00064   SoSFVec3f translation;
00065   SoSFVec3f scaleFactor;
00066 
00067   void adjustScaleTabSize(void);
00068 
00069 protected:
00070   virtual ~SoTabBoxDragger(void);
00071   virtual SbBool setUpConnections(SbBool onoff, SbBool doitalways = FALSE);
00072   virtual void setDefaultOnNonWritingFields(void);
00073 
00074   static void invalidateSurroundScaleCB(void * f, SoDragger * d);
00075   static void fieldSensorCB(void * f, SoSensor * s);
00076   static void valueChangedCB(void * f, SoDragger * d);
00077 
00078   SoFieldSensor * translFieldSensor;
00079   SoFieldSensor * scaleFieldSensor;
00080 
00081 private:
00082   void initTransformNodes(void);
00083 
00084 private:
00085   SbLazyPimplPtr<SoTabBoxDraggerP> pimpl;
00086 
00087   // NOT IMPLEMENTED:
00088   SoTabBoxDragger(const SoTabBoxDragger & rhs);
00089   SoTabBoxDragger & operator = (const SoTabBoxDragger & rhs);
00090 }; // SoTabBoxDragger
00091 
00092 #endif // !COIN_SOTABBOXDRAGGER_H

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

Generated on Thu Apr 28 2011 03:43:07 for Coin by Doxygen 1.7.4.