VISU_Convertor_impl Class Reference

This class perfroms mapping of intermediate data strucutres into corresponding VTK representation. More...

#include <VISU_Convertor_impl.hxx>

Inheritance diagram for VISU_Convertor_impl:

Inheritance graph

Public Types

typedef VISU::TVTKOutput TOutput
 Defines what subtype of vtkDataSet is used for MED to VTK mapping.

Public Member Functions

 VISU_Convertor_impl ()
virtual ~VISU_Convertor_impl ()
virtual VISU_ConvertorBuild ()
 Just to define default behaviour.
virtual VISU_ConvertorBuildEntities ()
 Just to define default behaviour.
virtual VISU_ConvertorBuildFields ()
 Just to define default behaviour.
virtual VISU_ConvertorBuildMinMax ()
 Just to define default behaviour.
virtual VISU_ConvertorBuildGroups ()
 Just to define default behaviour.
virtual vtkFloatingPointType GetSize ()
 Implemention of the VISU_Convertor.GetSize.
virtual VISU::PNamedIDMapper GetMeshOnEntity (const std::string &theMeshName, const VISU::TEntity &theEntity)
 Implemention of the VISU_Convertor.GetMeshOnEntity.
virtual vtkFloatingPointType GetMeshOnEntitySize (const std::string &theMeshName, const VISU::TEntity &theEntity)
 Implemention of the VISU_Convertor.GetMeshOnEntitySize.
virtual VISU::PIDMapper GetFamilyOnEntity (const std::string &theMeshName, const VISU::TEntity &theEntity, const std::string &theFamilyName)
 Implemention of the VISU_Convertor.GetFamilyOnEntity.
virtual vtkFloatingPointType GetFamilyOnEntitySize (const std::string &theMeshName, const VISU::TEntity &theEntity, const std::string &theFamilyName)
 Implemention of the VISU_Convertor.GetFamilyOnEntitySize.
virtual VISU::PIDMapper GetMeshOnGroup (const std::string &theMeshName, const std::string &theGroupName)
 Implemention of the VISU_Convertor.GetMeshOnGroup.
virtual vtkFloatingPointType GetMeshOnGroupSize (const std::string &theMeshName, const std::string &theGroupName)
 Implemention of the VISU_Convertor.GetMeshOnGroupSize.
virtual VISU::PIDMapper GetTimeStampOnMesh (const std::string &theMeshName, const VISU::TEntity &theEntity, const std::string &theFieldName, int theStampsNum)
 Implemention of the VISU_Convertor.GetTimeStampOnMesh.
virtual vtkFloatingPointType GetTimeStampSize (const std::string &theMeshName, const VISU::TEntity &theEntity, const std::string &theFieldName, int theStampsNum)
 Implemention of the VISU_Convertor.GetTimeStampSize.
virtual VISU::PGaussPtsIDMapper GetTimeStampOnGaussPts (const std::string &theMeshName, const VISU::TEntity &theEntity, const std::string &theFieldName, int theStampsNum)
 Implemention of the VISU_Convertor.GetTimeStampOnGaussPts.
virtual vtkFloatingPointType GetFieldOnMeshSize (const std::string &theMeshName, const VISU::TEntity &theEntity, const std::string &theFieldName)
 Implemention of the VISU_Convertor.GetFieldOnMeshSize.
virtual const VISU::PField GetField (const std::string &theMeshName, VISU::TEntity theEntity, const std::string &theFieldName)
 Implemention of the VISU_Convertor.GetField.
virtual const VISU::PValForTime GetTimeStamp (const std::string &theMeshName, const VISU::TEntity &theEntity, const std::string &theFieldName, int theStampsNum)
 Implemention of the VISU_Convertor.GetTimeStamp.
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 const VISU::TMeshMapGetMeshMap ()
 This method allow to get known what MED entities are present is the MED file.

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 Types

typedef boost::tuple< VISU::PMeshImpl,
VISU::PMeshOnEntityImpl
TFindMeshOnEntity
 An utility method to find TMeshOnEntity by name of its parent mesh and entity.
typedef boost::tuple< VISU::PMeshImpl,
VISU::PMeshOnEntityImpl,
VISU::PFamilyImpl
TFindFamilyOnEntity
 An utility method to find TFamily by name of its parent mesh, corresponding entity and its name.
typedef boost::tuple< VISU::PMeshImpl,
VISU::PGroupImpl
TFindMeshOnGroup
 An utility method to find Group by name of its parent mesh and its name.
