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

SoNormal.h
1 #ifndef COIN_SONORMAL_H
2 #define COIN_SONORMAL_H
3 
4 /**************************************************************************\
5  *
6  * This file is part of the Coin 3D visualization library.
7  * Copyright (C) 1998-2007 by Systems in Motion. All rights reserved.
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 Systems in Motion about acquiring
18  * a Coin Professional Edition License.
19  *
20  * See http://www.coin3d.org/ for more information.
21  *
22  * Systems in Motion, Postboks 1283, Pirsenteret, 7462 Trondheim, 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/SoMFVec3f.h>
29 
30 class SbVec3f;
31 
32 
33 class COIN_DLL_API SoNormal : public SoNode {
34  typedef SoNode inherited;
35 
36  SO_NODE_HEADER(SoNormal);
37 
38 public:
39  static void initClass(void);
40  SoNormal(void);
41 
43 
44  virtual void doAction(SoAction * action);
45  virtual void GLRender(SoGLRenderAction * action);
46  virtual void callback(SoCallbackAction * action);
47  virtual void pick(SoPickAction * action);
48  virtual void getPrimitiveCount(SoGetPrimitiveCountAction * action);
49 
50 protected:
51  virtual ~SoNormal();
52 };
53 
54 #endif // !COIN_SONORMAL_H
SoState
The SoState class manages the Coin scenegraph traversal state data.
Definition: SoState.h:35
SoMField::getNum
int getNum(void) const
Definition: SoMField.h:86
SoMFVec3f
The SoMFVec3f class is a container for SbVec3f vectors.
Definition: SoMFVec3f.h:31
SoNormal
The SoNormal class is a node for providing normals to the state.
Definition: SoNormal.h:33
SoNode::GLRender
virtual void GLRender(SoGLRenderAction *action)
Definition: SoNode.cpp:904
SoNode::VRML1
@ VRML1
Definition: SoNode.h:61
SoField::isIgnored
SbBool isIgnored(void) const
Definition: SoField.cpp:638
SoAction
The SoAction class is the base class for all traversal actions.
Definition: SoAction.h:67
SoNode::getPrimitiveCount
virtual void getPrimitiveCount(SoGetPrimitiveCountAction *action)
Definition: SoNode.cpp:846
SoOverrideElement::setNormalVectorOverride
static void setNormalVectorOverride(SoState *const state, SoNode *const node, const SbBool override)
Definition: SoOverrideElement.cpp:769
SoNormal::SoNormal
SoNormal(void)
Definition: SoNormal.cpp:83
SoNode::callback
virtual void callback(SoCallbackAction *action)
Definition: SoNode.cpp:974
SoNormal::~SoNormal
virtual ~SoNormal()
Definition: SoNormal.cpp:94
SoMFVec3f::getValues
const SbVec3f * getValues(const int start) const
Definition: SoMFVec3f.h:34
SoBase
The SoBase class is the top-level superclass for a number of class-hierarchies.
Definition: SoBase.h:41
SoAction::getState
SoState * getState(void) const
Definition: SoAction.cpp:1028
SoNormal::doAction
virtual void doAction(SoAction *action)
Definition: SoNormal.cpp:158
SbVec3f
The SbVec3f class is a 3 dimensional vector with floating point coordinates.
Definition: SbVec3f.h:37
SoCallbackAction
The SoCallbackAction class invokes callbacks at specific nodes.
Definition: SoCallbackAction.h:70
SoNormal::pick
virtual void pick(SoPickAction *action)
Definition: SoNormal.cpp:180
SoOverrideElement::getNormalVectorOverride
static SbBool getNormalVectorOverride(SoState *const state)
Definition: SoOverrideElement.cpp:467
SoNormal::callback
virtual void callback(SoCallbackAction *action)
Definition: SoNormal.cpp:173
SoNode::isOverride
SbBool isOverride(void) const
Definition: SoNode.cpp:683
SoNode
The SoNode class is the base class for nodes used in scene graphs.
Definition: SoNode.h:47
SoNormal::getPrimitiveCount
virtual void getPrimitiveCount(SoGetPrimitiveCountAction *action)
Definition: SoNormal.cpp:187
SoBase::staticDataUnlock
static void staticDataUnlock(void)
Definition: SoBase.cpp:2017
SoNode::pick
virtual void pick(SoPickAction *action)
Definition: SoNode.cpp:1057
SoNormal::GLRender
virtual void GLRender(SoGLRenderAction *action)
Definition: SoNormal.cpp:115
SoNode::doAction
virtual void doAction(SoAction *action)
Definition: SoNode.cpp:761
SoGLRenderAction
The SoGLRenderAction class renders the scene graph with OpenGL calls.
Definition: SoGLRenderAction.h:39
SoGetPrimitiveCountAction
The SoGetPrimitiveCountAction class counts the primitives in a scene.
Definition: SoGetPrimitiveCountAction.h:32
SoBase::staticDataLock
static void staticDataLock(void)
Definition: SoBase.cpp:2007
SoPickAction
The SoPickAction class is the base class for picking actions.
Definition: SoPickAction.h:32
SoNormal::vector
SoMFVec3f vector
Definition: SoNormal.h:42

Copyright © 1998-2007 by Systems in Motion AS. All rights reserved.

Generated on Mon Jul 27 2020 for Coin by Doxygen. 1.8.18