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

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
SoBase
The SoBase class is the top-level superclass for a number of class-hierarchies.SoBase provides the ba...
Definition: SoBase.h:36
SoNode::copyContents
virtual void copyContents(const SoFieldContainer *from, SbBool copyconnections)
Definition: SoNode.cpp:1410
SoNode::notify
virtual void notify(SoNotList *l)
Definition: SoNode.cpp:439
SoFieldContainer
The SoFieldContainer class is a base class for all classes that contain fields.The classes containing...
Definition: SoFieldContainer.h:34
SoBase::getTypeId
virtual SoType getTypeId(void) const =0
SoNode
The SoNode class is the base class for nodes used in scene graphs.Coin is a retained mode 3D visualiz...
Definition: SoNode.h:47
SoFieldContainer::getFieldData
virtual const SoFieldData * getFieldData(void) const
Definition: SoFieldContainer.cpp:738
SoMField
The SoMField class is the base class for fields which can contain multiple values.All field types which may contain more than one member value inherits this class. SoMField is an abstract class.
Definition: SoMField.h:32
SoNode::readInstance
virtual SbBool readInstance(SoInput *in, unsigned short flags)
Definition: SoNode.cpp:1466
SoAction
The SoAction class is the base class for all traversal actions.Applying actions is the basic mechanis...
Definition: SoAction.h:68
SoNode::doAction
virtual void doAction(SoAction *action)
Definition: SoNode.cpp:785
SoSFName
The SoSFName class is a container for an SbName.This field is used where nodes, engines or other fiel...
Definition: SoSFName.h:31
SoVertexAttribute
A generic node for providing GL vertex attributes of various types.
Definition: SoVertexAttribute.h:38
SoWriteAction
The SoWriteAction class writes a scene graph to file.When applied to a scene, this action writes its ...
Definition: SoWriteAction.h:33
SoInput
The SoInput class is an abstraction of file import functionality.This class takes care of most of the...
Definition: SoInput.h:52
SoFieldData
The SoFieldData class is a container for a prototype set of fields.This class is instantiated once fo...
Definition: SoFieldData.h:39
SoNode::GLRender
virtual void GLRender(SoGLRenderAction *action)
Definition: SoNode.cpp:930
SoNotList
The SoNotList class is a list of SoNotRec notification records.
Definition: SoNotification.h:34
SoType
The SoType class is the basis for the run-time type system in Coin.Many of the classes in the Coin li...
Definition: SoType.h:50
SoNode::write
virtual void write(SoWriteAction *action)
Definition: SoNode.cpp:1217
SoGLRenderAction
The SoGLRenderAction class renders the scene graph with OpenGL calls.Applying this method at a root n...
Definition: SoGLRenderAction.h:41

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