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_VERTEX_FLAG 00024 #define _SO_VERTEX_FLAG 00025 00026 #include <Inventor/nodes/SoNode.h> 00027 #include <Inventor/fields/SoMFInt32.h> 00028 00029 class SoBevelAction; 00030 00032 // 00033 // Class: SoVertexFlag 00034 // 00035 // Node used to mark or unmark vertices in the different shapes. 00036 // 00038 00081 class SoVertexFlag : public SoNode 00082 { 00083 SO_NODE_HEADER(SoVertexFlag); 00084 00085 public: 00086 // Fields 00087 // Vertices can be marked using an int array. The values of the array determinate the vertices to mark. 00088 // These values are interpreted differently by the different shapes. 00089 SoMFInt32 vertexMarked; 00090 00096 SoMFInt32 vertexUnmarked; 00097 00101 SoVertexFlag(); 00102 00103 private: 00104 virtual void doAction(SoAction *action); 00105 #ifdef NEEDS_MARKS_FOR_GL 00106 virtual void GLRender(SoGLRenderAction *action); 00107 #endif /* NEEDS_MARKS_FOR_GL */ 00108 virtual void getBoundingBox(SoGetBoundingBoxAction *action); 00109 virtual void callback(SoCallbackAction *action); 00110 virtual void pick(SoPickAction *action); 00111 virtual void getPrimitiveCount(SoGetPrimitiveCountAction *action); 00112 virtual void bevel(SoBevelAction *action); 00113 00114 private: 00115 static void initClass(); 00116 static void exitClass(); 00117 00118 private: 00119 virtual ~SoVertexFlag(); 00120 }; 00121 00122 #endif 00123 00124