Superclass::ShallowCopyPL(thePipeLine);
VISU_GaussPointsPL* aPipeLine = dynamic_cast<VISU_GaussPointsPL*>(thePipeLine);
- //myDeviceActor->ShallowCopyPL(aPipeLine);
- //myDeviceActor->GetPipeLine()->SetMagnification( aPipeLine->GetMagnification() );
}
VISU_GaussPtsAct
::GetMapper()
{
- return GetCurrentPL()->GetMapper();
+ return Superclass::GetMapper();
}
float*
VISU_GaussPtsAct
::GetBounds()
{
- return myDeviceActor->GetBounds();
+ return GetMapper()->GetBounds();
}
vtkDataSet*
myDeviceActor->SetPipeLine(GetGaussPointsPL());
myCurrentPL = myDeviceActor->GetPipeLine();
+
+ myMapper->SetInput(myCurrentPL->GetPickableDataSet());
+ SetMapper(myMapper.GetPointer());
}
void
}
//----------------------------------------------------------------------------
-bool VISU_GaussPtsAct::PreHighlight(vtkInteractorStyle* theInteractorStyle,
- SVTK_SelectionEvent* theSelectionEvent,
- bool theIsHighlight)
+bool
+VISU_GaussPtsAct
+::PreHighlight(vtkInteractorStyle* theInteractorStyle,
+ SVTK_SelectionEvent* theSelectionEvent,
+ bool theIsHighlight)
{
myPreHighlightActor->SetVisibility(false);
myCursorPyramid->SetVisibility(false);
}
-bool VISU_GaussPtsAct::Highlight(vtkInteractorStyle* theInteractorStyle,
- SVTK_SelectionEvent* theSelectionEvent,
- bool theIsHighlight)
+bool
+VISU_GaussPtsAct
+::Highlight(vtkInteractorStyle* theInteractorStyle,
+ SVTK_SelectionEvent* theSelectionEvent,
+ bool theIsHighlight)
{
Handle(SALOME_InteractiveObject) anIO = getIO();
int anInitialHasIndex = mySelector->HasIndex(anIO);
}
//
// myTextActor
- std::string aString=aStr.str();
+ std::string aString = aStr.str();
myTextActor->SetModePosition(myPickingSettings->GetInfoWindowPosition());
myTextActor->SetTransparency(myPickingSettings->GetInfoWindowTransparency());
myTextActor->SetWorldPoint(aWorldCoord);
VISU_GaussPointsPL* aPipeLine = dynamic_cast<VISU_GaussPointsPL*>(thePipeLine);
- //myInsideDeviceActor->ShallowCopyPL(aPipeLine);
- //myInsideDeviceActor->GetPipeLine()->SetMagnification( aPipeLine->GetMagnification() );
-
myDeviceActor->ShallowCopyPL(aPipeLine);
// Restore implicit function