VISU_GaussPointsPL
::ShallowCopy(VISU_PipeLine *thePipeLine)
{
- SetIDMapper(thePipeLine->GetIDMapper());
- myPSMapper->ShallowCopy(thePipeLine->GetMapper());
- Build();
-
+ Superclass::ShallowCopy(thePipeLine);
if(VISU_GaussPointsPL *aPipeLine = dynamic_cast<VISU_GaussPointsPL*>(thePipeLine)){
- SetScalarRange(aPipeLine->GetScalarRange());
- SetScalarMode(aPipeLine->GetScalarMode());
- SetNbColors(aPipeLine->GetNbColors());
- SetScaling(aPipeLine->GetScaling());
+ SetGaussMesh(aPipeLine->GetGaussMesh());
+
+ vtkPolyData* aDatsSet = myPSMapper->GetInput();
+ myPSMapper->ShallowCopy(aPipeLine->GetPSMapper());
+ // To restore mapper input from pipeline
+ myPSMapper->SetInput(aDatsSet);
SetGaussMesh(aPipeLine->GetGaussMesh());
SetClamp(aPipeLine->GetClamp());
//----------------------------------------------------------------------------
void
-VISU_GaussPointsPL::
-Init()
+VISU_GaussPointsPL
+::Init()
{
VISU_ScalarMapPL::Init();
this->Interactor->Render();
}
+
+int
+VISU_ImplicitFunctionWidget
+::IsEnabled()
+{
+ return this->Enabled;
+}
+
+
//==================================================================
// function: ProcessEvents
// purpose :
// Methods that satisfy the superclass' API.
virtual void SetEnabled(int);
virtual void PlaceWidget(float bounds[6]);
- void PlaceWidget()
- {this->Superclass::PlaceWidget();}
+ int IsEnabled();
// Description:
// Get the origin of the plane.
::ShallowCopy(VISU_PipeLine *thePipeLine)
{
SetIDMapper(thePipeLine->GetIDMapper());
- GetMapper()->ShallowCopy(thePipeLine->GetMapper());
+
SetImplicitFunction(thePipeLine->GetImplicitFunction());
+
+ vtkDataSet* aDatsSet = myMapper->GetInput();
+ GetMapper()->ShallowCopy(thePipeLine->GetMapper());
+
+ // To restore mapper input from pipeline
+ myMapper->SetInput(aDatsSet);
+
Build();
}
VISU_PipeLine
::GetNodeObjID(vtkIdType theID)
{
- vtkIdType anID=myExtractGeometry->GetNodeObjId(theID);
+ vtkIdType anID = myExtractGeometry->GetNodeObjId(theID);
return myIDMapper->GetNodeObjID(anID);
}
VISU_PipeLine
::GetElemObjID(vtkIdType theID)
{
- vtkIdType anID=myExtractGeometry->GetElemObjId(theID);
+ vtkIdType anID = myExtractGeometry->GetElemObjId(theID);
return myIDMapper->GetElemObjID(anID);
}
SetScalarMode(aPipeLine->GetScalarMode());
SetNbColors(aPipeLine->GetNbColors());
SetScaling(aPipeLine->GetScaling());
- //Update();
+ Update(); // apo-gauss
}
}