void
GetTimeStampOnProfile(const TVTKSource& theSource,
const PFieldImpl& theField,
- const PValForTimeImpl& theValForTime)
+ const PValForTimeImpl& theValForTime,
+ const VISU::TEntity& theEntity)
{
int aNbTuples = theField->myDataSize/theField->myNbComp;
std::string aFieldName = GenerateFieldName(theField,theValForTime);
vtkDataSetAttributes* aDataSetAttributes;
- switch(theField->myEntity){
+ switch(theEntity){
case VISU::NODE_ENTITY :
aDataSetAttributes = theSource->GetPointData();
break;
const PMeshOnEntityImpl& theMeshOnEntity,
const PProfileImpl& theProfile)
{
+ INITMSG(MYDEBUG,"GetMeshOnProfile - anEntity = "<<theMeshOnEntity->myEntity<<endl);
+
if(theProfile->myIsVTKDone)
return;
}
+//---------------------------------------------------------------
+VISU::TVTKOutput*
+VISU_Convertor_impl
+::GetTimeStampOnProfile(const VISU::PMeshImpl& theMesh,
+ const VISU::PMeshOnEntityImpl& theMeshOnEntity,
+ const VISU::PFieldImpl& theField,
+ const VISU::PValForTimeImpl& theValForTime,
+ const VISU::PIDMapperFilter& theIDMapperFilter,
+ const VISU::PProfileImpl& theProfile,
+ const VISU::TEntity& theEntity)
+{
+ LoadMeshOnEntity(theMesh,theMeshOnEntity);
+ GetMeshOnEntity(theMeshOnEntity->myMeshName,theMeshOnEntity->myEntity);
+ GetMeshOnProfile(theMesh,theMeshOnEntity,theProfile);
+
+ theIDMapperFilter->myIDMapper = theProfile;
+ TVTKOutput* anOutput = theIDMapperFilter->GetVTKOutput();
+ const TVTKSource& aSource = theIDMapperFilter->mySource.GetSource();
+ ::GetTimeStampOnProfile(aSource,theField,theValForTime,theEntity);
+ return anOutput;
+}
+
+
//---------------------------------------------------------------
VISU::PIDMapper
VISU_Convertor_impl
if(!anIDMapperFilter->myIsVTKDone){
LoadValForTimeOnMesh(aMesh,aMeshOnEntity,aField,aValForTime);
+ TVTKOutput* anOutput;
try{
- LoadMeshOnEntity(aMesh,aVTKMeshOnEntity);
+ anOutput = GetTimeStampOnProfile(aMesh,
+ aVTKMeshOnEntity,
+ aField,
+ aValForTime,
+ anIDMapperFilter,
+ aValForTime->myProfile,
+ aMeshOnEntity->myEntity);
}catch(std::exception& exc){
- aVTKMeshOnEntity = aMeshOnEntity;
MSG(MYDEBUG,"Follow exception was occured :\n"<<exc.what());
- }catch(...){
- aVTKMeshOnEntity = aMeshOnEntity;
- MSG(MYDEBUG,"Unknown exception was occured!");
+ anOutput = GetTimeStampOnProfile(aMesh,
+ aMeshOnEntity,
+ aField,
+ aValForTime,
+ anIDMapperFilter,
+ aValForTime->myProfile,
+ aVTKMeshOnEntity->myEntity);
}
- GetMeshOnEntity(aVTKMeshOnEntity->myMeshName,aVTKMeshOnEntity->myEntity);
-
- PProfileImpl aProfile = aValForTime->myProfile;
- GetMeshOnProfile(aMesh,aVTKMeshOnEntity,aProfile);
-
- anIDMapperFilter->myIDMapper = aProfile;
- TVTKOutput* anOutput = anIDMapperFilter->GetVTKOutput();
- const TVTKSource& aSource = anIDMapperFilter->mySource.GetSource();
- GetTimeStampOnProfile(aSource,aField,aValForTime);
-
anIDMapperFilter->myIsVTKDone = true;
if(MYDEBUGWITHFILES){
const VISU::TEntity& theEntity,
const std::string& theFieldName,
int theStampsNum);
+
+ VISU::TVTKOutput*
+ GetTimeStampOnProfile(const VISU::PMeshImpl& theMesh,
+ const VISU::PMeshOnEntityImpl& theMeshOnEntity,
+ const VISU::PFieldImpl& theField,
+ const VISU::PValForTimeImpl& theValForTime,
+ const VISU::PIDMapperFilter& theIDMapperFilter,
+ const VISU::PProfileImpl& theProfile,
+ const VISU::TEntity& theEntity);
protected:
//! To fill intermeiate representation of TMeshOnEntity from a MED source