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-2022 BY FEI S.A.S, *** 00017 *** BORDEAUX, FRANCE *** 00018 *** ALL RIGHTS RESERVED *** 00019 **=======================================================================*/ 00020 /*======================================================================= 00021 ** Author : VSG (MMM YYYY) 00022 **=======================================================================*/ 00023 #ifndef _MO_MESHBASEREPRESENTATION_ 00024 #define _MO_MESHBASEREPRESENTATION_ 00025 00026 #include <Inventor/nodes/SoNode.h> 00027 #include <Inventor/nodes/SoSeparator.h> 00028 00029 #include <Inventor/misc/SoChildList.h> 00030 #include <MeshVizXLM/mapping/nodes/MoActionNode.h> 00031 00032 #ifdef _WIN32 00033 #pragma warning(push) 00034 #pragma warning(disable:4251) 00035 #endif 00036 00037 class MxNodeSensor; 00038 00050 class MESHVIZXLM_DMAP_API MoMeshBaseRepresentation : public MoActionNode { 00051 00052 SO_NODE_HEADER(MoMeshBaseRepresentation) ; 00053 00054 public: 00055 virtual SbBool affectsState() const; 00056 00057 private: 00058 static void initClass() ; 00059 static void exitClass() ; 00060 00061 virtual bool isSynchronizingContentOnly() { return TRUE; } 00062 00063 private: 00064 virtual void write(SoWriteAction *action); 00065 virtual void doAction(SoAction *action); 00066 00067 private: 00068 MoMeshBaseRepresentation() ; 00069 virtual ~MoMeshBaseRepresentation() ; 00070 00071 // The separator containing the generated scene graph 00072 SoSeparator *m_group; 00073 00074 virtual SoChildList *getChildren() const { return m_childList; } 00075 00076 virtual void clear(); 00077 00078 // indicates if any fields has been modified (linked to a node sensor) 00079 bool isModified() const; 00080 00081 private: 00082 // Implements a hidden list of children 00083 SoChildList *m_childList; 00084 00085 // Internal mechanism used to detect that the node has changed. 00086 MxNodeSensor* m_nodeSensor; 00087 00088 }; 00089 00090 #ifdef _WIN32 00091 #pragma warning(pop) 00092 #endif 00093 00094 #endif /* _MO_MESHBASEREPRESENTATION_ */ 00095 00096 00097 00098