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

SoVRMLExtrusion.h
1 /**************************************************************************\
2  *
3  * This file is part of the Coin 3D visualization library.
4  * Copyright (C) by Kongsberg Oil & Gas Technologies.
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU General Public License
8  * ("GPL") version 2 as published by the Free Software Foundation.
9  * See the file LICENSE.GPL at the root directory of this source
10  * distribution for additional information about the GNU GPL.
11  *
12  * For using Coin with software that can not be combined with the GNU
13  * GPL, and for taking advantage of the additional benefits of our
14  * support services, please contact Kongsberg Oil & Gas Technologies
15  * about acquiring a Coin Professional Edition License.
16  *
17  * See http://www.coin3d.org/ for more information.
18  *
19  * Kongsberg Oil & Gas Technologies, Bygdoy Alle 5, 0257 Oslo, NORWAY.
20  * http://www.sim.no/ sales@sim.no coin-support@coin3d.org
21  *
22 \**************************************************************************/
23 
24 #ifndef COIN_SOVRMLEXTRUSION_H
25 #define COIN_SOVRMLEXTRUSION_H
26 
27 #include <Inventor/nodes/SoSubNode.h>
28 #include <Inventor/VRMLnodes/SoVRMLGeometry.h>
29 #include <Inventor/fields/SoSFBool.h>
30 #include <Inventor/fields/SoSFFloat.h>
31 #include <Inventor/fields/SoMFVec2f.h>
32 #include <Inventor/fields/SoMFVec3f.h>
33 #include <Inventor/fields/SoMFRotation.h>
34 
35 class COIN_DLL_API SoVRMLExtrusion : public SoVRMLGeometry
36 {
37  typedef SoVRMLGeometry inherited;
39 
40 public:
41  static void initClass(void);
42  SoVRMLExtrusion(void);
43 
44  SoSFBool beginCap;
45  SoSFBool ccw;
46  SoSFBool convex;
47  SoSFFloat creaseAngle;
48  SoMFVec2f crossSection;
49  SoSFBool endCap;
50  SoMFRotation orientation;
51  SoMFVec2f scale;
52  SoSFBool solid;
53  SoMFVec3f spine;
54 
55  virtual void GLRender(SoGLRenderAction * action);
56  virtual void getPrimitiveCount(SoGetPrimitiveCountAction * action);
57  virtual void computeBBox(SoAction * action,
58  SbBox3f & bbox, SbVec3f & center);
59 
60 protected:
61  virtual ~SoVRMLExtrusion();
62 
63  virtual void notify(SoNotList * list);
64  virtual void generatePrimitives( SoAction * action );
65 
67  const SoPrimitiveVertex * v1,
68  const SoPrimitiveVertex * v2,
69  const SoPrimitiveVertex * v3,
70  SoPickedPoint * pp);
71 private:
72  void updateCache(void);
73  class SoVRMLExtrusionP * pimpl;
74 }; // class SoVRMLExtrusion
75 
76 #endif // ! COIN_SOVRMLEXTRUSION_H
SoShape::GLRender
virtual void GLRender(SoGLRenderAction *action)
Definition: SoShape.cpp:392
SoShape::computeBBox
virtual void computeBBox(SoAction *action, SbBox3f &box, SbVec3f &center)=0
SoMFVec3f
The SoMFVec3f class is a container for SbVec3f vectors.
Definition: SoMFVec3f.h:31
SoVRMLGeometry::notify
virtual void notify(SoNotList *list)
Definition: Geometry.cpp:164
SoSFBool
The SoSFBool class is a container for an SbBool value.
Definition: SoSFBool.h:30
SbBox3f
The SbBox3f class is an abstraction for an axis aligned 3 dimensional box.
Definition: SbBox3f.h:37
SoAction
The SoAction class is the base class for all traversal actions.
Definition: SoAction.h:68
SO_NODE_HEADER
#define SO_NODE_HEADER(classname)
SoShape::getPrimitiveCount
virtual void getPrimitiveCount(SoGetPrimitiveCountAction *action)
Definition: SoShape.cpp:1344
SoVRMLExtrusion
The SoVRMLExtrusion class is a a geometry node for extruding a cross section along a spine.
Definition: SoVRMLExtrusion.h:36
SoPrimitiveVertex
The SoPrimitiveVertex class represents a single vertex of a generated primitive.
Definition: SoPrimitiveVertex.h:34
SoDetail
The SoDetail class is the superclass for all classes storing detailed information about particular sh...
Definition: SoDetail.h:30
SoMFVec2f
The SoMFVec2f class is a container for SbVec2f vectors.
Definition: SoMFVec2f.h:31
SoShape::generatePrimitives
virtual void generatePrimitives(SoAction *action)=0
SoShape::createTriangleDetail
virtual SoDetail * createTriangleDetail(SoRayPickAction *action, const SoPrimitiveVertex *v1, const SoPrimitiveVertex *v2, const SoPrimitiveVertex *v3, SoPickedPoint *pp)
Definition: SoShape.cpp:899
SbVec3f
The SbVec3f class is a 3 dimensional vector with floating point coordinates.
Definition: SbVec3f.h:40
SoMFRotation
The SoMFRotation class is a container for SbRotation values.
Definition: SoMFRotation.h:31
SoPickedPoint
The SoPickedPoint class is used for specifying picked points.
Definition: SoPickedPoint.h:39
SoSFFloat
The SoSFFloat class is a container for a floating point value.
Definition: SoSFFloat.h:30
SoRayPickAction
The SoRayPickAction class does ray intersection with scene graphs.
Definition: SoRayPickAction.h:41
SoNotList
The SoNotList class is a list of SoNotRec notification records.
Definition: SoNotification.h:34
SoGLRenderAction
The SoGLRenderAction class renders the scene graph with OpenGL calls.
Definition: SoGLRenderAction.h:41
SoGetPrimitiveCountAction
The SoGetPrimitiveCountAction class counts the primitives in a scene.
Definition: SoGetPrimitiveCountAction.h:34
SoVRMLGeometry
The SoVRMLGeometry class is a superclass for VRML shapes.
Definition: SoVRMLGeometry.h:33

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

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