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

VISU_MEDFieldConvertor Class Reference

#include <VISU_CorbaMedConvertor.hxx>

Inheritance diagram for VISU_MEDFieldConvertor:
Inheritance graph

Public Member Functions

 VISU_MEDFieldConvertor (SALOME_MED::FIELD_ptr theField)
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 size_t 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 size_t GetMeshOnEntitySize (const std::string &theMeshName, const VISU::TEntity &theEntity)
 Implemention of the VISU_Convertor.GetMeshOnEntitySize.
virtual
VISU::PUnstructuredGridIDMapper 
GetFamilyOnEntity (const std::string &theMeshName, const VISU::TEntity &theEntity, const std::string &theFamilyName)
 Implemention of the VISU_Convertor.GetFamilyOnEntity.
virtual size_t GetFamilyOnEntitySize (const std::string &theMeshName, const VISU::TEntity &theEntity, const std::string &theFamilyName)
 Implemention of the VISU_Convertor.GetFamilyOnEntitySize.
virtual
VISU::PUnstructuredGridIDMapper 
GetMeshOnGroup (const std::string &theMeshName, const std::string &theGroupName)
 Implemention of the VISU_Convertor.GetMeshOnGroup.
virtual size_t GetMeshOnGroupSize (const std::string &theMeshName, const std::string &theGroupName)
 Implemention of the VISU_Convertor.GetMeshOnGroupSize.
virtual
VISU::PUnstructuredGridIDMapper 
GetTimeStampOnMesh (const std::string &theMeshName, const VISU::TEntity &theEntity, const std::string &theFieldName, int theTimeStampNumber)
 Implemention of the VISU_Convertor.GetTimeStampOnMesh.
virtual size_t GetTimeStampOnMeshSize (const std::string &theMeshName, const VISU::TEntity &theEntity, const std::string &theFieldName, int theTimeStampNumber, bool &theIsEstimated)
 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)
 Get amount of memory to build vtkDataSet for corresponding MED TIMESTAMP on Gauss Points.
virtual VISU::PGaussPtsIDMapper GetTimeStampOnGaussPts (const std::string &theMeshName, const VISU::TEntity &theEntity, const std::string &theFieldName, int theTimeStampNumber)
 Implemention of the VISU_Convertor.GetTimeStampOnGaussPts.
virtual size_t 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_ConvertorBuild (SALOME_MED::MED_ptr theMED)
VISU_ConvertorBuild (SALOMEDS::ChildIterator_ptr theTimeStampIterator)
virtual int LoadMeshOnEntity (VISU::PMeshImpl theMesh, VISU::PMeshOnEntityImpl theMeshOnEntity)
 To fill intermeiate representation of TMeshOnEntity from a MED source.
virtual int LoadFamilyOnEntity (VISU::PMeshImpl theMesh, VISU::PMeshOnEntityImpl theMeshOnEntity, VISU::PFamilyImpl theFamily)
 To fill intermeiate representation of TFamily from a MED source.
virtual int LoadMeshOnGroup (VISU::PMeshImpl theMesh, const VISU::TFamilySet &theFamilySet)
 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)
 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)
 To fill intermeiate representation of TValForTime for mesh on Gauss Points from a MED source.
int LoadPoints (VISU::PCMesh theMesh)
int LoadPointsOnFamily (VISU::PCMesh theMesh, VISU::PCFamily theFamily)
int LoadCellsOnEntity (VISU::PCMesh theMesh, VISU::PCMeshOnEntity theMeshOnEntity)
int LoadCellsOnFamily (VISU::PCMesh theMesh, VISU::PCMeshOnEntity theMeshOnEntity, VISU::PCFamily theFamily)
int LoadField (VISU::PCMesh theMesh, VISU::PCMeshOnEntity theMeshOnEntity, VISU::PField theField, VISU::PCValForTime theValForTime)
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)
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)
vtkUnstructuredGrid * GetTimeStampOnProfile (const VISU::PMeshImpl &theMesh, const VISU::PMeshOnEntityImpl &theMeshOnEntity, const VISU::PFieldImpl &theField, const VISU::PValForTimeImpl &theValForTime, const VISU::PUnstructuredGridIDMapperImpl &theIDMapperFilter, const VISU::PProfileImpl &theProfile, const VISU::TEntity &theEntity)
virtual size_t GetTimeStampSize (const std::string &theMeshName, const VISU::TEntity &theEntity, const std::string &theFieldName, int theStampsNum)
 Implemention of the VISU_Convertor.GetTimeStampSize.

Protected Attributes

