Open Inventor Release 2024.1.1
 
Loading...
Searching...
No Matches
SoNonIndexedShape.h
1
2/*=======================================================================
3 * Copyright 1991-1996, Silicon Graphics, Inc.
4 * ALL RIGHTS RESERVED
5 *
6 * UNPUBLISHED -- Rights reserved under the copyright laws of the United
7 * States. Use of a copyright notice is precautionary only and does not
8 * imply publication or disclosure.
9 *
10 * U.S. GOVERNMENT RESTRICTED RIGHTS LEGEND:
11 * Use, duplication or disclosure by the Government is subject to restrictions
12 * as set forth in FAR 52.227.19(c)(2) or subparagraph (c)(1)(ii) of the Rights
13 * in Technical Data and Computer Software clause at DFARS 252.227-7013 and/or
14 * in similar or successor clauses in the FAR, or the DOD or NASA FAR
15 * Supplement. Contractor/manufacturer is Silicon Graphics, Inc.,
16 * 2011 N. Shoreline Blvd. Mountain View, CA 94039-7311.
17 *
18 * THE CONTENT OF THIS WORK CONTAINS CONFIDENTIAL AND PROPRIETARY
19 * INFORMATION OF SILICON GRAPHICS, INC. ANY DUPLICATION, MODIFICATION,
20 * DISTRIBUTION, OR DISCLOSURE IN ANY FORM, IN WHOLE, OR IN PART, IS STRICTLY
21 * PROHIBITED WITHOUT THE PRIOR EXPRESS WRITTEN PERMISSION OF SILICON
22 * GRAPHICS, INC.
23**=======================================================================*/
24/*=======================================================================
25** Author : Paul S. Strauss (MMM yyyy)
26**=======================================================================*/
27/*=======================================================================
28 *** THE CONTENT OF THIS WORK IS PROPRIETARY TO FEI S.A.S, (FEI S.A.S.), ***
29 *** AND IS DISTRIBUTED UNDER A LICENSE AGREEMENT. ***
30 *** ***
31 *** REPRODUCTION, DISCLOSURE, OR USE, IN WHOLE OR IN PART, OTHER THAN AS ***
32 *** SPECIFIED IN THE LICENSE ARE NOT TO BE UNDERTAKEN EXCEPT WITH PRIOR ***
33 *** WRITTEN AUTHORIZATION OF FEI S.A.S. ***
34 *** ***
35 *** RESTRICTED RIGHTS LEGEND ***
36 *** USE, DUPLICATION, OR DISCLOSURE BY THE GOVERNMENT OF THE CONTENT OF THIS ***
37 *** WORK OR RELATED DOCUMENTATION IS SUBJECT TO RESTRICTIONS AS SET FORTH IN ***
38 *** SUBPARAGRAPH (C)(1) OF THE COMMERCIAL COMPUTER SOFTWARE RESTRICTED RIGHT ***
39 *** CLAUSE AT FAR 52.227-19 OR SUBPARAGRAPH (C)(1)(II) OF THE RIGHTS IN ***
40 *** TECHNICAL DATA AND COMPUTER SOFTWARE CLAUSE AT DFARS 52.227-7013. ***
41 *** ***
42 *** COPYRIGHT (C) 1996-2019 BY FEI S.A.S, ***
43 *** BORDEAUX, FRANCE ***
44 *** ALL RIGHTS RESERVED ***
45**=======================================================================*/
46/*=======================================================================
47** Modified by : VSG (MMM YYYY)
48**=======================================================================*/
49
50
51#ifndef _SO_NON_INDEXED_SHAPE_
52#define _SO_NON_INDEXED_SHAPE_
53
54#include <Inventor/fields/SoSFInt32.h>
55#include <Inventor/nodes/SoVertexShape.h>
56#include <Inventor/SbPImpl.h>
57
58SO_PIMPL_PUBLIC_DECLARATION(SoNonIndexedShape)
59
60
61//
62// Class: SoNonIndexedShape
63//
64// Abstract nonindexed shape node class. All nodes derived from this
65// (such as SoFaceSet and SoTriangleStripSet) are shapes constructed
66// from vertices defined by consecutive entries in the current
67// coordinates. The startIndex field gives the index into the current
68// coordinates at which the shape begins.
69//
71
112{
113 SO_NODE_ABSTRACT_HEADER(SoNonIndexedShape);
114 SO_PIMPL_PUBLIC_HEADER(SoNonIndexedShape)
115
116public:
117
122
123private:
124
125 static void initClass();
126 static void exitClass();
127
128 // Redefines this to invalidate normal and tangent caches
129 virtual void notify( SoNotList* list );
130
131private:
140 virtual void computeBBox( SoAction* action, SbBox3f& box, SbVec3f& center );
141
150 virtual void computeBBox( SoAction* action, SbXfBox3d& box, SbVec3d& center );
151
152private:
153
155 virtual ~SoNonIndexedShape();
156
157private:
158
159 void commonConstructor();
160
161};
162
163#endif /* _SO_NON_INDEXED_SHAPE_ */
164
3D box class.
Definition SbBox.h:649
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> 3D vector class ...
Definition SbVec.h:1214
3D vector class.
Definition SbVec.h:932
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> 3D box with an a...
Definition SbBox.h:1513
Abstract base class for all actions.
Definition SoAction.h:132
Abstract base class for all non-indexed vertex-based shapes.
SoSFInt32 startIndex
Index of first coordinate of shape.
Field containing a int32_t integer.
Definition SoSFInt32.h:80
Abstract base class for all vertex-based shape nodes.