Version: 8.3.0
ParaMEDMEM2VTK::MEDCouplingMultiFieldsFetcher Class Reference

#include <VTKMEDCouplingMultiFieldsClient.hxx>

Public Member Functions

 MEDCouplingMultiFieldsFetcher (int bufferingPolicy, SALOME_MED::MEDCouplingMultiFieldsCorbaInterface_ptr mfieldsPtr)
 
 ~MEDCouplingMultiFieldsFetcher ()
 
std::vector< double > getTimeStepsForPV ()
 
void fetchRegardingPolicy ()
 
vtkDataSet * buildDataSetOnTime (double time)
 

Private Member Functions

void appendFieldValueOnAlreadyFetchedData (vtkDataSet *ds, int fieldId)
 
int getPosGivenTimeLabel (double t)
 
void retrievesMainTinyInfo ()
 
void fetchAll ()
 
void fetchMeshes ()
 
void fetchDataIfNeeded (int fieldId)
 
void unregisterRemoteServantIfAllFetched ()
 
void applyBufferingPolicy ()
 

Private Attributes

int _effective_pol
 
SALOME_MED::MEDCouplingMultiFieldsCorbaInterface_var _mfields_ptr
 
bool _mfields_ptr_released
 
std::vector< TinyInfoOnField_info_per_field
 
std::vector< double > _time_label_per_field
 
std::vector< int > _time_discr_per_field
 
std::vector< int > _mesh_id_per_field
 
std::vector< std::vector< int > > _array_ids_per_field
 
std::vector< std::vector
< double > > 
_time_def_per_field
 
int _field_id_previous
 
int _arr_pos_previous
 
double _time_field_id_previous
 
int _arr_id_previous
 
int _mesh_id_previous
 
std::vector< vtkDataSet * > _meshes
 
std::vector< bool > _is_meshes_polyhedron
 
std::vector< vtkDoubleArray * > _arrays
 

Static Private Attributes

static const double EPS_TIME =1e-7
 

Constructor & Destructor Documentation

ParaMEDMEM2VTK::MEDCouplingMultiFieldsFetcher::MEDCouplingMultiFieldsFetcher ( int  bufferingPolicy,
SALOME_MED::MEDCouplingMultiFieldsCorbaInterface_ptr  mfieldsPtr 
)

References _mfields_ptr.

ParaMEDMEM2VTK::MEDCouplingMultiFieldsFetcher::~MEDCouplingMultiFieldsFetcher ( )

Member Function Documentation

std::vector< double > ParaMEDMEM2VTK::MEDCouplingMultiFieldsFetcher::getTimeStepsForPV ( )
void ParaMEDMEM2VTK::MEDCouplingMultiFieldsFetcher::fetchRegardingPolicy ( )
vtkDataSet * ParaMEDMEM2VTK::MEDCouplingMultiFieldsFetcher::buildDataSetOnTime ( double  time)
void ParaMEDMEM2VTK::MEDCouplingMultiFieldsFetcher::appendFieldValueOnAlreadyFetchedData ( vtkDataSet *  ds,
int  fieldId 
)
private
int ParaMEDMEM2VTK::MEDCouplingMultiFieldsFetcher::getPosGivenTimeLabel ( double  t)
private
void ParaMEDMEM2VTK::MEDCouplingMultiFieldsFetcher::retrievesMainTinyInfo ( )
private
void ParaMEDMEM2VTK::MEDCouplingMultiFieldsFetcher::fetchAll ( )
private
void ParaMEDMEM2VTK::MEDCouplingMultiFieldsFetcher::fetchMeshes ( )
private

Fetches meshes without regarding if already fetched

References ParaMEDMEM2VTK::BuildFromMEDCouplingMeshInstance().

void ParaMEDMEM2VTK::MEDCouplingMultiFieldsFetcher::fetchDataIfNeeded ( int  fieldId)
private

For a field with id 'fieldId' this method CORBA fetch, if needed, basic data. 'fieldId' should be correct no check of that is done !

References ParaMEDMEM2VTK::BuildFromMEDCouplingFieldDoubleArr(), and ParaMEDMEM2VTK::BuildFromMEDCouplingMeshInstance().

void ParaMEDMEM2VTK::MEDCouplingMultiFieldsFetcher::unregisterRemoteServantIfAllFetched ( )
private
void ParaMEDMEM2VTK::MEDCouplingMultiFieldsFetcher::applyBufferingPolicy ( )
private

Field Documentation

int ParaMEDMEM2VTK::MEDCouplingMultiFieldsFetcher::_effective_pol
private
SALOME_MED::MEDCouplingMultiFieldsCorbaInterface_var ParaMEDMEM2VTK::MEDCouplingMultiFieldsFetcher::_mfields_ptr
private
bool ParaMEDMEM2VTK::MEDCouplingMultiFieldsFetcher::_mfields_ptr_released
private
std::vector<TinyInfoOnField> ParaMEDMEM2VTK::MEDCouplingMultiFieldsFetcher::_info_per_field
private
std::vector<double> ParaMEDMEM2VTK::MEDCouplingMultiFieldsFetcher::_time_label_per_field
private
std::vector<int> ParaMEDMEM2VTK::MEDCouplingMultiFieldsFetcher::_time_discr_per_field
private
std::vector<int> ParaMEDMEM2VTK::MEDCouplingMultiFieldsFetcher::_mesh_id_per_field
private
std::vector< std::vector<int> > ParaMEDMEM2VTK::MEDCouplingMultiFieldsFetcher::_array_ids_per_field
private
std::vector< std::vector<double> > ParaMEDMEM2VTK::MEDCouplingMultiFieldsFetcher::_time_def_per_field
private
int ParaMEDMEM2VTK::MEDCouplingMultiFieldsFetcher::_field_id_previous
private
int ParaMEDMEM2VTK::MEDCouplingMultiFieldsFetcher::_arr_pos_previous
private
double ParaMEDMEM2VTK::MEDCouplingMultiFieldsFetcher::_time_field_id_previous
private
int ParaMEDMEM2VTK::MEDCouplingMultiFieldsFetcher::_arr_id_previous
private
int ParaMEDMEM2VTK::MEDCouplingMultiFieldsFetcher::_mesh_id_previous
private
std::vector<vtkDataSet *> ParaMEDMEM2VTK::MEDCouplingMultiFieldsFetcher::_meshes
private
std::vector<bool> ParaMEDMEM2VTK::MEDCouplingMultiFieldsFetcher::_is_meshes_polyhedron
private
std::vector<vtkDoubleArray *> ParaMEDMEM2VTK::MEDCouplingMultiFieldsFetcher::_arrays
private
const double ParaMEDMEM2VTK::MEDCouplingMultiFieldsFetcher::EPS_TIME =1e-7
staticprivate