typedef boost::tuple< VISU::PMeshImpl,
VISU::PMeshOnEntityImpl,
VISU::PMeshOnEntityImpl,
VISU::PFieldImpl
TFindField
 An utility method to find TField by name of its parent mesh, corresponding entity and its name.
typedef boost::tuple< VISU::PMeshImpl,
VISU::PMeshOnEntityImpl,
VISU::PMeshOnEntityImpl,
VISU::PFieldImpl, VISU::PValForTimeImpl
TFindTimeStamp
 An utility method to find TTimeStamp by name of its parent mesh, corresponding entity, field name and its number.

Protected Member Functions

VISU::PMeshImpl FindMesh (const std::string &theMeshName)
 An utility method to find TMesh by its name.
TFindMeshOnEntity FindMeshOnEntity (const std::string &theMeshName, const VISU::TEntity &theEntity, bool checkExists=false)
TFindFamilyOnEntity FindFamilyOnEntity (const std::string &theMeshName, const VISU::TEntity &theEntity, const std::string &theFamilyName)
TFindMeshOnGroup FindMeshOnGroup (const std::string &theMeshName, const std::string &theGroupName)
TFindField FindField (const std::string &theMeshName, const VISU::TEntity &theEntity, const std::string &theFieldName)
TFindTimeStamp FindTimeStamp (const std::string &theMeshName, const VISU::TEntity &theEntity, const std::string &theFieldName, int theStampsNum)
VISU::TVTKOutputGetTimeStampOnProfile (const VISU::PMeshImpl &theMesh, const VISU::PMeshOnEntityImpl &theMeshOnEntity, const VISU::PFieldImpl &theField, const VISU::PValForTimeImpl &theValForTime, const VISU::PIDCommonCellsFilter &theIDMapperFilter, const VISU::PProfileImpl &theProfile, const VISU::TEntity &theEntity)
void GetTimeStampOnNodalProfile (const VISU::PMeshImpl &theMesh, const VISU::PIDCommonCellsFilter &theIDMapperFilter, const VISU::PFieldImpl &theField, const VISU::PValForTimeImpl &theValForTime, const VISU::TEntity &theEntity)
virtual int LoadMeshOnEntity (VISU::PMeshImpl theMesh, VISU::PMeshOnEntityImpl theMeshOnEntity)=0
 To fill intermeiate representation of TMeshOnEntity from a MED source.
virtual int LoadFamilyOnEntity (VISU::PMeshImpl theMesh, VISU::PMeshOnEntityImpl theMeshOnEntity, VISU::PFamilyImpl theFamily)=0
 To fill intermeiate representation of TFamily from a MED source.
virtual int LoadMeshOnGroup (VISU::PMeshImpl theMesh, const VISU::TFamilySet &theFamilySet)=0
 To fill intermeiate representation of TGroup from a MED source.
virtual int LoadValForTimeOnMesh (VISU::PMeshImpl theMesh, VISU::PMeshOnEntityImpl theMeshOnEntity, VISU::PFieldImpl theField, VISU::PValForTimeImpl theValForTime)=0
 To fill intermeiate representation of TValForTime for ordinary mesh from a MED source.
virtual int LoadValForTimeOnGaussPts (VISU::PMeshImpl theMesh, VISU::PMeshOnEntityImpl theMeshOnEntity, VISU::PFieldImpl theField, VISU::PValForTimeImpl theValForTime)=0
 To fill intermeiate representation of TValForTime for mesh on Gauss Points from a MED source.

Protected Attributes

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

Detailed Description

It implements VISU_Convertor public interface and declare new pure virtual functions to fill its intermediate data structure from a MED source


Member Typedef Documentation

typedef boost::tuple<VISU::PMeshImpl,VISU::PMeshOnEntityImpl> VISU_Convertor_impl.TFindMeshOnEntity [protected]
 

typedef boost::tuple<VISU::PMeshImpl,VISU::PMeshOnEntityImpl,VISU::PFamilyImpl> VISU_Convertor_impl.TFindFamilyOnEntity [protected]
 

typedef boost::tuple<VISU::PMeshImpl,VISU::PGroupImpl> VISU_Convertor_impl.TFindMeshOnGroup [protected]
 

typedef boost::tuple<VISU::PMeshImpl, VISU::PMeshOnEntityImpl, VISU::PMeshOnEntityImpl, VISU::PFieldImpl> VISU_Convertor_impl.TFindField [protected]
 

