![]() |
http://www.sim.no/ http://www.coin3d.org/ |
00001 00002 #ifndef COIN_SOTEXTURECOORDINATEREFLECTION_MAP_H 00003 #define COIN_SOTEXTURECOORDINATEREFLECTION_MAP_H 00004 00005 /**************************************************************************\ 00006 * 00007 * This file is part of the Coin 3D visualization library. 00008 * Copyright (C) 1998-2009 by Kongsberg SIM. All rights reserved. 00009 * 00010 * This library is free software; you can redistribute it and/or 00011 * modify it under the terms of the GNU General Public License 00012 * ("GPL") version 2 as published by the Free Software Foundation. 00013 * See the file LICENSE.GPL at the root directory of this source 00014 * distribution for additional information about the GNU GPL. 00015 * 00016 * For using Coin with software that can not be combined with the GNU 00017 * GPL, and for taking advantage of the additional benefits of our 00018 * support services, please contact Kongsberg SIM about acquiring 00019 * a Coin Professional Edition License. 00020 * 00021 * See http://www.coin3d.org/ for more information. 00022 * 00023 * Kongsberg SIM, Postboks 1283, Pirsenteret, 7462 Trondheim, NORWAY. 00024 * http://www.sim.no/ sales@sim.no coin-support@coin3d.org 00025 * 00026 \**************************************************************************/ 00027 00028 #include <Inventor/nodes/SoSubNode.h> 00029 #include <Inventor/nodes/SoTextureCoordinateFunction.h> 00030 #include <Inventor/fields/SoSFVec3f.h> 00031 #include <Inventor/SbVec4f.h> 00032 #include <Inventor/SbVec3f.h> 00033 00034 class COIN_DLL_API SoTextureCoordinateReflectionMap : public SoTextureCoordinateFunction { 00035 typedef SoTextureCoordinateFunction inherited; 00036 00037 SO_NODE_HEADER(SoTextureCoordinateReflectionMap); 00038 00039 public: 00040 static void initClass(void); 00041 SoTextureCoordinateReflectionMap(void); 00042 00043 virtual void doAction(SoAction * action); 00044 virtual void GLRender(SoGLRenderAction * action); 00045 virtual void pick(SoPickAction * action); 00046 virtual void callback(SoCallbackAction * action); 00047 00048 protected: 00049 virtual ~SoTextureCoordinateReflectionMap(); 00050 00051 private: 00052 static const SbVec4f & generate(void *userdata, 00053 const SbVec3f &p, 00054 const SbVec3f &n); 00055 static void handleTexgen(void *data); 00056 00057 }; 00058 00059 #endif // !COIN_SOTEXTURECOORDINATEREFLECTION_MAP_H
Copyright © 1998-2009 by Kongsberg SIM. All rights reserved.
Generated on Mon Jun 15 11:58:21 2009 for Coin by Doxygen 1.5.9.