{
DoHook();
- TSuperClass::SameAs(theOrigin);
-
ColoredPrs3d_i* anOrigin = const_cast<ColoredPrs3d_i*>(theOrigin);
myField = anOrigin->GetField();
myIteration = anOrigin->GetIteration();
myFieldName = anOrigin->GetFieldName();
+ Build(-1);
+
+ TSuperClass::SameAs(theOrigin);
+
SetScalarMode(anOrigin->GetScalarMode());
SetNbColors(anOrigin->GetNbColors());
SetBarOrientation(anOrigin->GetBarOrientation());
const char* theFieldName,
int theIteration)
{
- DoHook();
+ DoHook(); // to create proper pipeline
+
+ myMeshName = theMeshName;
+ myEntity = (VISU::TEntity)theEntity;
+ myFieldName =theFieldName;
+ myIteration = theIteration;
+
+ Build(false); // to get corresponding input from result and initilize the pipeline
SUIT_ResourceMgr* aResourceMgr = VISU::GetResourceMgr();
myLabelColor[0] = aLabelColor.red() / 255;
myLabelColor[1] = aLabelColor.green() / 255;
myLabelColor[2] = aLabelColor.blue() / 255;
-
- myMeshName = theMeshName;
- myEntity = (VISU::TEntity)theEntity;
- myFieldName =theFieldName;
- myIteration = theIteration;
-
- return Build(false);
}
VISU::Storable*
{
DoHook();
+ myMeshName = VISU::Storable::FindValue(theMap,"myMeshName").latin1();
+ myEntity = (VISU::TEntity)VISU::Storable::FindValue(theMap,"myEntity").toInt();
+ myFieldName = VISU::Storable::FindValue(theMap,"myFieldName").latin1();
+ myIteration = VISU::Storable::FindValue(theMap,"myIteration").toInt();
+
+ Build(true);
+
TSuperClass::Restore(theMap);
SetScalarMode(VISU::Storable::FindValue(theMap,"myScalarMode").toInt());
SetNbColors(VISU::Storable::FindValue(theMap,"myNumberOfColors").toInt());
SetBarOrientation((VISU::ScalarMap::Orientation)VISU::Storable::FindValue(theMap,"myOrientation").toInt());
- myMeshName = VISU::Storable::FindValue(theMap,"myMeshName").latin1();
- myEntity = (VISU::TEntity)VISU::Storable::FindValue(theMap,"myEntity").toInt();
- myFieldName = VISU::Storable::FindValue(theMap,"myFieldName").latin1();
- myIteration = VISU::Storable::FindValue(theMap,"myIteration").toInt();
-
myTitle = VISU::Storable::FindValue(theMap,"myTitle").latin1();
myNumberOfLabels = VISU::Storable::FindValue(theMap,"myNumberOfLabels").toInt();
myPosition[0] = VISU::Storable::FindValue(theMap,"myPosition[0]").toDouble();
myAddToStudy = false; //SRN Added 21/06/2003 SAL2983: to avoid addition of the new ScalarMap to study.
- return Build(true);
+ return this;
}
void
throw std::runtime_error("There is no TimeStamp with the parameters !!!");
myGaussPointsPL->SetGaussPtsIDMapper(aGaussPtsIDMapper);
+ myScalarMapPL->Init();
myGaussPointsPL->Build();
}
myPipeLine->GetMapper()->SetScalarVisibility(1);
if(VISU_ScalarBarCtrl *aScalarBarCtrl = anActor->GetScalarBarCtrl()){
- vtkIdType aScalarMode = GetScalarMode();
- TMinMax aTMinMax = myField->GetMinMax(aScalarMode);
float aRange[2];
myScalarMapPL->GetSourceRange(aRange);
- //float *aRange = myScalarMapPL->GetBarTable()->GetRange();
+ aScalarBarCtrl->SetRangeLocal(aRange);
+ vtkIdType aScalarMode = GetScalarMode();
+ TMinMax aTMinMax = myField->GetMinMax(aScalarMode);
aScalarBarCtrl->SetRangeGlobal(aTMinMax.first, aTMinMax.second);
- aScalarBarCtrl->SetRangeLocal(aRange);
aScalarBarCtrl->SetOrientation(myOrientation);