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 00024 #ifndef _PO_MESH2D_ 00025 #define _PO_MESH2D_ 00026 00027 #include <Inventor/fields/SoSFShort.h> 00028 00029 #include <MeshViz/3Ddata/PoMesh.h> 00030 #include <MeshViz/3Ddata/Po3DdataPrivate.h> 00031 00032 class PbMesh2D; 00033 class PbCartesianGrid2D; 00034 class PbParalCartesianGrid2D; 00035 class PbRegularCartesianGrid2D; 00036 class PbPolarGrid2D; 00037 class PbTriangleMesh2D; 00038 class PbQuadrangleMesh2D; 00039 class PbIndexedMesh2D; 00040 00053 class PoMesh2D : public PoMesh { 00054 00055 SO_KIT_HEADER(PoMesh2D); 00056 00057 00058 public: 00059 00060 00061 00062 /* Fields */ 00063 00069 SoSFShort zValuesIndex; 00070 00074 void setMesh(PbMesh2D *mesh); 00075 00079 const PbMesh2D * getMesh() const; 00080 00081 /*----------------------------------------------------------------------------*/ 00082 00083 00084 private: 00085 static void initClass(); 00086 static void exitClass() ; 00087 00088 void makeSoCoordinate3(const float *z); 00089 00090 private: 00091 PoMesh2D(); 00092 // Constructor 00093 00094 virtual ~PoMesh2D(); 00095 // Destructor 00096 00097 virtual SbBool setUpConnections(SbBool onOff, SbBool doItAlways = FALSE); 00098 virtual void setDefaultOnNonWritingFields(); 00099 virtual void basicObjectChange(PbBase *basicObj); 00100 virtual void preRebuild(); 00101 00102 const PbMesh2D *m_mesh2D; // mesh used by all derived Po classes 00103 /*----------------------------------------------------------------------------*/ 00104 private: 00105 PbMesh2D *m_mesh2DSet; // mesh set by the setMesh method 00106 00107 // Sensors 00108 FieldSensorList m_fieldSensorList; 00109 00110 // List of fields defined in this class 00111 SoFieldList m_fieldList; 00112 }; 00113 00114 /*----------------------------------------------------------------------------*/ 00115 00116 #endif /* _PO_MESH2D_ */ 00117 00118