::VVTK_Renderer():
myFPSActor(VISU_FPSActor::New()),
myPickingSettings(NULL),
- myGaussPointPicker(vtkPointPicker::New())
+ myGaussPointPicker(vtkPointPicker::New()),
+ myGaussPreHighlightProperty(vtkProperty::New()),
+ myGaussHighlightProperty(vtkProperty::New())
{
if(MYDEBUG) INFOS("VVTK_Renderer() - "<<this);
myFPSActor->SetMapper(aTextMapper);
aTextMapper->Delete();
+ GetDevice()->AddActor2D(myFPSActor.GetPointer());
+
myGaussPointPicker->Delete();
- GetDevice()->AddActor2D(myFPSActor.GetPointer());
+ myGaussPreHighlightProperty->Delete();
+ myGaussPreHighlightProperty->SetColor(0,1,1);
+
+ myGaussHighlightProperty->Delete();
+ myGaussHighlightProperty->SetColor(1,1,0);
+
}
VVTK_Renderer
{
Superclass::AddActor(theActor);
if(VISU_GaussPtsAct* anActor = dynamic_cast<VISU_GaussPtsAct*>(theActor)){
- anActor->SetPickingSettings(myPickingSettings);
-
anActor->SetPointPicker(myGaussPointPicker.GetPointer());
+ anActor->SetPreHighlightProperty(myGaussPreHighlightProperty.GetPointer());
+ anActor->SetHighlightProperty(myGaussHighlightProperty.GetPointer());
+
+ anActor->SetPickingSettings(myPickingSettings);
}
}
::RemoveActor(VTKViewer_Actor* theActor)
{
Superclass::RemoveActor(theActor);
- using namespace VISU;
- if(VISU_GaussPtsAct1* anActor = dynamic_cast<VISU_GaussPtsAct1*>(theActor)){
- anActor->SetPickingSettings(NULL);
-
+ if(VISU_GaussPtsAct* anActor = dynamic_cast<VISU_GaussPtsAct*>(theActor)){
anActor->SetPointPicker(NULL);
+ anActor->SetPreHighlightProperty(NULL);
+ anActor->SetHighlightProperty(NULL);
+
+ anActor->SetPickingSettings(NULL);
}
}