SALOME_MED::FIELD_var myField
SALOMEDS::SObject_var mySObject
std::string myName
VISU::TMeshMap myMeshMap
int myIsDone

Member Typedef Documentation

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

Constructor & Destructor Documentation

VISU_MEDFieldConvertor.VISU_MEDFieldConvertor ( SALOME_MED::FIELD_ptr  theField)

Member Function Documentation

VISU_Convertor * VISU_MEDFieldConvertor::Build ( ) [virtual]
VISU_Convertor * VISU_MEDConvertor::Build ( SALOME_MED::MED_ptr  theMED) [protected, inherited]
VISU_Convertor * VISU_MEDConvertor::Build ( SALOMEDS::ChildIterator_ptr  theTimeStampIterator) [protected, inherited]
int VISU_MEDConvertor::LoadMeshOnEntity ( VISU::PMeshImpl  theMesh,
VISU::PMeshOnEntityImpl  theMeshOnEntity 
) [protected, virtual, inherited]

Implements VISU_Convertor_impl.

References VISU.NODE_ENTITY.

int VISU_MEDConvertor::LoadFamilyOnEntity ( VISU::PMeshImpl  theMesh,
VISU::PMeshOnEntityImpl  theMeshOnEntity,
VISU::PFamilyImpl  theFamily 
) [protected, virtual, inherited]
int VISU_MEDConvertor::LoadMeshOnGroup ( VISU::PMeshImpl  theMesh,
const VISU::TFamilySet theFamilySet 
) [protected, virtual, inherited]

Implements VISU_Convertor_impl.

References VISU.NODE_ENTITY.

int VISU_MEDConvertor::LoadValForTimeOnMesh ( VISU::PMeshImpl  theMesh,
VISU::PMeshOnEntityImpl  theMeshOnEntity,
VISU::PFieldImpl  theField,
VISU::PValForTimeImpl  theValForTime 
) [protected, virtual, inherited]

Implements VISU_Convertor_impl.

References VISU.NODE_ENTITY.

virtual int VISU_MEDConvertor.LoadValForTimeOnGaussPts ( VISU::PMeshImpl  theMesh,
VISU::PMeshOnEntityImpl  theMeshOnEntity,
VISU::PFieldImpl  theField,
VISU::PValForTimeImpl  theValForTime 
) [protected, virtual, inherited]

Implements VISU_Convertor_impl.

int VISU_MEDConvertor::LoadPoints ( VISU::PCMesh  theMesh) [protected, inherited]
int VISU_MEDConvertor::LoadPointsOnFamily ( VISU::PCMesh  theMesh,
VISU::PCFamily  theFamily 
) [protected, inherited]

References VISU.ePOINT1, and VISU.NODE_ENTITY.

int VISU_MEDConvertor::LoadCellsOnEntity ( VISU::PCMesh  theMesh,
VISU::PCMeshOnEntity  theMeshOnEntity 
) [protected, inherited]
int VISU_MEDConvertor::LoadCellsOnFamily ( VISU::PCMesh  theMesh,
VISU::PCMeshOnEntity  theMeshOnEntity,
VISU::PCFamily  theFamily 
) [protected, inherited]
int VISU_MEDConvertor::LoadField ( VISU::PCMesh  theMesh,
VISU::PCMeshOnEntity  theMeshOnEntity,
VISU::PField  theField,
VISU::PCValForTime  theValForTime 
) [protected, inherited]

References MESSAGE, and MYDEBUG.

VISU_Convertor * VISU_Convertor_impl::BuildEntities ( ) [virtual, inherited]

Implements VISU_Convertor.

Reimplemented in VISU_MedConvertor.

VISU_Convertor * VISU_Convertor_impl::BuildFields ( ) [virtual, inherited]

Implements VISU_Convertor.

Reimplemented in VISU_MedConvertor.

References VISU.BuildEntities().

VISU_Convertor * VISU_Convertor_impl::BuildMinMax ( ) [virtual, inherited]

Implements VISU_Convertor.

Reimplemented in VISU_MedConvertor.

References VISU.BuildFields().

VISU_Convertor * VISU_Convertor_impl::BuildGroups ( ) [virtual, inherited]

Implements VISU_Convertor.

Reimplemented in VISU_MedConvertor.

