Public Types |
| typedef std::vector< std::string > | TVectorString |
| typedef std::vector< double > | TVectorDouble |
| typedef std::vector< int > | TCellIds |
typedef std::map
< MED::EGeometrieElement,
TCellIds > | TGeom2CellIds |
Public Member Functions |
| | VISU_Vtk2MedConvertor () |
| | Constructor
- Sets default output mesh name
- Sets default version of output MED file.
- Sets default ignoring fields list
- Sets default points and cells ids mapping field names.
|
| | VISU_Vtk2MedConvertor (const std::string theMEDFileName, const std::string theFirstVTKFileName) |
| | Constructor
- Sets default output mesh name
- Sets default version of output MED file.
- Sets default ignoring fields list
- Sets default points and cells ids mapping field names.
|
| | VISU_Vtk2MedConvertor (const std::string theMEDFileName, const std::string theFirstVTKFileName, const TVectorString theDataVTKFileNames) |
| | Constructor
- Sets default output mesh name
- Sets default version of output MED file.
- Sets default ignoring fields list
- Sets default points and cells ids mapping field names.
|
| void | setMEDFileName (const std::string theFileName) |
| | Sets the output MED file name.
|
| std::string | getMEDFileName () const |
| | Gets the output MED file name.
|
| void | setFirstVTKFileName (const std::string theFileName) |
| | Sets the first input vtk file name.
|
| std::string | getFirstVTKFileName () const |
| | Fets the first input vtk file name.
|
| void | setDataVTKFileNames (const TVectorString theFileNames) |
| | Sets list of vtk file names, which will be using as values on points and cells.
|
| void | getDataVTKFileNames (TVectorString &) const |
| | Gets list of vtk file names, which will be using as values on points and cells.
|
| void | setVersion (const MED::EVersion theVersion) |
| | Sets version of the output MED file MED.V2_2(is default) or MED.V2_1.
|
| MED::EVersion | getVersion () const |
| | Gets version of the output MED file MED.V2_2(is default) or MED.V2_1.
|
| void | setMeshName (const std::string theMeshName) |
| | Sets output mesh name. ("vtk2med" - default)
|
| std::string | getMeshName () const |
| | Gets output mesh name. ("vtk2med" - default)
|
| void | addToIgnoringFieldList (const std::string &theFieldName) |
| | Adds field names, which used as specific fields with ids or elements (or something else). (Default: "VISU_CELLS_MAPPER","VISU_POINTS_MAPPER","VISU_FILED")
|
| void | eraseFromIgnoringFieldList (const std::string &theFieldName) |
| | Erases field names which used as specific fields with ids or elements (or something else)
|
| const std::set< std::string > & | getIgnoringFieldList () const |
| | Gets list of field names which used as specific fields with ids or elements.
|
| void | setCellDataFieldNameIDS (const std::string &theFieldName) |
| | Sets field name with cell ids (Default - VISU_CELLS_MAPPER)
|
| const std::string & | getCellDataFieldNameIDS () const |
| | Gets field name with cell ids (Default - VISU_CELLS_MAPPER)
|
| void | setPointDataFieldNameIDS (const std::string &theFieldName) |
| | Sets field name with point ids.
|
| const std::string & | getPointDataFieldNameIDS () const |
| | Gets field name with point ids.
|
| void | setTimeStamps (const TVectorDouble &theTStamps) |
| | Sets values of time stamps If this array is not specified values of time stamps are generated automatically ( 0, 1, 2 ... )
|
| void | getTimeStamps (TVectorDouble &theTStamps) const |
| | Gets values of time stamps If this array is not specified values of time stamps are generated automatically ( 0, 1, 2 ... )
|
| int | Execute () |
| | Writes data to MED file.
|
Protected Attributes |
| TVectorString | myDataVTKFileNames |
| std::string | myMEDFileName |
| std::string | myFirstVTKFileName |
| MED::EVersion | myVersion |
| std::string | myMeshName |
| std::set< std::string > | myIgnoringFieldList |
| std::string | myCellDataFieldNameIDS |
| std::string | myPointDataFieldNameIDS |
| TVectorDouble | myTStamps |
Private Member Functions |
| void | GetIdsOfCellsOfType (vtkDataSet *theInput, const int type, vtkIntArray *array) |
| | Retrieves identifiers of cells from input data set corresponding to given type.
|
| int | Geometry2MED (vtkDataSet *aInput, MED::PWrapper myMed, MED::PMeshInfo aMeshInfo, TGeom2CellIds &outGeom2CellIdMap) |
| | Converts geometry to med (private auxiliary method)
|
| int | Data2MED (std::vector< vtkDataSet * > theListForAdd, MED::PWrapper myMed, MED::PMeshInfo theMeshInfo, TGeom2CellIds &theGeom2CellIdMap) |
| | Converts data to med (private auxiliary method)
|
| int | CreateElements (vtkDataSet *theInput, MED::PMeshInfo theMeshInfo, MED::PWrapper theMed, vtkIntArray *theCellsMapper, MED::EEntiteMaillage theEntity, int theVTKGeom, int nbPointsInGeom, std::vector< int > &theNumberingConvertor, TGeom2CellIds &theGeom2CellIdMap) |
| | Creates elements (private auxiliary method)
|
| int | CreatePolygons (vtkDataSet *theInput, MED::PMeshInfo theMeshInfo, MED::PWrapper theMed, vtkIntArray *theCellsMapper, MED::EEntiteMaillage theEntity, TGeom2CellIds &theGeom2CellIdMap) |
| | Creates polygons (private auxiliary method)
|
| int | CreatePolyedres (vtkDataSet *theInput, MED::PMeshInfo theMeshInfo, MED::PWrapper theMed, vtkIntArray *theCellsMapper, MED::EEntiteMaillage theEntity, TGeom2CellIds &theGeom2CellIdMap) |
| | Creates polyedres (private auxiliary method)
|
The VISU_Vtk2MedConvertor interface allows us to create the MED file according to VTK files in next ways:
- Extract geometry and fields from one VTK file.
- Extract geometry and fields from first VTK file and fields from others VTK files (geometry ignoring). Also the fields which have same names join into corresponding fields with different time stamp