/*! * wxEVT_COMMAND_BUTTON_CLICKED event handler for START_BUTTON */ void itkDiscreteGaussianImageFilter::OnStartButtonClick( wxCommandEvent& event ) { SCIRun::ThrowSkinnerSignalEvent *tsse = new SCIRun::ThrowSkinnerSignalEvent("Painter::FinishTool"); tsse->add_var("itkDiscreteGaussianImageFilter::mVariance",SCIRun::to_string(mVariance->GetValue())); tsse->add_var("itkDiscreteGaussianImageFilter::mMaxError",SCIRun::to_string(mMaxError->GetValue())); SCIRun::Painter::ThrowSkinnerSignal(tsse, false); }
void CropVolCylinder::OnSpinMaxZ( wxSpinEvent &event ) { SCIRun::ThrowSkinnerSignalEvent *tsse = new SCIRun::ThrowSkinnerSignalEvent("Painter::RedrawAll"); tsse->add_var("Painter::crop::max::z", SCIRun::to_string(event.GetPosition())); SCIRun::Painter::ThrowSkinnerSignal(tsse); }
/*! * wxEVT_COMMAND_BUTTON_CLICKED event handler for ERASE_BUTTON */ void PolylineToolPanel::OnEraseButtonClick( wxCommandEvent& event ) { wxBeginBusyCursor(); SCIRun::ThrowSkinnerSignalEvent *tsse = new SCIRun::ThrowSkinnerSignalEvent("Painter::FinishTool"); tsse->add_var("Painter::polylinetool_erase", "1"); SCIRun::Painter::ThrowSkinnerSignal(tsse); wxEndBusyCursor(); }
void IntensityCorrectionFilterPanel::OnStartButtonClick( wxCommandEvent& event ) { SCIRun::ThrowSkinnerSignalEvent *tsse = new SCIRun::ThrowSkinnerSignalEvent("Painter::FinishTool"); tsse->add_var("Painter::IntensityCorrection::order", SCIRun::to_string(mOrder->GetValue())); tsse->add_var("Painter::IntensityCorrection::::edge", wx2std(mEdge->GetValue())); SCIRun::Painter::ThrowSkinnerSignal(tsse, false); }
/*! * wxEVT_COMMAND_BUTTON_CLICKED event handler for START_BUTTON */ void ITKCurvatureAnistopricDiffusionFilter::OnStartButtonClick( wxCommandEvent& event ) { SCIRun::ThrowSkinnerSignalEvent *tsse = new SCIRun::ThrowSkinnerSignalEvent("Painter::FinishTool"); tsse->add_var("ITKCurvatureAnisotropicDiffusionImageFilterTool::numberOfIterations", SCIRun::to_string(mIterations->GetValue())); tsse->add_var("ITKCurvatureAnisotropicDiffusionImageFilterTool::timeStep", wx2std(mTimeSteps->GetValue())); tsse->add_var("ITKCurvatureAnisotropicDiffusionImageFilterTool::conductanceParameter", SCIRun::to_string(mConductance->GetValue())); SCIRun::Painter::ThrowSkinnerSignal(tsse, false); }
/*! * wxEVT_COMMAND_BUTTON_CLICKED event handler for START_BUTTON */ void HistoEqFilter::OnStartButtonClick( wxCommandEvent& event ) { // Call synchronously and wait. wxBeginBusyCursor(); SCIRun::ThrowSkinnerSignalEvent *tsse = new SCIRun::ThrowSkinnerSignalEvent("Painter::HistoEqFilter"); tsse->add_var("Painter::HistoEq::bins", SCIRun::to_string(mIgnore->GetValue())); tsse->add_var("Painter::HistoEq::alpha", wx2std(mAlpha->GetValue())); SCIRun::Painter::ThrowSkinnerSignal(tsse); wxEndBusyCursor(); }
void WindowLevelToolPanel::PushToSkinner() { SCIRun::ThrowSkinnerSignalEvent *tsse = new SCIRun::ThrowSkinnerSignalEvent("Painter::UpdateWindowLevelTool"); tsse->add_var("Painter::windowleveltool_window", wx2std(mWindowValue->GetValue())); tsse->add_var("Painter::windowleveltool_level", wx2std(mLevelValue->GetValue())); SCIRun::Painter::ThrowSkinnerSignal(tsse, false); #ifndef _WIN32 CreateHistogramImage(); #endif }
/*! * wxEVT_COMMAND_BUTTON_CLICKED event handler for START_BUTTON */ void ResampleTool::OnStartButtonClick( wxCommandEvent& event ) { wxBeginBusyCursor(); SCIRun::ThrowSkinnerSignalEvent *tsse = new SCIRun::ThrowSkinnerSignalEvent("Painter::FinishTool"); tsse->add_var( "Painter::Resample::x", SCIRun::to_string( mX->GetValue() ) ); tsse->add_var( "Painter::Resample::y", SCIRun::to_string( mY->GetValue() ) ); tsse->add_var( "Painter::Resample::z", SCIRun::to_string( mZ->GetValue() ) ); tsse->add_var( "Painter::Resample::filter", wx2std( mFilter->GetStringSelection() ) ); SCIRun::Painter::ThrowSkinnerSignal(tsse); wxEndBusyCursor(); SCIRun::Painter::global_seg3dframe_pointer_->HideTool(); }