#include "VVTK_View.h"
#include "VVTK_InteractorStyle.h"
#include "VISU_ImplicitFunctionWidget.h"
+#include "VISU_GaussPtsAct.h"
#include "SVTK_RenderWindowInteractor.h"
#include "VVTK_Renderer.h"
{}
+//----------------------------------------------------------------------------
+void
+VVTK_MainWindow1
+::AddActor(VTKViewer_Actor* theActor,
+ bool theIsUpdate)
+{
+ VISU_GaussPtsAct* anActor = dynamic_cast<VISU_GaussPtsAct*>(theActor);
+ if( anActor )
+ mySegmentationCursorDlg->AddActor( anActor );
+
+ SVTK_MainWindow::AddActor( theActor, theIsUpdate );
+}
+
+//----------------------------------------------------------------------------
+void
+VVTK_MainWindow1
+::RemoveActor(VTKViewer_Actor* theActor,
+ bool theIsUpdate)
+{
+ VISU_GaussPtsAct* anActor = dynamic_cast<VISU_GaussPtsAct*>(theActor);
+ if( anActor )
+ mySegmentationCursorDlg->RemoveActor( anActor );
+
+ SVTK_MainWindow::RemoveActor( theActor, theIsUpdate );
+}
+
//----------------------------------------------------------------------------
VVTK_Renderer1*
VVTK_MainWindow1
if( theIsPlaneSegmentationOn )
{
- mySegmentationCursorDlg->Update();
+ mySegmentationCursorDlg->UpdateSegmentation();
+ mySegmentationCursorDlg->UpdateOutsideCursor();
mySegmentationCursorDlg->show();
}
else
virtual
~VVTK_MainWindow1();
- VVTK_Renderer1*
+ virtual
+ void
+ AddActor(VTKViewer_Actor* theActor,
+ bool theIsUpdate = false);
+
+ virtual
+ void
+ RemoveActor(VTKViewer_Actor* theActor,
+ bool theIsUpdate = false);
+
+ VVTK_Renderer1*
GetRenderer1();
virtual