size_t VISU_Convertor_impl::GetSize ( ) [virtual, inherited]
VISU::PNamedIDMapper VISU_Convertor_impl::GetMeshOnEntity ( const std::string theMeshName,
const VISU::TEntity theEntity 
) [virtual, inherited]
size_t VISU_Convertor_impl::GetMeshOnEntitySize ( const std::string theMeshName,
const VISU::TEntity theEntity 
) [virtual, inherited]
VISU::PUnstructuredGridIDMapper VISU_Convertor_impl::GetFamilyOnEntity ( const std::string theMeshName,
const VISU::TEntity theEntity,
const std::string theFamilyName 
) [virtual, inherited]
size_t VISU_Convertor_impl::GetFamilyOnEntitySize ( const std::string theMeshName,
const VISU::TEntity theEntity,
const std::string theFamilyName 
) [virtual, inherited]
VISU::PUnstructuredGridIDMapper VISU_Convertor_impl::GetMeshOnGroup ( const std::string theMeshName,
const std::string theGroupName 
) [virtual, inherited]
size_t VISU_Convertor_impl::GetMeshOnGroupSize ( const std::string theMeshName,
const std::string theGroupName 
) [virtual, inherited]
VISU::PUnstructuredGridIDMapper VISU_Convertor_impl::GetTimeStampOnMesh ( const std::string theMeshName,
const VISU::TEntity theEntity,
const std::string theFieldName,
int  theTimeStampNumber 
) [virtual, inherited]
size_t VISU_Convertor_impl::GetTimeStampOnMeshSize ( const std::string theMeshName,
const VISU::TEntity theEntity,
const std::string theFieldName,
int  theTimeStampNumber,
bool &  theIsEstimated 
) [virtual, inherited]

Implements VISU_Convertor.

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

Implements VISU_Convertor.

VISU::PGaussPtsIDMapper VISU_Convertor_impl::GetTimeStampOnGaussPts ( const std::string theMeshName,
const VISU::TEntity theEntity,
const std::string theFieldName,
int  theTimeStampNumber 
) [virtual, inherited]
size_t VISU_Convertor_impl::GetFieldOnMeshSize ( const std::string theMeshName,
const VISU::TEntity theEntity,
const std::string theFieldName 
) [virtual, inherited]
const VISU::PField VISU_Convertor_impl::GetField ( const std::string theMeshName,
VISU::TEntity  theEntity,
const std::string theFieldName 
) [virtual, inherited]

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, inherited]

Implements VISU_Convertor.

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

References EXCEPTION.

VISU_Convertor_impl::TFindMeshOnEntity VISU_Convertor_impl::FindMeshOnEntity ( const std::string theMeshName,
const VISU::TEntity theEntity 
) [protected, inherited]

References EXCEPTION.

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

References EXCEPTION.

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

References EXCEPTION.

VISU_Convertor_impl::TFindField VISU_Convertor_impl::FindField ( const std::string theMeshName,
const VISU::TEntity theEntity,
const std::string theFieldName 
) [protected, inherited]
VISU_Convertor_impl::TFindTimeStamp VISU_Convertor_impl::FindTimeStamp ( const std::string theMeshName,
const VISU::TEntity theEntity,
const std::string theFieldName,
int  theStampsNum 
) [protected, inherited]

References EXCEPTION.

vtkUnstructuredGrid * VISU_Convertor_impl::GetTimeStampOnProfile ( const VISU::PMeshImpl theMesh,
const VISU::PMeshOnEntityImpl theMeshOnEntity,
const VISU::PFieldImpl theField,
const VISU::PValForTimeImpl theValForTime,
const VISU::PUnstructuredGridIDMapperImpl theIDMapperFilter,
const VISU::PProfileImpl theProfile,
const VISU::TEntity theEntity 
) [protected, inherited]
size_t VISU_Convertor_impl::GetTimeStampSize ( const std::string theMeshName,
const VISU::TEntity theEntity,
const std::string theFieldName,
int  theStampsNum 
) [protected, virtual, inherited]
const std::string & VISU_Convertor::GetName ( ) [virtual, inherited]
int VISU_Convertor::IsDone ( ) const [virtual, inherited]
const VISU::TMeshMap & VISU_Convertor::GetMeshMap ( ) [virtual, inherited]
std::string VISU_Convertor::GenerateName ( const VISU::TTime aTime) [static, inherited]
std::string VISU_Convertor::GenerateName ( const std::string theName,
unsigned int  theTimeId 
) [static, inherited]

Field Documentation

SALOME_MED::FIELD_var VISU_MEDFieldConvertor.myField [protected]
SALOMEDS::SObject_var VISU_MEDConvertor.mySObject [protected, inherited]
std::string VISU_Convertor.myName [protected, inherited]
VISU::TMeshMap VISU_Convertor.myMeshMap [protected, inherited]
int VISU_Convertor.myIsDone [protected, inherited]
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