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

SoVertexAttribute.h

00001 #ifndef COIN_SOVERTEXATTRIBUTE_H
00002 #define COIN_SOVERTEXATTRIBUTE_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/SoNode.h>
00028 #include <Inventor/nodes/SoSubNode.h>
00029 #include <Inventor/elements/SoVertexAttributeElement.h>
00030 #include <Inventor/fields/SoSFName.h>
00031 #include <Inventor/fields/SoMField.h>
00032 #include <Inventor/fields/SoSFEnum.h>
00033 #include <Inventor/tools/SbPimplPtr.h>
00034 
00035 class SoMField;
00036 class SoVertexAttributeP;
00037 
00038 class COIN_DLL_API SoVertexAttribute : public SoNode {
00039   typedef SoNode inherited;
00040 
00041 public:
00042   SoVertexAttribute(void);
00043   static void initClass(void);
00044 
00045   static SoType getClassTypeId(void);
00046   virtual SoType getTypeId(void) const;
00047 
00048   SoSFName name;
00049   SoSFName typeName;
00050 
00051   SoMField * getValuesField(void) const;
00052 
00053   virtual void doAction(SoAction * action);
00054   virtual void GLRender(SoGLRenderAction * action);
00055   virtual void write(SoWriteAction * action);
00056   virtual void copyContents(const SoFieldContainer * from, 
00057                             SbBool copyconnections); 
00058   virtual void notify(SoNotList * l);
00059 
00060 protected:
00061   virtual ~SoVertexAttribute(void);
00062 
00063   virtual SbBool readInstance(SoInput * in, unsigned short flags);
00064 
00065 private:
00066   static SoType classTypeId;
00067   static void * createInstance(void);
00068   virtual const SoFieldData * getFieldData(void) const;
00069 
00070   void initFieldData(void);
00071 
00072   SoVertexAttribute(const SoVertexAttribute & rhs); // N/A
00073   SoVertexAttribute & operator = (const SoVertexAttribute & rhs); // N/A
00074 
00075   SbPimplPtr<SoVertexAttributeP> pimpl;
00076 
00077 }; // SoVertexAttribute
00078 
00079 // *************************************************************************
00080 
00081 template <int Type>
00082 class SoAnyVertexAttribute : public SoVertexAttribute {
00083 public:
00084 
00085 private:
00086   SoAnyVertexAttribute(void) { }
00087 
00088 }; // SoAnyVertexAttribute
00089 
00090 // *************************************************************************
00091 
00092 #endif // !COIN_SOVERTEXATTRIBUTE_H

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

Generated for Coin by Doxygen 1.7.3.