Basic Image AlgorithmS Library
2.8.0
|
Base class for all filter dialogs. More...
#include <Gui/FilterDialogBase.hh>
Public Member Functions | |
virtual void | CopyOriginalImage () |
Copy the OrigImg's content to the FilteredImage. More... | |
virtual void | EnableCancelButton (bool enable=true) const |
virtual void | EnableFilterButton (bool enable=true) const |
virtual void | EnablePreviewButton (bool enable=true) const |
virtual void | EnableResetButton (bool enable=true) const |
virtual void | EnableSaveButton (bool enable=true) const |
FilterDialogBase (const Image< InputST > &origImg, wxWindow *parent, wxWindowID id, const wxString &title, const wxString &name=wxT("Filter Dialog Base"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_FRAME_STYLE &~(wxRESIZE_BORDER|wxMAXIMIZE_BOX)) | |
virtual wxBoxSizer * | GetButtonSizer () const |
Image< OutputST > | GetFilteredImage () const |
virtual bool | GetImageIsFiltered () const |
virtual wxBoxSizer * | GetMainSizer () const |
Orientation: wxVERTICAL. More... | |
Image< InputST > | GetOriginalImage () const |
virtual wxBoxSizer * | GetParamSizer () const |
It's purpose is to hold few elements like spinctrl/slider/etc for parameter inputs. More... | |
virtual wxString | GetSavedImagePath () const |
virtual void | RemoveLine () |
Just for optical reason, if you don't want that line, just remove it. More... | |
void | SaveFilteredImage (wxCommandEvent &WXUNUSED(event)) |
Save the image to the disk. More... | |
virtual void | SetFilteredImage (const Image< OutputST > &img) |
Sets the filtered image. More... | |
virtual void | SetImageIsFiltered (const bool filtered) |
Sets if image was filtered or not. More... | |
virtual void | SetOriginalImage (const Image< InputST > &img) |
Sets the source image for filter. More... | |
virtual | ~FilterDialogBase () |
Protected Member Functions | |
virtual void | OnCancelButton (wxCommandEvent &WXUNUSED(event)) |
Quits the dialog. More... | |
virtual void | OnFilterButton (wxCommandEvent &WXUNUSED(event))=0 |
The save logic should be implemented here. More... | |
virtual void | OnPreviewButton (wxCommandEvent &WXUNUSED(event)) |
Shows the filtered image. More... | |
virtual void | OnResetButton (wxCommandEvent &WXUNUSED(event)) |
Reset the original image but it does not reset the given parameter(s) More... | |
Base class for all filter dialogs.
this class is a simple container with some gui elements and it provides some very basic funtionality. It doesn't contain a Filter because it is intended that subclasses can take whatever Filter they want.
Definition at line 58 of file FilterDialogBase.hh.
FilterDialogBase::FilterDialogBase | ( | const Image< InputST > & | origImg, |
wxWindow * | parent, | ||
wxWindowID | id, | ||
const wxString & | title, | ||
const wxString & | name = wxT("Filter Dialog Base") , |
||
const wxPoint & | pos = wxDefaultPosition , |
||
const wxSize & | size = wxDefaultSize , |
||
long | style = wxDEFAULT_FRAME_STYLE & ~ (wxRESIZE_BORDER | wxMAXIMIZE_BOX) |
||
) |
Definition at line 39 of file FilterDialogBase.cpp.
References BIAS::ID_BTN_FILTER_FDB, BIAS::ID_BTN_PREVIEW_FDB, BIAS::ID_BTN_RESET_FDB, BIAS::FilterDialogBase< InputST, OutputST >::OnCancelButton(), BIAS::FilterDialogBase< InputST, OutputST >::OnPreviewButton(), BIAS::FilterDialogBase< InputST, OutputST >::OnResetButton(), and BIAS::FilterDialogBase< InputST, OutputST >::SaveFilteredImage().
|
virtual |
Definition at line 125 of file FilterDialogBase.cpp.
|
virtual |
Copy the OrigImg's content to the FilteredImage.
Definition at line 202 of file FilterDialogBase.cpp.
References BIAS::ImageConvert::ConvertST(), BIAS::ImageBase::ST_float, and BIAS::ImageBase::ST_unsignedchar.
|
virtual |
Definition at line 290 of file FilterDialogBase.cpp.
|
virtual |
Definition at line 269 of file FilterDialogBase.cpp.
|
virtual |
Definition at line 276 of file FilterDialogBase.cpp.
|
virtual |
Definition at line 283 of file FilterDialogBase.cpp.
|
virtual |
Definition at line 262 of file FilterDialogBase.cpp.
|
virtual |
Definition at line 143 of file FilterDialogBase.cpp.
Image< OutputST > FilterDialogBase::GetFilteredImage | ( | ) | const |
Definition at line 157 of file FilterDialogBase.cpp.
|
virtual |
Definition at line 164 of file FilterDialogBase.cpp.
|
virtual |
Orientation: wxVERTICAL.
Definition at line 129 of file FilterDialogBase.cpp.
Image< InputST > FilterDialogBase::GetOriginalImage | ( | ) | const |
Definition at line 150 of file FilterDialogBase.cpp.
|
virtual |
It's purpose is to hold few elements like spinctrl/slider/etc for parameter inputs.
If you want elements to be added vertically, then add another sizer in this sizer with your flavor.
Orientation: wxHORIZONTAL
Definition at line 136 of file FilterDialogBase.cpp.
|
virtual |
Definition at line 171 of file FilterDialogBase.cpp.
|
protectedvirtual |
Quits the dialog.
Definition at line 332 of file FilterDialogBase.cpp.
Referenced by BIAS::FilterDialogBase< InputST, OutputST >::FilterDialogBase().
|
protectedpure virtual |
The save logic should be implemented here.
The filter logic should be implemented here
Implemented in BIAS::FilterDialogRescale< InputST, OutputST >, BIAS::FilterDialogMean< InputST, OutputST >, BIAS::FilterDialogCannyEdge< InputST, OutputST >, BIAS::FilterDialogMedian< InputST, OutputST >, BIAS::FilterDialogGauss< InputST, OutputST >, and BIAS::FilterDialogGradientSobel3x3< InputST, OutputST >.
|
protectedvirtual |
Shows the filtered image.
Definition at line 308 of file FilterDialogBase.cpp.
References BIAS::ID_WIN_PREVIEW.
Referenced by BIAS::FilterDialogBase< InputST, OutputST >::FilterDialogBase().
|
protectedvirtual |
Reset the original image but it does not reset the given parameter(s)
Definition at line 321 of file FilterDialogBase.cpp.
Referenced by BIAS::FilterDialogBase< InputST, OutputST >::FilterDialogBase(), BIAS::FilterDialogGradientSobel3x3< InputST, OutputST >::OnResetButton(), BIAS::FilterDialogGauss< InputST, OutputST >::OnResetButton(), BIAS::FilterDialogCannyEdge< InputST, OutputST >::OnResetButton(), BIAS::FilterDialogMedian< InputST, OutputST >::OnResetButton(), BIAS::FilterDialogMean< InputST, OutputST >::OnResetButton(), and BIAS::FilterDialogRescale< InputST, OutputST >::OnResetButton().
|
virtual |
Just for optical reason, if you don't want that line, just remove it.
Definition at line 297 of file FilterDialogBase.cpp.
void FilterDialogBase::SaveFilteredImage | ( | wxCommandEvent & | WXUNUSEDevent | ) |
Save the image to the disk.
Definition at line 236 of file FilterDialogBase.cpp.
References BIAS::ImageIO::Save().
Referenced by BIAS::FilterDialogBase< InputST, OutputST >::FilterDialogBase().
|
virtual |
Sets the filtered image.
Used by derived classes for replacing the old filtered image with that from the successful filter procedure.
Definition at line 188 of file FilterDialogBase.cpp.
|
virtual |
Sets if image was filtered or not.
Definition at line 195 of file FilterDialogBase.cpp.
|
virtual |
Sets the source image for filter.
Definition at line 179 of file FilterDialogBase.cpp.