From 9e1e4e6cadfd03e28f0cc2eb5d8e4fb29263fc13 Mon Sep 17 00:00:00 2001 From: apo Date: Wed, 28 Sep 2005 11:50:31 +0000 Subject: [PATCH] To improve outside presentation --- src/OBJECT/VISU_GaussPtsAct.cxx | 74 ++++++++++++++++++++++++++++----- src/OBJECT/VISU_GaussPtsAct.h | 1 + 2 files changed, 65 insertions(+), 10 deletions(-) diff --git a/src/OBJECT/VISU_GaussPtsAct.cxx b/src/OBJECT/VISU_GaussPtsAct.cxx index a718248e..8a03b261 100644 --- a/src/OBJECT/VISU_GaussPtsAct.cxx +++ b/src/OBJECT/VISU_GaussPtsAct.cxx @@ -71,9 +71,13 @@ #include "utilities.h" #ifdef _DEBUG_ -static int MYDEBUG = 1; +static int MYDEBUG = 0; +static int MYDEBUG1 = 0; +static int MYDEBUG2 = 0; #else static int MYDEBUG = 0; +static int MYDEBUG1 = 0; +static int MYDEBUG2 = 0; #endif //---------------------------------------------------------------- @@ -99,6 +103,7 @@ vtkStandardNewMacro(VISU_GaussPtsAct); VISU_GaussPtsAct ::VISU_GaussPtsAct(): myEventCallbackCommand(vtkCallbackCommand::New()), + myPriority(0.0), myDeviceActor(VISU_GaussPtsDeviceActor::New()), myWidget(NULL), myGaussPointsPL(NULL), @@ -185,6 +190,8 @@ void VISU_GaussPtsAct ::SetPipeLine(VISU_PipeLine* thePipeLine) { + if(MYDEBUG) MESSAGE("VISU_GaussPtsAct::SetPipeLine - this = "<(thePipeLine); Superclass::SetPipeLine(thePipeLine); @@ -201,6 +208,8 @@ void VISU_GaussPtsAct ::ShallowCopyPL(VISU_PipeLine* thePipeLine) { + if(MYDEBUG) MESSAGE("VISU_GaussPtsAct::ShallowCopyPL - this = "<(thePipeLine); @@ -236,6 +245,8 @@ void VISU_GaussPtsAct ::AddToRender(vtkRenderer* theRenderer) { + if(MYDEBUG) MESSAGE("VISU_GaussPtsAct::AddToRender - this = "<AddToRender(theRenderer); @@ -252,6 +263,8 @@ void VISU_GaussPtsAct ::RemoveFromRender(vtkRenderer* theRenderer) { + if(MYDEBUG) MESSAGE("VISU_GaussPtsAct::RemoveFromRender - this = "<RemoveFromRender(theRenderer); @@ -293,13 +306,15 @@ void VISU_GaussPtsAct ::SetImplicitFunctionWidget(VISU_ImplicitFunctionWidget* theWidget) { + if(MYDEBUG) MESSAGE("VISU_GaussPtsAct::SetImplicitFunctionWidget - this = "<AddObserver(vtkCommand::EnableEvent, myEventCallbackCommand.GetPointer(), - 0.0); + myPriority); theWidget->AddObserver(vtkCommand::DisableEvent, myEventCallbackCommand.GetPointer(), - 0.0); + myPriority); } bool @@ -342,6 +357,8 @@ void VISU_GaussPtsAct ::SetMapperInput(vtkDataSet* theDataSet) { + if(MYDEBUG) MESSAGE("VISU_GaussPtsAct::SetMapperInput - this = "<SetPipeLine(GetGaussPointsPL()); vtkLODActor::SetMapper(GetMapper()); } @@ -386,7 +403,7 @@ VISU_GaussPtsAct if(theInteractor) theInteractor->AddObserver(vtkCommand::CharEvent, myEventCallbackCommand.GetPointer(), - 0.0); + myPriority); Superclass::SetInteractor(theInteractor); @@ -409,6 +426,8 @@ void VISU_GaussPtsAct ::OnInteractorEvent(unsigned long theEvent) { + if(MYDEBUG) MESSAGE("VISU_GaussPtsAct::OnInteractorEvent - this = "<GetKeyCode()) { @@ -777,7 +796,7 @@ VISU_GaussPtsAct1 myInsideDeviceActor(VISU_GaussPtsDeviceActor::New()), myOutsideDeviceActor(VISU_GaussPtsDeviceActor::New()) { - if(MYDEBUG) MESSAGE("VISU_GaussPtsAct1::VISU_GaussPtsAct1 - this = "<