| http://www.sim.no/ http://www.coin3d.org/

- Main Page
- Related Pages
- Modules
- Classes
- Files

- File List
- File Members

SoVertexAttribute.h
1 #ifndef COIN_SOVERTEXATTRIBUTE_H
2 #define COIN_SOVERTEXATTRIBUTE_H
3
4 /**************************************************************************\
5 *
6 * This file is part of the Coin 3D visualization library.
7 * Copyright (C) by Kongsberg Oil & Gas Technologies.
8 *
9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License
11 * ("GPL") version 2 as published by the Free Software Foundation.
12 * See the file LICENSE.GPL at the root directory of this source
13 * distribution for additional information about the GNU GPL.
14 *
15 * For using Coin with software that can not be combined with the GNU
16 * GPL, and for taking advantage of the additional benefits of our
17 * support services, please contact Kongsberg Oil & Gas Technologies
18 * about acquiring a Coin Professional Edition License.
19 *
20 * See http://www.coin3d.org/ for more information.
21 *
22 * Kongsberg Oil & Gas Technologies, Bygdoy Alle 5, 0257 Oslo, NORWAY.
23 * http://www.sim.no/ sales@sim.no coin-support@coin3d.org
24 *
25 \**************************************************************************/
26
27 #include <Inventor/nodes/SoNode.h>
28 #include <Inventor/nodes/SoSubNode.h>
29 #include <Inventor/elements/SoVertexAttributeElement.h>
30 #include <Inventor/fields/SoSFName.h>
31 #include <Inventor/fields/SoMField.h>
32 #include <Inventor/fields/SoSFEnum.h>
33 #include <Inventor/tools/SbPimplPtr.h>
34
35 class SoMField;
36 class SoVertexAttributeP;
37
38 class COIN_DLL_API SoVertexAttribute : public SoNode {
39 typedef SoNode inherited;
40
41 public:
42 SoVertexAttribute(void);
43 static void initClass(void);
44
45 static SoType getClassTypeId(void);
46 virtual SoType getTypeId(void) const;
47
48 SoSFName name;
49 SoSFName typeName;
50
51 SoMField * getValuesField(void) const;
52
53 virtual void doAction(SoAction * action);
54 virtual void GLRender(SoGLRenderAction * action);
55 virtual void write(SoWriteAction * action);
56 virtual void copyContents(const SoFieldContainer * from,
57 SbBool copyconnections);
58 virtual void notify(SoNotList * l);
59
60 protected:
61 virtual ~SoVertexAttribute(void);
62
63 virtual SbBool readInstance(SoInput * in, unsigned short flags);
64
65 private:
66 static SoType classTypeId;
67 static void * createInstance(void);
68 virtual const SoFieldData * getFieldData(void) const;
69
70 void initFieldData(void);
71
72 SoVertexAttribute(const SoVertexAttribute & rhs); // N/A
73 SoVertexAttribute & operator = (const SoVertexAttribute & rhs); // N/A
74
75 SbPimplPtr<SoVertexAttributeP> pimpl;
76
77 }; // SoVertexAttribute
78
79 // *************************************************************************
80
81 template <int Type>
82 class SoAnyVertexAttribute : public SoVertexAttribute {
83 public:
84
85 private:
86 SoAnyVertexAttribute(void) { }
87
88 }; // SoAnyVertexAttribute
89
90 // *************************************************************************
91
92 #endif // !COIN_SOVERTEXATTRIBUTE_H

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