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 _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 MESHIVIZDM_API MoMeshBaseRepresentation : public MoActionNode { 00051 00052 SO_NODE_HEADER(MoMeshBaseRepresentation) ; 00053 00054 public: 00055 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 SoNode * getChild(int index) const ; 00075 virtual SoChildList *getChildren() const {return m_childList; } 00076 00077 virtual void clear(); 00078 00079 // indicates if any fields has been modified (linked to a node sensor) 00080 bool isModified() const; 00081 00082 private: 00083 // Necessary for having its children traversed. Must be private to hide them. 00084 // Implements a hidden list of children 00085 SoChildList *m_childList; 00086 00087 // Internal mechanism used to detect that the node has changed. 00088 MxNodeSensor* m_nodeSensor; 00089 00090 }; 00091 00092 #ifdef _WIN32 00093 #pragma warning(pop) 00094 #endif 00095 00096 #endif /* _MO_MESHBASEREPRESENTATION_ */ 00097 00098 00099 00100