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-2014 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 00201 class SoEdgeFlag : public SoNode 00202 { 00203 SO_NODE_HEADER(SoEdgeFlag); 00204 00205 public: 00206 // Edges can be marked using an int array. The values of the array determinate the edges to mark. 00207 // These values are interpreted differently by the different shapes. 00208 SoMFInt32 edgeMarked; 00209 00214 SoMFInt32 edgeUnmarked; 00215 00219 SoEdgeFlag(); 00220 00221 private: 00222 virtual void doAction(SoAction *action); 00223 virtual void getBoundingBox(SoGetBoundingBoxAction *action); 00224 virtual void callback(SoCallbackAction *action); 00225 virtual void pick(SoPickAction *action); 00226 virtual void getPrimitiveCount(SoGetPrimitiveCountAction *action); 00227 virtual void bevel(SoBevelAction *action); 00228 00229 private: 00230 static void initClass(); 00231 static void exitClass(); 00232 00233 private: 00234 virtual ~SoEdgeFlag(); 00235 }; 00236 00237 #endif 00238 00239