00001 /*======================================================================= 00002 *** THE CONTENT OF THIS WORK IS PROPRIETARY TO FEI S.A.S, (FEI S.A.S.), *** 00003 *** AND IS DISTRIBUTED UNDER A LICENSE AGREEMENT. *** 00004 *** *** 00005 *** REPRODUCTION, DISCLOSURE, OR USE, IN WHOLE OR IN PART, OTHER THAN AS *** 00006 *** SPECIFIED IN THE LICENSE ARE NOT TO BE UNDERTAKEN EXCEPT WITH PRIOR *** 00007 *** WRITTEN AUTHORIZATION OF FEI S.A.S. *** 00008 *** *** 00009 *** RESTRICTED RIGHTS LEGEND *** 00010 *** USE, DUPLICATION, OR DISCLOSURE BY THE GOVERNMENT OF THE CONTENT OF THIS *** 00011 *** WORK OR RELATED DOCUMENTATION IS SUBJECT TO RESTRICTIONS AS SET FORTH IN *** 00012 *** SUBPARAGRAPH (C)(1) OF THE COMMERCIAL COMPUTER SOFTWARE RESTRICTED RIGHT *** 00013 *** CLAUSE AT FAR 52.227-19 OR SUBPARAGRAPH (C)(1)(II) OF THE RIGHTS IN *** 00014 *** TECHNICAL DATA AND COMPUTER SOFTWARE CLAUSE AT DFARS 52.227-7013. *** 00015 *** *** 00016 *** COPYRIGHT (C) 1996-2020 BY FEI S.A.S, *** 00017 *** BORDEAUX, FRANCE *** 00018 *** ALL RIGHTS RESERVED *** 00019 **=======================================================================*/ 00020 /*======================================================================= 00021 ** Author : VSG (MMM YYYY) 00022 **=======================================================================*/ 00023 #ifndef _SO_EDGE_FLAG 00024 #define _SO_EDGE_FLAG 00025 00026 #include <Inventor/fields/SoMFInt32.h> 00027 #include <Inventor/nodes/SoNode.h> 00028 00029 class SoBevelAction; 00030 00032 // 00033 // Class: SoEdgeFlag 00034 // 00035 // Node used to mark or unmark edges in the different shapes. 00036 // 00038 00202 class SoEdgeFlag : public SoNode 00203 { 00204 SO_NODE_HEADER(SoEdgeFlag); 00205 00206 public: 00207 // Edges can be marked using an int array. The values of the array determinate the edges to mark. 00208 // These values are interpreted differently by the different shapes. 00209 SoMFInt32 edgeMarked; 00210 00215 SoMFInt32 edgeUnmarked; 00216 00220 SoEdgeFlag(); 00221 00222 private: 00223 virtual void doAction(SoAction *action); 00224 virtual void getBoundingBox(SoGetBoundingBoxAction *action); 00225 virtual void callback(SoCallbackAction *action); 00226 virtual void pick(SoPickAction *action); 00227 virtual void getPrimitiveCount(SoGetPrimitiveCountAction *action); 00228 virtual void bevel(SoBevelAction *action); 00229 00230 private: 00231 static void initClass(); 00232 static void exitClass(); 00233 00234 private: 00235 virtual ~SoEdgeFlag(); 00236 }; 00237 00238 #endif 00239 00240