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_ELEMENT 00024 #define _SO_EDGE_FLAG_ELEMENT 00025 00026 #include <Inventor/fields/SoMFInt32.h> 00027 #include <Inventor/elements/SoReplacedElement.h> 00028 00040 SoEXTENDER_Documented class SoEdgeFlagElement : public SoReplacedElement { 00041 00042 SO_ELEMENT_HEADER(SoEdgeFlagElement); 00043 00044 public: 00048 static void setMarked(SoState *state, SoNode *node, 00049 int32_t numFlags, const int32_t *flags); 00050 00054 static void setUnmarked(SoState *state, SoNode *node, 00055 int32_t numFlags, const int32_t *flags); 00056 00060 static int getDefault() {return -1;} 00061 00065 static const SoEdgeFlagElement * getInstance(SoState *state) 00066 {return getConstElement<SoEdgeFlagElement>(state);} 00067 00071 int32_t getNumMarked() const { return numMarked; } 00075 int32_t getNumUnmarked() const { return numUnmarked; } 00076 00082 const int32_t * getMarked() const { return marked; } 00088 const int32_t * getUnmarked() const { return unmarked; } 00089 00093 virtual void print(FILE *fp) const; 00094 00095 private: 00096 00098 virtual void init(SoState *state); 00099 00100 private: 00101 // Initializes the SoEdgeFlagElement class 00102 static void initClass(); 00103 static void exitClass(); 00104 00105 static void reInit(SoState *, SoNode *); 00106 00107 private: 00108 int32_t numMarked, numUnmarked; 00109 const int32_t * marked; 00110 const int32_t * unmarked; 00111 00112 static int32_t markedDefault[1] ; 00113 static int32_t unmarkedDefault[1] ; 00114 00115 virtual ~SoEdgeFlagElement(); 00116 00117 private: 00118 void _init(); 00119 }; 00120 00121 #endif /* _SO_EDGE_FLAG_ELEMENT */ 00122 00123 00124