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
36{
39
40public:
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
60protected:
61 virtual ~SoVRMLExtrusion();
62
63 virtual void notify(SoNotList * list);
64 virtual void generatePrimitives( SoAction * action );
65
66 virtual SoDetail * createTriangleDetail(SoRayPickAction * action,
67 const SoPrimitiveVertex * v1,
68 const SoPrimitiveVertex * v2,
69 const SoPrimitiveVertex * v3,
71private:
72 void updateCache(void);
73 class SoVRMLExtrusionP * pimpl;
74}; // class SoVRMLExtrusion
75
76#endif // ! COIN_SOVRMLEXTRUSION_H
The SbBox3f class is an abstraction for an axis aligned 3 dimensional box.
Definition SbBox3f.h:37
The SbList class is a template container class for lists.
Definition SbList.h:47
SbList(const int sizehint=DEFAULTSIZE)
Definition SbList.h:55
The SbVec3f class is a 3 dimensional vector with floating point coordinates.
Definition SbVec3f.h:37
The SoAction class is the base class for all traversal actions.
Definition SoAction.h:67
The SoDetail class is the superclass for all classes storing detailed information about particular sh...
Definition SoDetail.h:30
The SoGLRenderAction class renders the scene graph with OpenGL calls.
Definition SoGLRenderAction.h:39
The SoGetPrimitiveCountAction class counts the primitives in a scene.
Definition SoGetPrimitiveCountAction.h:32
The SoMFRotation class is a container for SbRotation values.
Definition SoMFRotation.h:31
The SoMFVec2f class is a container for SbVec2f vectors.
Definition SoMFVec2f.h:31
The SoMFVec3f class is a container for SbVec3f vectors.
Definition SoMFVec3f.h:31
The SoNotList class is a list of SoNotRec notification records.
Definition SoNotification.h:34
The SoPickedPoint class is used for specifying picked points.
Definition SoPickedPoint.h:39
The SoPrimitiveVertex class represents a single vertex of a generated primitive.
Definition SoPrimitiveVertex.h:33
The SoRayPickAction class does ray intersection with scene graphs.
Definition SoRayPickAction.h:40
The SoSFBool class is a container for an SbBool value.
Definition SoSFBool.h:30
The SoSFFloat class is a container for a floating point value.
Definition SoSFFloat.h:30
The SoVRMLExtrusion class is a a geometry node for extruding a cross section along a spine.
Definition SoVRMLExtrusion.h:36
The SoVRMLGeometry class is a superclass for VRML shapes.
Definition SoVRMLGeometry.h:33

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

Generated on Mon Jan 22 2024 for Coin by Doxygen. 1.10.0