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
virtual void notify(SoNotList *list)
Definition: Geometry.cpp:164
The SoRayPickAction class does ray intersection with scene graphs.For interaction with the scene grap...
Definition: SoRayPickAction.h:41
The SoPrimitiveVertex class represents a single vertex of a generated primitive.Instances of SoPrimit...
Definition: SoPrimitiveVertex.h:34
#define SO_NODE_HEADER(classname)
virtual void GLRender(SoGLRenderAction *action)
Definition: SoShape.cpp:392
The SoVRMLGeometry class is a superclass for VRML shapes.
Definition: SoVRMLGeometry.h:32
The SbBox3f class is an abstraction for an axis aligned 3 dimensional box.This box abstraction class ...
Definition: SbBox3f.h:37
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
The SoVRMLExtrusion class is a a geometry node for extruding a cross section along a spine...
Definition: SoVRMLExtrusion.h:35
The SoSFBool class is a container for an SbBool value.This field is used where nodes, engines or other field containers needs to store a boolean on/off or TRUE/FALSE value, like for instance as the &quot;on&quot; field of the SoPointLight, SoSpotLight and SoDirectionalLight node classes.
Definition: SoSFBool.h:30
virtual SoDetail * createTriangleDetail(SoRayPickAction *action, const SoPrimitiveVertex *v1, const SoPrimitiveVertex *v2, const SoPrimitiveVertex *v3, SoPickedPoint *pp)
Definition: SoShape.cpp:899
virtual void getPrimitiveCount(SoGetPrimitiveCountAction *action)
Definition: SoShape.cpp:1344
The SoAction class is the base class for all traversal actions.Applying actions is the basic mechanis...
Definition: SoAction.h:68
The SbVec3f class is a 3 dimensional vector with floating point coordinates.This vector class is used...
Definition: SbVec3f.h:40
virtual void generatePrimitives(SoAction *action)=0
virtual void computeBBox(SoAction *action, SbBox3f &box, SbVec3f &center)=0
The SoGetPrimitiveCountAction class counts the primitives in a scene.Apply this action to a scene if ...
Definition: SoGetPrimitiveCountAction.h:34
The SoMFRotation class is a container for SbRotation values.This field is used where nodes...
Definition: SoMFRotation.h:31
The SoPickedPoint class is used for specifying picked points.It holds miscellaneous information about...
Definition: SoPickedPoint.h:39
The SoSFFloat class is a container for a floating point value.This field is used where nodes...
Definition: SoSFFloat.h:30
The SoNotList class is a list of SoNotRec notification records.
Definition: SoNotification.h:34
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
The SoGLRenderAction class renders the scene graph with OpenGL calls.Applying this method at a root n...
Definition: SoGLRenderAction.h:41
The SoDetail class is the superclass for all classes storing detailed information about particular sh...
Definition: SoDetail.h:30

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

Generated on Fri Sep 9 2016 for Coin by Doxygen 1.8.5.