if(MYDEBUG) MESSAGE("ScalarMapOnDeformedShape_i::~ScalarMapOnDeformedShape_i()");
}
+void
+VISU::ScalarMapOnDeformedShape_i
+::SameAs(const Prs3d_i* theOrigin)
+{
+ TSuperClass::SameAs(theOrigin);
+
+ if(const ScalarMapOnDeformedShape_i* aPrs3d = dynamic_cast<const ScalarMapOnDeformedShape_i*>(theOrigin)){
+ ScalarMapOnDeformedShape_i* anOrigin = const_cast<ScalarMapOnDeformedShape_i*>(aPrs3d);
+
+ // increment the scalar iteration for using in VISU_TimeAnimation class implementation.
+ this->SetScalarField(anOrigin->GetScalarMeshName().c_str(),
+ anOrigin->GetScalarFieldName().c_str(),
+ anOrigin->GetScalarIteration() + 1,
+ anOrigin->GetScalarEntity());
+ Update();
+ }
+}
+
void VISU::ScalarMapOnDeformedShape_i::SetScale(CORBA::Double theScale) {
myScalarMapOnDeformedShapePL->SetScale(theScale);
}
theFieldName,
theIteration)->GetVTKOutput();
myScalarMapOnDeformedShapePL->SetScalars(aOut);
-
- SetScalarMeshName(theMeshName);
- SetScalarFieldName(theFieldName);
- SetScalarIteration(theIteration);
- SetScalarEntity(theEntity);
}
+ this->SetScalarMeshName(theMeshName);
+ this->SetScalarFieldName(theFieldName);
+ this->SetScalarIteration(theIteration);
+ this->SetScalarEntity(theEntity);
}
aData.myPrs[0]->GetOffset(aData.myOffset);
for (int i = 1; i < aData.myNbFrames; i++) {
//jfa 03.08.2005:aData.myPrs[i]->SameAs(aData.myPrs[0]);
- aData.myPrs[i]->SameAsParams(aData.myPrs[0]);//jfa 03.08.2005
+ //enk 06.02.2006:aData.myPrs[i]->SameAsParams(aData.myPrs[0]);//jfa 03.08.2005
+ aData.myPrs[i]->SameAsParams(aData.myPrs[i-1]);//enk 06.02.2006: initializing from previous presentation
}
}
string aStr = aAnimSObject->GetID();