![]() |
http://www.sim.no/ http://www.coin3d.org/ |
00001 #ifndef COIN_SOSPOTLIGHTMANIP_H 00002 #define COIN_SOSPOTLIGHTMANIP_H 00003 00004 /**************************************************************************\ 00005 * 00006 * This file is part of the Coin 3D visualization library. 00007 * Copyright (C) 1998-2008 by Kongsberg SIM. All rights reserved. 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 SIM about acquiring 00018 * a Coin Professional Edition License. 00019 * 00020 * See http://www.coin3d.org/ for more information. 00021 * 00022 * Kongsberg SIM, Postboks 1283, Pirsenteret, 7462 Trondheim, NORWAY. 00023 * http://www.sim.no/ sales@sim.no coin-support@coin3d.org 00024 * 00025 \**************************************************************************/ 00026 00027 #include <Inventor/nodes/SoSpotLight.h> 00028 #include <Inventor/tools/SbLazyPimplPtr.h> 00029 00030 #ifndef COIN_INTERNAL 00031 #include <Inventor/draggers/SoDragger.h> 00032 #endif 00033 00034 class SoChildList; 00035 class SoDragger; 00036 class SoFieldSensor; 00037 class SoPath; 00038 class SoSensor; 00039 class SoSpotLightManipP; 00040 00041 class COIN_DLL_API SoSpotLightManip : public SoSpotLight { 00042 typedef SoSpotLight inherited; 00043 00044 SO_NODE_HEADER(SoSpotLightManip); 00045 00046 public: 00047 static void initClass(void); 00048 SoSpotLightManip(void); 00049 00050 SoDragger * getDragger(void); 00051 SbBool replaceNode(SoPath * p); 00052 SbBool replaceManip(SoPath * p, SoSpotLight * newone) const; 00053 00054 virtual void doAction(SoAction * action); 00055 virtual void callback(SoCallbackAction * action); 00056 virtual void GLRender(SoGLRenderAction * action); 00057 virtual void getBoundingBox(SoGetBoundingBoxAction * action); 00058 virtual void getMatrix(SoGetMatrixAction * action); 00059 virtual void handleEvent(SoHandleEventAction * action); 00060 virtual void pick(SoPickAction * action); 00061 virtual void search(SoSearchAction * action); 00062 00063 virtual SoChildList * getChildren(void) const; 00064 00065 protected: 00066 virtual ~SoSpotLightManip(void); 00067 00068 void setDragger(SoDragger * newdragger); 00069 00070 virtual void copyContents(const SoFieldContainer * fromfc, 00071 SbBool copyconnections); 00072 00073 static void transferFieldValues(const SoSpotLight * from, SoSpotLight * to); 00074 static void valueChangedCB(void * f, SoDragger * d); 00075 static void fieldSensorCB(void * f, SoSensor * d); 00076 00077 SoFieldSensor * locationFieldSensor; 00078 SoFieldSensor * directionFieldSensor; 00079 SoFieldSensor * angleFieldSensor; 00080 SoFieldSensor * colorFieldSensor; 00081 SoChildList * children; 00082 00083 private: 00084 void attachSensors(const SbBool onoff); 00085 00086 private: 00087 SbLazyPimplPtr<SoSpotLightManipP> pimpl; 00088 00089 SoSpotLightManip(const SoSpotLightManip & rhs); 00090 SoSpotLightManip & operator = (const SoSpotLightManip & rhs); 00091 }; // SoSpotLightManip 00092 00093 #endif // !COIN_SOSPOTLIGHTMANIP_H
Copyright © 1998-2008 by Kongsberg SIM. All rights reserved.
Generated on Sat Nov 8 00:38:09 2008 for Coin by Doxygen 1.5.6.