![]() |
http://www.sim.no/ http://www.coin3d.org/ |
00001 #ifndef COIN_SOVERTEXPROPERTY_H 00002 #define COIN_SOVERTEXPROPERTY_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/SoSubNode.h> 00028 #include <Inventor/fields/SoMFUInt32.h> 00029 #include <Inventor/fields/SoMFVec3f.h> 00030 #include <Inventor/fields/SoMFVec2f.h> 00031 #include <Inventor/fields/SoSFEnum.h> 00032 00033 class SoVertexPropertyP; 00034 00035 class COIN_DLL_API SoVertexProperty : public SoNode { 00036 typedef SoNode inherited; 00037 00038 SO_NODE_HEADER(SoVertexProperty); 00039 00040 public: 00041 static void initClass(void); 00042 SoVertexProperty(void); 00043 00044 // These must match 100% with the enum in SoMaterialBindingElement. 00045 enum Binding { 00046 OVERALL = 2, 00047 PER_PART, 00048 PER_PART_INDEXED, 00049 PER_FACE, 00050 PER_FACE_INDEXED, 00051 PER_VERTEX, 00052 PER_VERTEX_INDEXED 00053 }; 00054 00055 SoMFVec3f vertex; 00056 SoMFVec2f texCoord; 00057 SoMFVec3f texCoord3; 00058 SoMFVec3f normal; 00059 SoSFEnum normalBinding; 00060 SoMFUInt32 orderedRGBA; 00061 SoSFEnum materialBinding; 00062 00063 virtual void doAction(SoAction * action); 00064 virtual void GLRender(SoGLRenderAction * action); 00065 virtual void getBoundingBox(SoGetBoundingBoxAction * action); 00066 virtual void callback(SoCallbackAction * action); 00067 virtual void pick(SoPickAction * action); 00068 virtual void getPrimitiveCount(SoGetPrimitiveCountAction * action); 00069 00070 protected: 00071 virtual ~SoVertexProperty(); 00072 virtual void notify(SoNotList *list); 00073 00074 private: 00075 SoVertexPropertyP * pimpl; 00076 }; 00077 00078 #ifndef COIN_INTERNAL 00079 // For SGI / TGS Open Inventor compile-time compatibility. 00080 #include <Inventor/nodes/SoNormalBinding.h> 00081 #include <Inventor/nodes/SoMaterialBinding.h> 00082 #include <Inventor/nodes/SoTextureCoordinateBinding.h> 00083 #endif // COIN_INTERNAL 00084 00085 #endif // !COIN_SOVERTEXPROPERTY_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.