00001 00002 /*======================================================================= 00003 * Copyright 1991-1996, Silicon Graphics, Inc. 00004 * ALL RIGHTS RESERVED 00005 * 00006 * UNPUBLISHED -- Rights reserved under the copyright laws of the United 00007 * States. Use of a copyright notice is precautionary only and does not 00008 * imply publication or disclosure. 00009 * 00010 * U.S. GOVERNMENT RESTRICTED RIGHTS LEGEND: 00011 * Use, duplication or disclosure by the Government is subject to restrictions 00012 * as set forth in FAR 52.227.19(c)(2) or subparagraph (c)(1)(ii) of the Rights 00013 * in Technical Data and Computer Software clause at DFARS 252.227-7013 and/or 00014 * in similar or successor clauses in the FAR, or the DOD or NASA FAR 00015 * Supplement. Contractor/manufacturer is Silicon Graphics, Inc., 00016 * 2011 N. Shoreline Blvd. Mountain View, CA 94039-7311. 00017 * 00018 * THE CONTENT OF THIS WORK CONTAINS CONFIDENTIAL AND PROPRIETARY 00019 * INFORMATION OF SILICON GRAPHICS, INC. ANY DUPLICATION, MODIFICATION, 00020 * DISTRIBUTION, OR DISCLOSURE IN ANY FORM, IN WHOLE, OR IN PART, IS STRICTLY 00021 * PROHIBITED WITHOUT THE PRIOR EXPRESS WRITTEN PERMISSION OF SILICON 00022 * GRAPHICS, INC. 00023 **=======================================================================*/ 00024 /*======================================================================= 00025 ** Author : Paul S. Strauss (MMM yyyy) 00026 **=======================================================================*/ 00027 /*======================================================================= 00028 *** THE CONTENT OF THIS WORK IS PROPRIETARY TO FEI S.A.S, (FEI S.A.S.), *** 00029 *** AND IS DISTRIBUTED UNDER A LICENSE AGREEMENT. *** 00030 *** *** 00031 *** REPRODUCTION, DISCLOSURE, OR USE, IN WHOLE OR IN PART, OTHER THAN AS *** 00032 *** SPECIFIED IN THE LICENSE ARE NOT TO BE UNDERTAKEN EXCEPT WITH PRIOR *** 00033 *** WRITTEN AUTHORIZATION OF FEI S.A.S. *** 00034 *** *** 00035 *** RESTRICTED RIGHTS LEGEND *** 00036 *** USE, DUPLICATION, OR DISCLOSURE BY THE GOVERNMENT OF THE CONTENT OF THIS *** 00037 *** WORK OR RELATED DOCUMENTATION IS SUBJECT TO RESTRICTIONS AS SET FORTH IN *** 00038 *** SUBPARAGRAPH (C)(1) OF THE COMMERCIAL COMPUTER SOFTWARE RESTRICTED RIGHT *** 00039 *** CLAUSE AT FAR 52.227-19 OR SUBPARAGRAPH (C)(1)(II) OF THE RIGHTS IN *** 00040 *** TECHNICAL DATA AND COMPUTER SOFTWARE CLAUSE AT DFARS 52.227-7013. *** 00041 *** *** 00042 *** COPYRIGHT (C) 1996-2019 BY FEI S.A.S, *** 00043 *** BORDEAUX, FRANCE *** 00044 *** ALL RIGHTS RESERVED *** 00045 **=======================================================================*/ 00046 /*======================================================================= 00047 ** Modified by : VSG (MMM YYYY) 00048 **=======================================================================*/ 00049 00050 00051 #ifndef _SO_NON_INDEXED_SHAPE_ 00052 #define _SO_NON_INDEXED_SHAPE_ 00053 00054 #include <Inventor/fields/SoSFInt32.h> 00055 #include <Inventor/nodes/SoVertexShape.h> 00056 #include <Inventor/SbPImpl.h> 00057 00058 SO_PIMPL_PUBLIC_DECLARATION(SoNonIndexedShape) 00059 00060 00061 // 00062 // Class: SoNonIndexedShape 00063 // 00064 // Abstract nonindexed shape node class. All nodes derived from this 00065 // (such as SoFaceSet and SoTriangleStripSet) are shapes constructed 00066 // from vertices defined by consecutive entries in the current 00067 // coordinates. The startIndex field gives the index into the current 00068 // coordinates at which the shape begins. 00069 // 00071 00111 class SoNonIndexedShape : public SoVertexShape 00112 { 00113 SO_NODE_ABSTRACT_HEADER(SoNonIndexedShape); 00114 SO_PIMPL_PUBLIC_HEADER(SoNonIndexedShape) 00115 00116 public: 00117 00121 SoSFInt32 startIndex; 00122 00123 private: 00124 00125 static void initClass(); 00126 static void exitClass(); 00127 00128 // Redefines this to invalidate normal and tangent caches 00129 virtual void notify( SoNotList* list ); 00130 00131 private: 00140 virtual void computeBBox( SoAction* action, SbBox3f& box, SbVec3f& center ); 00141 00150 virtual void computeBBox( SoAction* action, SbXfBox3d& box, SbVec3d& center ); 00151 00152 private: 00153 00154 SoNonIndexedShape(); 00155 virtual ~SoNonIndexedShape(); 00156 00157 private: 00158 00159 void commonConstructor(); 00160 00161 }; 00162 00163 #endif /* _SO_NON_INDEXED_SHAPE_ */ 00164 00165