CreatePipeLine(NULL); // to create proper pipeline
DoSetInput(anIsNotCreated);
+
+ // To update title according to the new input
SetTitle(GetCTitle().c_str());
return anIsNotCreated;
VISU::ColoredPrs3d_i
::GetSourceMin()
{
- if(IsTimeStampFixed())
- return myScalarMapPL->GetScalarRange()[0];
- else{
+ if(IsTimeStampFixed()){
+ vtkFloatingPointType aRange[2];
+ GetSpecificPL()->GetSourceRange(aRange);
+ return aRange[0];
+ }else{
TMinMax aTMinMax = GetField()->GetMinMax(GetScalarMode());
return aTMinMax.first;
}
VISU::ColoredPrs3d_i
::GetSourceMax()
{
- if(IsTimeStampFixed())
- return myScalarMapPL->GetScalarRange()[1];
- else{
+ if(IsTimeStampFixed()){
+ vtkFloatingPointType aRange[2];
+ GetSpecificPL()->GetSourceRange(aRange);
+ return aRange[1];
+ }else{
TMinMax aTMinMax = GetField()->GetMinMax(GetScalarMode());
return aTMinMax.second;
}
VISU::ColoredPrs3d_i
::SetNbColors(CORBA::Long theNbColors)
{
- myScalarMapPL->SetNbColors(theNbColors);
+ GetSpecificPL()->SetNbColors(theNbColors);
}
CORBA::Long
VISU::ColoredPrs3d_i
::GetNbColors()
{
- return myScalarMapPL->GetNbColors();
+ return GetSpecificPL()->GetNbColors();
}
void
QString aComment;
myName = "NoName";
if(theBuildMode == ECreateNew || theBuildMode == ESameAs){
- if(!myIsFixedRange)
+ if(!IsRangeFixed())
SetSourceRange();
if(theBuildMode == ECreateNew)
SetTitle(GetCFieldName().c_str());
GetSpecificPL()->Build();
}
GetCResult()->MinMaxConnect(this);
+
+ // To update scalar range according to the new input
+ if(!IsTimeStampFixed())
+ SetSourceRange();
}
theLookupTable->SetNumberOfColors(aLookupTable->GetNumberOfColors());
theScalarBar->SetMaximumNumberOfColors(aLookupTable->GetNumberOfColors());
- vtkFloatingPointType anRGB[3];
+ vtkFloatingPointType anRGB[3];
vtkTextProperty* aTitleProp = theScalarBar->GetTitleTextProperty();
aTitleProp->SetFontFamily(GetTitFontType());
return GetCResult()->IsMinMaxDone();
}
+//----------------------------------------------------------------------------
+void
+VISU::GaussPoints_i
+::SetSourceRange()
+{
+ if(IsTimeStampFixed() || GetIsActiveLocalScalarBar())
+ GetSpecificPL()->SetSourceRange();
+ else{
+ TMinMax aTMinMax = GetField()->GetMinMax(GetScalarMode());
+ vtkFloatingPointType aScalarRange[2] = {aTMinMax.first, aTMinMax.second};
+ GetSpecificPL()->SetScalarRange(aScalarRange);
+ }
+}
+
+CORBA::Double
+VISU::GaussPoints_i
+::GetSourceMin()
+{
+ if(IsTimeStampFixed() || GetIsActiveLocalScalarBar()){
+ vtkFloatingPointType aRange[2];
+ GetSpecificPL()->GetSourceRange(aRange);
+ return aRange[0];
+ }else{
+ TMinMax aTMinMax = GetField()->GetMinMax(GetScalarMode());
+ return aTMinMax.first;
+ }
+}
+
+CORBA::Double
+VISU::GaussPoints_i
+::GetSourceMax()
+{
+ if(IsTimeStampFixed() || GetIsActiveLocalScalarBar()){
+ vtkFloatingPointType aRange[2];
+ GetSpecificPL()->GetSourceRange(aRange);
+ return aRange[1];
+ }else{
+ TMinMax aTMinMax = GetField()->GetMinMax(GetScalarMode());
+ return aTMinMax.second;
+ }
+}
+
+
+//----------------------------------------------------------------------------
bool
VISU::GaussPoints_i
::GetIsDispGlobalScalarBar() const
return myIsDispGlobalScalarBar;
}
+
void
VISU::GaussPoints_i
::SetBiColor(bool theIsBiColor)