myFieldName = theFieldName;
myEntity = (VISU::TEntity)theEntity;
myIteration = theIteration;
- myIsFixedRange = theIsFixedRange;
- //int anIteration = GetIteration();
SameAs(theOrigin);
- //myIteration = anIteration;
myTitle = theTitle;
+ myIsFixedRange = theIsFixedRange;
Build(-1);
Update();
ScalarMap_i* anOrigin = const_cast<ScalarMap_i*>(aPrs3d);
SetRange(anOrigin->GetMin(), anOrigin->GetMax());
- //myIsFixedRange = anOrigin->IsRangeFixed();
+ myIsFixedRange = anOrigin->IsRangeFixed();
SetScaling(anOrigin->GetScaling());
myField = anInput->GetField(myMeshName,myEntity,myFieldName);
if(!myField)
throw std::runtime_error("There is no Field with the parameters !!!");
-
+
VISU::PIDMapper anIDMapper =
anInput->GetTimeStampOnMesh(myMeshName,myEntity,myFieldName,myIteration);
throw std::runtime_error("There is no TimeStamp with the parameters !!!");
myScalarMapPL->SetIDMapper(anIDMapper);
- myScalarMapPL->Init();
+ // mkr : 23.11.2006 - PAL13908 - save animation range if range is fixed -->
+ if ( myIsFixedRange )
+ myScalarMapPL->SetScalarMode(0);
+ else
+ myScalarMapPL->Init();
+ // mkr : 23.11.2006 <--
myScalarMapPL->Build();
}
if (!aRefObj->ReferencedObject(aFieldObj) ) continue;
addField(aFieldObj);
FieldData& aData = getFieldData(getNbFields()-1);
-
+
// Get Presentation object
_PTR(ChildIterator) anPrsIter = myStudy->NewChildIterator(aRefObj);
anPrsIter->Init();
if ( !aPrs_i )
throw SALOME_Exception(LOCALIZED("Error : invalid dynamic cast of the given presentation to VISU::ColoredPrs3d_i"));
- printf("aPrs_i->GetMeshName() = %s; aPrs_i->GetFieldName() = %s\n",aPrs_i->GetMeshName().c_str(),aPrs_i->GetFieldName().c_str());
if ( myAnimationMode == 0 ) { // parallel animation mode
FieldData& aData = myFieldsLst[theFieldNum];
throw SALOME_Exception(LOCALIZED("Error : presentations for the given field is not yet created!"));
for (int i = 0; i < aData.myNbFrames; i++) {
- printf("aData.myPrs[%d]->GetMeshName() = %s; aData.myPrs[%d]->GetFieldName() = %s\n",
- i,aData.myPrs[i]->GetMeshName().c_str(),i,aData.myPrs[i]->GetFieldName().c_str());
aData.myPrs[i]->SameAsParams(aPrs_i,
aData.myPrs[i]->GetMeshName(),aData.myPrs[i]->GetFieldName(),
aData.myPrs[i]->GetEntity(), aData.myPrs[i]->GetIteration(),