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

SoDirectionalLightManip.h
00001 #ifndef COIN_SODIRECTIONALLIGHTMANIP_H
00002 #define COIN_SODIRECTIONALLIGHTMANIP_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/nodes/SoDirectionalLight.h>
00028 #include <Inventor/tools/SbLazyPimplPtr.h>
00029 #ifndef COIN_INTERNAL
00030 #include <Inventor/draggers/SoDragger.h>
00031 #endif
00032 
00033 class SoChildList;
00034 class SoDragger;
00035 class SoFieldSensor;
00036 class SoPath;
00037 class SoSensor;
00038 class SbVec3f;
00039 class SbMatrix;
00040 class SoDirectionalLightManipP;
00041 
00042 class COIN_DLL_API SoDirectionalLightManip : public SoDirectionalLight {
00043   typedef SoDirectionalLight inherited;
00044 
00045   SO_NODE_HEADER(SoDirectionalLightManip);
00046 
00047 public:
00048   static void initClass(void);
00049   SoDirectionalLightManip(void);
00050 
00051   SoDragger * getDragger(void);
00052   SbBool replaceNode(SoPath * path);
00053   SbBool replaceManip(SoPath * path, SoDirectionalLight * newone) const;
00054 
00055   virtual void doAction(SoAction * action);
00056   virtual void callback(SoCallbackAction * action);
00057   virtual void GLRender(SoGLRenderAction * action);
00058   virtual void getBoundingBox(SoGetBoundingBoxAction * action);
00059   virtual void getMatrix(SoGetMatrixAction * action);
00060   virtual void handleEvent(SoHandleEventAction * action);
00061   virtual void pick(SoPickAction * action);
00062   virtual void search(SoSearchAction * action);
00063 
00064   virtual SoChildList * getChildren(void) const;
00065 
00066 protected:
00067   virtual ~SoDirectionalLightManip(void);
00068 
00069   void setDragger(SoDragger * newdragger);
00070 
00071   virtual void copyContents(const SoFieldContainer * fromfc, SbBool copyconnections);
00072   static void transferFieldValues(const SoDirectionalLight * from, SoDirectionalLight * to);
00073 
00074   static void valueChangedCB(void * f, SoDragger * d);
00075   static void fieldSensorCB(void * f, SoSensor * d);
00076 
00077   SoFieldSensor * directionFieldSensor;
00078   SoFieldSensor * colorFieldSensor;
00079   SoChildList * children;
00080 
00081 private:
00082   void attachSensors(const SbBool onoff);
00083 
00084 private:
00085   SbLazyPimplPtr<SoDirectionalLightManipP> pimpl;
00086 
00087   SoDirectionalLightManip(const SoDirectionalLightManip & rhs);
00088   SoDirectionalLightManip & operator = (const SoDirectionalLightManip & rhs);
00089 }; // SoDirectionalLightManip
00090 
00091 #endif // !COIN_SODIRECTIONALLIGHTMANIP_H

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

Generated for Coin by Doxygen 1.7.5.1.