BuildGroupMap(PMEDMesh theMesh,
const MED::TFamilyInfoSet& theFamilyInfoSet)
{
- INITMSG(MY_GROUP_DEBUG,"BuildGroupMap:\n");
+ INITMSG(MYDEBUG,"BuildGroupMap:\n");
TGroupMap& aGroupMap = theMesh->myGroupMap;
MED::TGroupInfo aGroupInfo = MED::GetGroupInfo(theFamilyInfoSet);
MED::TGroupInfo::const_iterator aGroupInfoIter = aGroupInfo.begin();
VISU::PMEDMeshOnEntity theMeshOnEntity,
VISU::PMEDField theField,
VISU::PMEDValForTime theValForTime,
- bool theIsGauss)
+ bool theIsGauss,
+ bool& theIsDone)
{
INITMSG(MYDEBUG,"LoadValForTime - theIsGauss = "<<theIsGauss<<endl);
//Check on loading already done
- TSource& aMeshSource = theValForTime->myMeshSource;
- if(aMeshSource.myIsDone)
+ if(theIsDone)
return 0;
//Main part of code
}
}
- aMeshSource.myIsDone = true;
+ theIsDone = true;
return 1;
}
VISU::PMEDField theField,
VISU::PMEDValForTime theValForTime)
{
- return LoadValForTime(theMed,theMesh,theMeshOnEntity,theField,theValForTime,false);
+ TSource& aMeshSource = theValForTime->myMeshSource;
+ return LoadValForTime(theMed,
+ theMesh,
+ theMeshOnEntity,
+ theField,
+ theValForTime,
+ false,
+ aMeshSource.myIsDone);
}
VISU::PMEDField theField,
VISU::PMEDValForTime theValForTime)
{
- return LoadValForTime(theMed,theMesh,theMeshOnEntity,theField,theValForTime,true);
+ TSource& aGaussPtsSource = theValForTime->myGaussPtsSource;
+ return LoadValForTime(theMed,
+ theMesh,
+ theMeshOnEntity,
+ theField,
+ theValForTime,
+ true,
+ aGaussPtsSource.myIsDone);
}
#include "VISU_GaussPoints_i.hh"
#include "VISU_GaussPointsPL.hxx"
+#include "VISU_GaussPtsAct.h"
#include "VISU_Result_i.hh"
using namespace VISU;
const char* theFieldName, int theIteration, int isMemoryCheck)
{
try{
- if(theEntity != VISU::NODE)
+ if(theEntity != VISU::NODE_ENTITY)
return VISU::ScalarMap_i::IsPossible(theResult,theMeshName,theEntity,theFieldName,theIteration,isMemoryCheck);
else
return false;
myField = theResult->GetInput()->GetField(myMeshName,myEntity,myFieldName);
if(myField == NULL)
throw std::runtime_error("There is no Field with the parameters !!!");
- VISU_Convertor::TOutput *anOutput =
+
+ VISU_Convertor::TOutput *anOutput =
theResult->GetInput()->GetTimeStampOnGaussPts(myMeshName,myEntity,myFieldName,myIteration);
+
if(anOutput == NULL)
throw std::runtime_error("There is no TimeStamp with the parameters !!!");
myScalarMapPL->SetInput(anOutput);
VISU::GaussPoints_i
::CreateActor(const Handle(SALOME_InteractiveObject)& theIO)
{
- VISU_Actor* anActor = VISU::ScalarMap_i::CreateActor(theIO);
+ VISU_GaussPtsAct* anActor = VISU_GaussPtsAct::New();
+ try{
+ VISU::Prs3d_i::CreateActor(anActor,theIO);
+ UpdateActor(anActor);
+ }catch(...){
+ anActor->Delete();
+ throw ;
+ }
return anActor;
}