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

SoVertexProperty.h
1 #ifndef COIN_SOVERTEXPROPERTY_H
2 #define COIN_SOVERTEXPROPERTY_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/SoSubNode.h>
28 #include <Inventor/fields/SoMFUInt32.h>
29 #include <Inventor/fields/SoMFVec3f.h>
30 #include <Inventor/fields/SoMFVec2f.h>
31 #include <Inventor/fields/SoSFEnum.h>
32
33 class SoVertexPropertyP;
34
35 class COIN_DLL_API SoVertexProperty : public SoNode {
36 typedef SoNode inherited;
37
38 SO_NODE_HEADER(SoVertexProperty);
39
40 public:
41 static void initClass(void);
42 SoVertexProperty(void);
43
44 // These must match 100% with the enum in SoMaterialBindingElement.
45 enum Binding {
46 OVERALL = 2,
47 PER_PART,
48 PER_PART_INDEXED,
49 PER_FACE,
50 PER_FACE_INDEXED,
51 PER_VERTEX,
52 PER_VERTEX_INDEXED
53 };
54
55 SoMFVec3f vertex;
56 SoMFVec2f texCoord;
57 SoMFVec3f texCoord3;
58 SoMFVec3f normal;
59 SoSFEnum normalBinding;
60 SoMFUInt32 orderedRGBA;
61 SoSFEnum materialBinding;
62
63 virtual void doAction(SoAction * action);
64 virtual void GLRender(SoGLRenderAction * action);
65 virtual void getBoundingBox(SoGetBoundingBoxAction * action);
66 virtual void callback(SoCallbackAction * action);
67 virtual void pick(SoPickAction * action);
68 virtual void getPrimitiveCount(SoGetPrimitiveCountAction * action);
69
70 protected:
71 virtual ~SoVertexProperty();
72 virtual void notify(SoNotList *list);
73
74 private:
75 SoVertexPropertyP * pimpl;
76 };
77
78 #ifndef COIN_INTERNAL
79 // For SGI / TGS Open Inventor compile-time compatibility.
80 #include <Inventor/nodes/SoNormalBinding.h>
81 #include <Inventor/nodes/SoMaterialBinding.h>
82 #include <Inventor/nodes/SoTextureCoordinateBinding.h>
83 #endif // COIN_INTERNAL
84
85 #endif // !COIN_SOVERTEXPROPERTY_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::notify
virtual void notify(SoNotList *l)
Definition: SoNode.cpp:439
SoNode::getPrimitiveCount
virtual void getPrimitiveCount(SoGetPrimitiveCountAction *action)
Definition: SoNode.cpp:870
SoVertexProperty::orderedRGBA
SoMFUInt32 orderedRGBA
Definition: SoVertexProperty.h:60
SO_NODE_HEADER
#define SO_NODE_HEADER(classname)
SoVertexProperty::normal
SoMFVec3f normal
Definition: SoVertexProperty.h:58
SoPickAction
The SoPickAction class is the base class for picking actions.The basis for all interaction features t...
Definition: SoPickAction.h:34
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
SoVertexProperty::texCoord
SoMFVec2f texCoord
Definition: SoVertexProperty.h:56
SoSFEnum
The SoSFEnum class is a container for an enum value.This field is used where nodes, engines or other field containers needs to store one particular value out of an enumerated set.
Definition: SoSFEnum.h:31
SoMFVec2f
The SoMFVec2f class is a container for SbVec2f vectors.This field is used where nodes, engines or other field containers needs to store an array of vectors with two elements.
Definition: SoMFVec2f.h:31
SoAction
The SoAction class is the base class for all traversal actions.Applying actions is the basic mechanis...
Definition: SoAction.h:68
SoNode::pick
virtual void pick(SoPickAction *action)
Definition: SoNode.cpp:1085
SoVertexProperty::Binding
Binding
Definition: SoVertexProperty.h:45
SoVertexProperty::vertex
SoMFVec3f vertex
Definition: SoVertexProperty.h:55
SoNode::doAction
virtual void doAction(SoAction *action)
Definition: SoNode.cpp:785
SoVertexProperty
The SoVertexProperty class collects the functionality of various appearance nodes.Instead of reading data from the current state stack of the scenegraph traversal, nodes inheriting SoVertexShape can be set up with an SoVertexProperty node in the SoVertexShape::vertexProperty field. Coordinates, normals, texture coordinates and material / color information will then be fetched from the vertexshape&#39;s SoVertexProperty node instead of from the state stack.
Definition: SoVertexProperty.h:35
SoMFUInt32
The SoMFUInt32 class is a container for 32-bit unsigned integer values.This field is used where nodes...
Definition: SoMFUInt32.h:30
SoGetPrimitiveCountAction
The SoGetPrimitiveCountAction class counts the primitives in a scene.Apply this action to a scene if ...
Definition: SoGetPrimitiveCountAction.h:34
SoGetBoundingBoxAction
The SoGetBoundingBoxAction class calculates bounding boxes for nodes and subgraphs.If this action is applied to a path or scene graph root, it will calculate the bounding box and the center point of the geometry contained within the scene.
Definition: SoGetBoundingBoxAction.h:36
SoVertexProperty::normalBinding
SoSFEnum normalBinding
Definition: SoVertexProperty.h:59
SoCallbackAction
The SoCallbackAction class invokes callbacks at specific nodes.This action has mechanisms for trackin...
Definition: SoCallbackAction.h:71
SoNode::getBoundingBox
virtual void getBoundingBox(SoGetBoundingBoxAction *action)
Definition: SoNode.cpp:841
SoVertexProperty::texCoord3
SoMFVec3f texCoord3
Definition: SoVertexProperty.h:57
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
SoNode::callback
virtual void callback(SoCallbackAction *action)
Definition: SoNode.cpp:1002
SoMFVec3f
The SoMFVec3f class is a container for SbVec3f vectors.This field is used where nodes, engines or other field containers needs to store an array of vectors with three elements.
Definition: SoMFVec3f.h:31
SoVertexProperty::materialBinding
SoSFEnum materialBinding
Definition: SoVertexProperty.h:61
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.