static int MYVTKDEBUG = 0;
#ifdef _DEBUG_
-static int MYDEBUG = 1;
+static int MYDEBUG = 0;
#else
static int MYDEBUG = 0;
#endif
myAnnotationMapper(vtkTextMapper::New()),
myAnnotationActor(vtkTextActor::New())
{
- if(MYDEBUG) MESSAGE("VISU_Actor() - this = "<<this);
- SetDebug(MYVTKDEBUG);
+ if(MYDEBUG) MESSAGE("VISU_Actor::VISU_Actor - this = "<<this);
myMapper->Delete();
myShrinkFilter->Delete();
{
if(MYDEBUG) MESSAGE("~VISU_Actor() - this = "<<this);
Superclass::SetProperty(NULL);
+ SetDebug(MYVTKDEBUG);
}
//----------------------------------------------------------------------------
myActorFactory = theActorFactory;
}
+//----------------------------------------------------------------------------
void
VISU_Actor
::Update()
Superclass::Update();
}
+void
+VISU_Actor
+::RemoveFromRender()
+{
+ RemoveFromRender(GetRenderer());
+}
//----------------------------------------------------------------------------
void
void
SetFactory(VISU::TActorFactory* theActorFactory);
+ //----------------------------------------------------------------------------
virtual
void
Update();
+ virtual
+ void
+ RemoveFromRender();
+
//----------------------------------------------------------------------------
virtual
VISU_PipeLine*
#include <vtkCell.h>
#include <vtkMath.h>
+#include "utilities.h"
+
+#ifdef _DEBUG_
+static int MYDEBUG = 1;
+#else
+static int MYDEBUG = 0;
+#endif
+
//
///////////////////////////////////////////////////////////////////////////
//
mySphereActor(vtkActor::New()),
myCursorPyramid(VISU_CursorPyramid::New())
{
+ if(MYDEBUG) MESSAGE("VISU_GaussPtsAct::VISU_GaussPtsAct - this = "<<this);
+
myEventCallbackCommand->Delete();
myEventCallbackCommand->SetClientData(this);
if(myInteractor)
myInteractor->RemoveObserver(myEventCallbackCommand.GetPointer());
-
if(theInteractor)
theInteractor->AddObserver(vtkCommand::CharEvent,
myEventCallbackCommand.GetPointer(),
0.0);
-
Superclass::SetInteractor(theInteractor);
Modified();