typedef boost::tuple<VISU::PMeshImpl, VISU::PMeshOnEntityImpl, VISU::PMeshOnEntityImpl, VISU::PFieldImpl, VISU::PValForTimeImpl> VISU_Convertor_impl.TFindTimeStamp [protected]
 

typedef VISU::TVTKOutput VISU_Convertor.TOutput [inherited]
 


Constructor & Destructor Documentation

VISU_Convertor_impl::VISU_Convertor_impl  ) 
 

VISU_Convertor_impl::~VISU_Convertor_impl  )  [virtual]
 


Member Function Documentation

VISU_Convertor * VISU_Convertor_impl::Build  )  [virtual]
 

Implements VISU_Convertor.

Reimplemented in VISU_MEDConvertor, and VISU_MEDFieldConvertor.

VISU_Convertor * VISU_Convertor_impl::BuildEntities  )  [virtual]
 

Implements VISU_Convertor.

Reimplemented in VISU_MedConvertor.

VISU_Convertor * VISU_Convertor_impl::BuildFields  )  [virtual]
 

Implements VISU_Convertor.

Reimplemented in VISU_MedConvertor.

VISU_Convertor * VISU_Convertor_impl::BuildMinMax  )  [virtual]
 

Implements VISU_Convertor.

Reimplemented in VISU_MedConvertor.

VISU_Convertor * VISU_Convertor_impl::BuildGroups  )  [virtual]
 

Implements VISU_Convertor.

Reimplemented in VISU_MedConvertor.

vtkFloatingPointType VISU_Convertor_impl::GetSize  )  [virtual]
 

Implements VISU_Convertor.

VISU::PNamedIDMapper VISU_Convertor_impl::GetMeshOnEntity const std::string theMeshName,
const VISU::TEntity theEntity
[virtual]
 

Implements VISU_Convertor.

vtkFloatingPointType VISU_Convertor_impl::GetMeshOnEntitySize const std::string theMeshName,
const VISU::TEntity theEntity
[virtual]
 

Implements VISU_Convertor.

VISU::PIDMapper VISU_Convertor_impl::GetFamilyOnEntity const std::string theMeshName,
const VISU::TEntity theEntity,
const std::string theFamilyName
[virtual]
 

Implements VISU_Convertor.

vtkFloatingPointType VISU_Convertor_impl::GetFamilyOnEntitySize const std::string theMeshName,
const VISU::TEntity theEntity,
const std::string theFamilyName
[virtual]
 

Implements VISU_Convertor.

VISU::PIDMapper VISU_Convertor_impl::GetMeshOnGroup const std::string theMeshName,
const std::string theGroupName
[virtual]
 

Implements VISU_Convertor.

vtkFloatingPointType VISU_Convertor_impl::GetMeshOnGroupSize const std::string theMeshName,
const std::string theGroupName
[virtual]
 

Implements VISU_Convertor.

VISU::PIDMapper VISU_Convertor_impl::GetTimeStampOnMesh const std::string theMeshName,
const VISU::TEntity theEntity,
const std::string theFieldName,
int  theStampsNum
[virtual]
 

Implements VISU_Convertor.

vtkFloatingPointType VISU_Convertor_impl::GetTimeStampSize const std::string theMeshName,
const VISU::TEntity theEntity,
const std::string theFieldName,
int  theStampsNum
[virtual]
 

Implements VISU_Convertor.

VISU::PGaussPtsIDMapper VISU_Convertor_impl::GetTimeStampOnGaussPts const std::string theMeshName,
const VISU::TEntity theEntity,
const std::string theFieldName,
int  theStampsNum
[virtual]
 

Implements VISU_Convertor.

vtkFloatingPointType VISU_Convertor_impl::GetFieldOnMeshSize const std::string theMeshName,
const VISU::TEntity theEntity,
const std::string theFieldName
[virtual]
 

Implements VISU_Convertor.

const VISU::PField VISU_Convertor_impl::GetField const std::string theMeshName,
VISU::TEntity  theEntity,
const std::string theFieldName
[virtual]
 

Implements VISU_Convertor.

const VISU::PValForTime VISU_Convertor_impl::GetTimeStamp const std::string theMeshName,
const VISU::TEntity theEntity,
const std::string theFieldName,
int  theStampsNum
[virtual]
 

