myEventCallbackCommand->SetClientData(this);
myEventCallbackCommand->SetCallback(SVTK_Renderer::ProcessEvents);
+ this->AddObserver(vtkCommand::ConfigureEvent,
+ myEventCallbackCommand.GetPointer(),
+ myPriority);
this->AddObserver(vtkCommand::ResetCameraEvent,
myEventCallbackCommand.GetPointer(),
myPriority);
- this->AddObserver(vtkCommand::ConfigureEvent,
+ this->AddObserver(vtkCommand::ResetCameraClippingRangeEvent,
myEventCallbackCommand.GetPointer(),
myPriority);
}
case vtkCommand::ConfigureEvent:
self->onResetView();
break;
- }
- switch(theEvent){
case vtkCommand::ResetCameraEvent:
self->onFitAll();
break;
+ case vtkCommand::ResetCameraClippingRangeEvent:
+ self->onResetClippingRange();
+ break;
}
}
//----------------------------------------------------------------------------
}
+//----------------------------------------------------------------------------
+void
+SVTK_Renderer
+::onResetClippingRange()
+{
+ return;
+ ::ResetCameraClippingRange(this);
+}
+
+
//----------------------------------------------------------------------------
void
SVTK_Renderer