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_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 00080 class SoVertexFlag : public SoNode 00081 { 00082 SO_NODE_HEADER(SoVertexFlag); 00083 00084 public: 00085 // Fields 00086 // Vertices can be marked using an int array. The values of the array determinate the vertices to mark. 00087 // These values are interpreted differently by the different shapes. 00088 SoMFInt32 vertexMarked; 00089 00095 SoMFInt32 vertexUnmarked; 00096 00100 SoVertexFlag(); 00101 00102 private: 00103 virtual void doAction(SoAction *action); 00104 #ifdef NEEDS_MARKS_FOR_GL 00105 virtual void GLRender(SoGLRenderAction *action); 00106 #endif /* NEEDS_MARKS_FOR_GL */ 00107 virtual void getBoundingBox(SoGetBoundingBoxAction *action); 00108 virtual void callback(SoCallbackAction *action); 00109 virtual void pick(SoPickAction *action); 00110 virtual void getPrimitiveCount(SoGetPrimitiveCountAction *action); 00111 virtual void bevel(SoBevelAction *action); 00112 00113 private: 00114 static void initClass(); 00115 static void exitClass(); 00116 00117 private: 00118 virtual ~SoVertexFlag(); 00119 }; 00120 00121 #endif 00122 00123