Version: 6.3.1
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes

VISU_Convertor Class Reference

This class defines interface to read VTK interpretation of MED entities. More...

#include <VISU_Convertor.hxx>

Inheritance diagram for VISU_Convertor:
Inheritance graph

Public Member Functions

virtual const std::stringGetName ()
 Get brief name of the corresponding source MED file.
virtual int IsDone () const
 Let known whether the source MED file parsed or not.
virtual VISU_ConvertorBuild ()=0
 This method perform first parsing of MED file to get known what MED entities are pressent in it.
virtual VISU_ConvertorBuildEntities ()=0
 This method perform first parsing of MED file to get known what MED mesh entities are pressent in it.
virtual VISU_ConvertorBuildFields ()=0
 This method perform first parsing of MED file to get known what MED fields are pressent in it.
virtual VISU_ConvertorBuildMinMax ()=0
 This min /max calculation over existing MED fields.
virtual VISU_ConvertorBuildGroups ()=0
 This method perform first parsing of MED file to get known what MED groups are pressent in it.
virtual const VISU::TMeshMapGetMeshMap ()
 This method allow to get known what MED entities are present is the MED file.
virtual size_t GetSize ()=0
 Get amount of memory to build VTK representations for all existing MED entities.
virtual VISU::PNamedIDMapper GetMeshOnEntity (const std::string &theMeshName, const VISU::TEntity &theEntity)=0
 Get mesh for corresponding MED ENTITY.
virtual size_t GetMeshOnEntitySize (const std::string &theMeshName, const VISU::TEntity &theEntity)=0
 Get amount of memory to build mesh for corresponding MED ENTITY.
virtual
VISU::PUnstructuredGridIDMapper 
GetFamilyOnEntity (const std::string &theMeshName, const VISU::TEntity &theEntity, const std::string &theFamilyName)=0
 Get mesh for corresponding MED FAMILY.
virtual size_t GetFamilyOnEntitySize (const std::string &theMeshName, const VISU::TEntity &theEntity, const std::string &theFamilyName)=0
 Get amount of memory to build mesh for corresponding MED FAMILY.
virtual
VISU::PUnstructuredGridIDMapper 
GetMeshOnGroup (const std::string &theMeshName, const std::string &theGroupName)=0
 Get mesh for corresponding MED GROUP.
virtual size_t GetMeshOnGroupSize (const std::string &theMeshName, const std::string &theGroupName)=0
 Get amount of memory to build mesh for corresponding MED GROUP.
virtual
VISU::PUnstructuredGridIDMapper 
GetTimeStampOnMesh (const std::string &theMeshName, const VISU::TEntity &theEntity, const std::string &theFieldName, int theTimeStampNumber)=0
 Get mesh with attached values for corresponding MED TIMESTAMP.
virtual VISU::PGaussPtsIDMapper GetTimeStampOnGaussPts (const std::string &theMeshName, const VISU::TEntity &theEntity, const std::string &theFieldName, int theTimeStampNumber)=0
 Get Gauss Points mesh with attached values for corresponding MED TIMESTAMP.
virtual size_t GetTimeStampOnMeshSize (const std::string &theMeshName, const VISU::TEntity &theEntity, const std::string &theFieldName, int theTimeStampNumber, bool &theIsEstimated)=0
 Get amount of memory to build vtkDataSet for corresponding MED TIMESTAMP on mesh.
virtual size_t GetTimeStampOnGaussPtsSize (const std::string &theMeshName, const VISU::TEntity &theEntity, const std::string &theFieldName, int theTimeStampNumber, bool &theIsEstimated)=0
 Get amount of memory to build vtkDataSet for corresponding MED TIMESTAMP on Gauss Points.
virtual size_t GetFieldOnMeshSize (const std::string &theMeshName, const VISU::TEntity &theEntity, const std::string &theFieldName)=0
 Get amount of memory to build all MED TIMESTAMPS for corresponding MED FIELD.
virtual const VISU::PField GetField (const std::string &theMeshName, VISU::TEntity theEntity, const std::string &theFieldName)=0
 Find MED FIELD container.
virtual const VISU::PValForTime GetTimeStamp (const std::string &theMeshName, const VISU::TEntity &theEntity, const std::string &theFieldName, int theTimeStampNumber)=0
 Find MED TIMESTAMP container.

Static Public Member Functions

static std::string GenerateName (const VISU::TTime &aTime)
 Allow to generate pretty name for MED TIMESTAMP.
static std::string GenerateName (const std::string &theName, unsigned int theTimeId)

Protected Member Functions

 VISU_Convertor ()

Protected Attributes

std::string myName
VISU::TMeshMap myMeshMap
int myIsDone

Detailed Description

It is the main class of the VISU CONVERTER package. Following MED entities can be retrived from any MED file:


Constructor & Destructor Documentation

