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-2020 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/fields/SoSFFloat.h> 00028 #include <Inventor/fields/SoSFVec2f.h> 00029 #include <Inventor/nodes/SoBaseExtrusion.h> 00030 00031 class SoState; 00032 class SoAction; 00033 class SoCircularExtrusionImpl; 00034 00035 //@TOBEWRAPPED 00121 class SoCircularExtrusion : public SoBaseExtrusion 00122 { 00123 SO_NODE_HEADER( SoCircularExtrusion ); 00124 00125 public: 00126 00127 enum SpineSimplificationMode 00128 { 00132 DEFAULT, 00134 RESPECT_MATERIALS, 00135 }; 00136 00137 // Fields 00141 SoSFFloat radius; 00142 00146 SoSFVec2f activeSection; 00147 00156 SoSFEnum spineSimplificationMode; 00157 00159 SoCircularExtrusion(); 00160 00161 private: 00162 00163 // Implement actions 00164 00166 virtual void doAction( SoAction *action ); 00167 00169 virtual void callback( SoCallbackAction *action ); 00170 00172 virtual void rayPick( SoRayPickAction *action ); 00173 00175 virtual void getPrimitiveCount( SoGetPrimitiveCountAction *action ); 00176 00178 virtual void computeBBox( SoAction *action, SbBox3f &box, SbVec3f ¢er ); 00179 00181 virtual void computeBBox( SoAction *action, SbXfBox3d &box, SbVec3d ¢er ); 00182 00183 00184 private: 00186 static void initClass(); 00187 00189 static void exitClass(); 00190 00192 virtual void notify( SoNotList *list ); 00193 00194 private: 00196 virtual ~SoCircularExtrusion(); 00197 00199 virtual void generatePrimitives( SoAction *action ); 00200 00201 private: 00202 SoCircularExtrusionImpl* m_impl; 00203 }; 00204 00205 #endif /* _SO_CIRCEXTRSHAPE_H_ */ 00206 00207 00208