#include <vtkPolyData.h>
#include <vtkActor.h>
-#include <vtkCommand.h>
#include <vtkObjectFactory.h>
#include <vtkCallbackCommand.h>
#include <vtkInteractorStyle.h>
myPickingSettings = thePickingSettings;
if(thePickingSettings)
- thePickingSettings->AddObserver(vtkCommand::ModifiedEvent,
+ thePickingSettings->AddObserver(VISU::UpdatePickingSettingsEvent,
myEventCallbackCommand.GetPointer(),
myPriority);
}
myInsideDeviceActor->ShallowCopyPL(aPipeLine);
- myOutsideDeviceActor->ShallowCopyPL(aPipeLine);
+ //myOutsideDeviceActor->ShallowCopyPL(aPipeLine);
myOutsideDeviceActor->GetMapper()->ScalarVisibilityOff();
myOutsideDeviceActor->GetPipeLine()->SetExtractInside(true);
myOutsideCursorSettings = theOutsideCursorSettings;
if(theOutsideCursorSettings)
- theOutsideCursorSettings->AddObserver(vtkCommand::ModifiedEvent,
+ theOutsideCursorSettings->AddObserver(VISU::UpdateOutsideSettingsEvent,
myEventCallbackCommand.GetPointer(),
myPriority);
}
myOutsideDeviceActor->GetProperty()->SetColor(myOutsideCursorSettings->GetColor());
- //cout << "UpdateOutsideCursorSettings " << aMapper << endl;
- //cout << myOutsideCursorSettings->GetAlphaThreshold() << endl;
+ cout << "UpdateOutsideCursorSettings" << endl;
+ cout << this << endl;
+ cout << myOutsideDeviceActor << endl;
+ cout << aMapper << endl;
Update();
}
{
if(vtkObject* anObject = reinterpret_cast<vtkObject*>(theClientData))
if(VISU_GaussPtsAct1* self = dynamic_cast<VISU_GaussPtsAct1*>(anObject))
- if(theEvent == vtkCommand::ModifiedEvent)
+ if(theEvent == VISU::UpdateOutsideSettingsEvent)
self->UpdateOutsideCursorSettings();
Superclass::ProcessEvents(theObject,theEvent,theClientData,theCallData);
#include "VISU_Actor.h"
#include "VISU_GaussPtsActorFactory.h"
+#include <vtkCommand.h>
#include <vtkSmartPointer.h>
class VISU_GaussPointsPL;
//============================================================================
+namespace VISU
+{
+ const vtkIdType UpdateOutsideSettingsEvent = vtkCommand::UserEvent + 100;
+ const vtkIdType UpdatePickingSettingsEvent = vtkCommand::UserEvent + 101;
+}
+
class VTKOCC_EXPORT VISU_OutsideCursorSettings : public vtkObject
{
public:
myPickingSettings->SetZoomFactor( myZoomFactorSpinBox->value() );
myPickingSettings->SetStepNumber( myStepNumberSpinBox->value() );
- myPickingSettings->InvokeEvent(vtkCommand::ModifiedEvent,NULL);
+ myPickingSettings->InvokeEvent(VISU::UpdatePickingSettingsEvent,NULL);
}
void VVTK_PickingDlg::onClickClose()