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) 1998-2007 by Systems in Motion. All rights reserved.
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 Systems in Motion about acquiring
15  * a Coin Professional Edition License.
16  *
17  * See http://www.coin3d.org/ for more information.
18  *
19  * Systems in Motion, Postboks 1283, Pirsenteret, 7462 Trondheim, 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;
38  SO_NODE_HEADER(SoVRMLExtrusion);
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

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

Generated on Wed Jul 25 2012 for Coin by Doxygen. 1.8.1.1