00001 #if !defined _SO_CIRCEXTRSHAPE_H_ 00002 #define _SO_CIRCEXTRSHAPE_H_ 00003 00004 /*======================================================================= 00005 *** THE CONTENT OF THIS WORK IS PROPRIETARY TO FEI S.A.S, (FEI S.A.S.), *** 00006 *** AND IS DISTRIBUTED UNDER A LICENSE AGREEMENT. *** 00007 *** *** 00008 *** REPRODUCTION, DISCLOSURE, OR USE, IN WHOLE OR IN PART, OTHER THAN AS *** 00009 *** SPECIFIED IN THE LICENSE ARE NOT TO BE UNDERTAKEN EXCEPT WITH PRIOR *** 00010 *** WRITTEN AUTHORIZATION OF FEI S.A.S. *** 00011 *** *** 00012 *** RESTRICTED RIGHTS LEGEND *** 00013 *** USE, DUPLICATION, OR DISCLOSURE BY THE GOVERNMENT OF THE CONTENT OF THIS *** 00014 *** WORK OR RELATED DOCUMENTATION IS SUBJECT TO RESTRICTIONS AS SET FORTH IN *** 00015 *** SUBPARAGRAPH (C)(1) OF THE COMMERCIAL COMPUTER SOFTWARE RESTRICTED RIGHT *** 00016 *** CLAUSE AT FAR 52.227-19 OR SUBPARAGRAPH (C)(1)(II) OF THE RIGHTS IN *** 00017 *** TECHNICAL DATA AND COMPUTER SOFTWARE CLAUSE AT DFARS 52.227-7013. *** 00018 *** *** 00019 *** COPYRIGHT (C) 1996-2018 BY FEI S.A.S, *** 00020 *** BORDEAUX, FRANCE *** 00021 *** ALL RIGHTS RESERVED *** 00022 **=======================================================================*/ 00023 /*======================================================================= 00024 ** Author : Roberto Calabrese (Feb 2011) 00025 **=======================================================================*/ 00026 00027 #include <Inventor/SbBasic.h> 00028 #include <Inventor/fields/SoSFFloat.h> 00029 #include <Inventor/fields/SoSFVec2f.h> 00030 #include <Inventor/nodes/SoBaseExtrusion.h> 00031 #include <Inventor/SbPImpl.h> 00032 00033 class SoState; 00034 class SoAction; 00035 00036 SO_PIMPL_PUBLIC_DECLARATION(SoCircularExtrusion) 00037 00038 //@TOBEWRAPPED 00123 class SoCircularExtrusion : public SoBaseExtrusion 00124 { 00125 SO_NODE_HEADER( SoCircularExtrusion ); 00126 SO_PIMPL_PUBLIC_HEADER(SoCircularExtrusion) 00127 00128 public: 00129 00130 enum SpineSimplificationMode 00131 { 00135 DEFAULT, 00137 RESPECT_MATERIALS, 00138 }; 00139 00140 // Fields 00144 SoSFFloat radius; 00145 00149 SoSFVec2f activeSection; 00150 00159 SoSFEnum spineSimplificationMode; 00160 00162 SoCircularExtrusion(); 00163 00164 private: 00165 00166 // Implement actions 00167 00169 virtual void doAction( SoAction *action ); 00170 00172 virtual void callback( SoCallbackAction *action ); 00173 00175 virtual void rayPick( SoRayPickAction *action ); 00176 00178 virtual void getPrimitiveCount( SoGetPrimitiveCountAction *action ); 00179 00181 virtual void computeBBox( SoAction *action, SbBox3f &box, SbVec3f ¢er ); 00182 00184 virtual void computeBBox( SoAction *action, SbXfBox3d &box, SbVec3d ¢er ); 00185 00186 00187 private: 00189 static void initClass(); 00190 00192 static void exitClass(); 00193 00195 virtual void notify( SoNotList *list ); 00196 00197 private: 00199 virtual ~SoCircularExtrusion(); 00200 00202 virtual void generatePrimitives( SoAction *action ); 00203 00204 }; 00205 00206 #endif /* _SO_CIRCEXTRSHAPE_H_ */ 00207 00208 00209