Implements VISU_Convertor.

VISU::PMeshImpl VISU_Convertor_impl::FindMesh const std::string theMeshName  )  [protected]
 

VISU_Convertor_impl::TFindMeshOnEntity VISU_Convertor_impl::FindMeshOnEntity const std::string theMeshName,
const VISU::TEntity theEntity,
bool  checkExists = false
[protected]
 

VISU_Convertor_impl::TFindFamilyOnEntity VISU_Convertor_impl::FindFamilyOnEntity const std::string theMeshName,
const VISU::TEntity theEntity,
const std::string theFamilyName
[protected]
 

VISU_Convertor_impl::TFindMeshOnGroup VISU_Convertor_impl::FindMeshOnGroup const std::string theMeshName,
const std::string theGroupName
[protected]
 

VISU_Convertor_impl::TFindField VISU_Convertor_impl::FindField const std::string theMeshName,
const VISU::TEntity theEntity,
const std::string theFieldName
[protected]
 

VISU_Convertor_impl::TFindTimeStamp VISU_Convertor_impl::FindTimeStamp const std::string theMeshName,
const VISU::TEntity theEntity,
const std::string theFieldName,
int  theStampsNum
[protected]
 

VISU::TVTKOutput * VISU_Convertor_impl::GetTimeStampOnProfile const VISU::PMeshImpl theMesh,
const VISU::PMeshOnEntityImpl theMeshOnEntity,
const VISU::PFieldImpl theField,
const VISU::PValForTimeImpl theValForTime,
const VISU::PIDCommonCellsFilter theIDMapperFilter,
const VISU::PProfileImpl theProfile,
const VISU::TEntity theEntity
[protected]
 

void VISU_Convertor_impl::GetTimeStampOnNodalProfile const VISU::PMeshImpl theMesh,
const VISU::PIDCommonCellsFilter theIDMapperFilter,
const VISU::PFieldImpl theField,
const VISU::PValForTimeImpl theValForTime,
const VISU::TEntity theEntity
[protected]
 

virtual int VISU_Convertor_impl.LoadMeshOnEntity VISU::PMeshImpl  theMesh,
VISU::PMeshOnEntityImpl  theMeshOnEntity
[protected, pure virtual]
 

Implemented in VISU_MedConvertor, and VISU_MEDConvertor.

virtual int VISU_Convertor_impl.LoadFamilyOnEntity VISU::PMeshImpl  theMesh,
VISU::PMeshOnEntityImpl  theMeshOnEntity,
VISU::PFamilyImpl  theFamily
[protected, pure virtual]
 

Implemented in VISU_MedConvertor, and VISU_MEDConvertor.

virtual int VISU_Convertor_impl.LoadMeshOnGroup VISU::PMeshImpl  theMesh,
const VISU::TFamilySet theFamilySet
[protected, pure virtual]
 

Implemented in VISU_MedConvertor, and VISU_MEDConvertor.

virtual int VISU_Convertor_impl.LoadValForTimeOnMesh VISU::PMeshImpl  theMesh,
VISU::PMeshOnEntityImpl  theMeshOnEntity,
VISU::PFieldImpl  theField,
VISU::PValForTimeImpl  theValForTime
[protected, pure virtual]
 

Implemented in VISU_MedConvertor, and VISU_MEDConvertor.

virtual int VISU_Convertor_impl.LoadValForTimeOnGaussPts VISU::PMeshImpl  theMesh,
VISU::PMeshOnEntityImpl  theMeshOnEntity,
VISU::PFieldImpl  theField,
VISU::PValForTimeImpl  theValForTime
[protected, pure virtual]
 

Implemented in VISU_MedConvertor, and VISU_MEDConvertor.

virtual const std::string& VISU_Convertor.GetName  )  [virtual, inherited]
 

virtual int VISU_Convertor.IsDone  )  const [virtual, inherited]
 

const VISU::TMeshMap & VISU_Convertor::GetMeshMap  )  [virtual, inherited]
 

string VISU_Convertor::GenerateName const VISU::TTime aTime  )  [static, inherited]
 

string VISU_Convertor::GenerateName const std::string theName,
unsigned int  theTimeId
[static, inherited]
 


Field Documentation

std::string VISU_Convertor.myName [protected, inherited]
 

VISU::TMeshMap VISU_Convertor.myMeshMap [protected, inherited]
 

int VISU_Convertor.myIsDone [protected, inherited]