VISU_Convertor::VISU_Convertor ( ) [protected]

Member Function Documentation

const std::string & VISU_Convertor::GetName ( ) [virtual]
int VISU_Convertor::IsDone ( ) const [virtual]
virtual VISU_Convertor* VISU_Convertor.Build ( ) [pure virtual]
virtual VISU_Convertor* VISU_Convertor.BuildEntities ( ) [pure virtual]

Implemented in VISU_Convertor_impl, and VISU_MedConvertor.

virtual VISU_Convertor* VISU_Convertor.BuildFields ( ) [pure virtual]

Implemented in VISU_Convertor_impl, and VISU_MedConvertor.

virtual VISU_Convertor* VISU_Convertor.BuildMinMax ( ) [pure virtual]

Implemented in VISU_Convertor_impl, and VISU_MedConvertor.

virtual VISU_Convertor* VISU_Convertor.BuildGroups ( ) [pure virtual]

Implemented in VISU_Convertor_impl, and VISU_MedConvertor.

const VISU::TMeshMap & VISU_Convertor::GetMeshMap ( ) [virtual]
virtual size_t VISU_Convertor.GetSize ( ) [pure virtual]

Implemented in VISU_Convertor_impl.

virtual VISU::PNamedIDMapper VISU_Convertor.GetMeshOnEntity ( const std::string theMeshName,
const VISU::TEntity theEntity 
) [pure virtual]

Implemented in VISU_Convertor_impl.

virtual size_t VISU_Convertor.GetMeshOnEntitySize ( const std::string theMeshName,
const VISU::TEntity theEntity 
) [pure virtual]

Implemented in VISU_Convertor_impl.

virtual VISU::PUnstructuredGridIDMapper VISU_Convertor.GetFamilyOnEntity ( const std::string theMeshName,
const VISU::TEntity theEntity,
const std::string theFamilyName 
) [pure virtual]

Implemented in VISU_Convertor_impl.

virtual size_t VISU_Convertor.GetFamilyOnEntitySize ( const std::string theMeshName,
const VISU::TEntity theEntity,
const std::string theFamilyName 
) [pure virtual]

Implemented in VISU_Convertor_impl.

virtual VISU::PUnstructuredGridIDMapper VISU_Convertor.GetMeshOnGroup ( const std::string theMeshName,
const std::string theGroupName 
) [pure virtual]

Implemented in VISU_Convertor_impl.

virtual size_t VISU_Convertor.GetMeshOnGroupSize ( const std::string theMeshName,
const std::string theGroupName 
) [pure virtual]

Implemented in VISU_Convertor_impl.

virtual VISU::PUnstructuredGridIDMapper VISU_Convertor.GetTimeStampOnMesh ( const std::string theMeshName,
const VISU::TEntity theEntity,
const std::string theFieldName,
int  theTimeStampNumber 
) [pure virtual]

Implemented in VISU_Convertor_impl.

virtual VISU::PGaussPtsIDMapper VISU_Convertor.GetTimeStampOnGaussPts ( const std::string theMeshName,
const VISU::TEntity theEntity,
const std::string theFieldName,
int  theTimeStampNumber 
) [pure virtual]

Implemented in VISU_Convertor_impl.

virtual size_t VISU_Convertor.GetTimeStampOnMeshSize ( const std::string theMeshName,
const VISU::TEntity theEntity,
const std::string theFieldName,
int  theTimeStampNumber,
bool &  theIsEstimated 
) [pure virtual]

Implemented in VISU_Convertor_impl.

virtual size_t VISU_Convertor.GetTimeStampOnGaussPtsSize ( const std::string theMeshName,
const VISU::TEntity theEntity,
const std::string theFieldName,
int  theTimeStampNumber,
bool &  theIsEstimated 
) [pure virtual]

Implemented in VISU_Convertor_impl.

virtual size_t VISU_Convertor.GetFieldOnMeshSize ( const std::string theMeshName,
const VISU::TEntity theEntity,
const std::string theFieldName 
) [pure virtual]

Implemented in VISU_Convertor_impl.

virtual const VISU::PField VISU_Convertor.GetField ( const std::string theMeshName,
VISU::TEntity  theEntity,
const std::string theFieldName 
) [pure virtual]

Implemented in VISU_Convertor_impl.

virtual const VISU::PValForTime VISU_Convertor.GetTimeStamp ( const std::string theMeshName,
const VISU::TEntity theEntity,
const std::string theFieldName,
int  theTimeStampNumber 
) [pure virtual]

Implemented in VISU_Convertor_impl.

std::string VISU_Convertor::GenerateName ( const VISU::TTime aTime) [static]
std::string VISU_Convertor::GenerateName ( const std::string theName,
unsigned int  theTimeId 
) [static]

Field Documentation

int VISU_Convertor.myIsDone [protected]
Copyright © 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS