Basic Image AlgorithmS Library  2.8.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | Protected Member Functions | List of all members
BIAS::FilterDialogGauss< InputST, OutputST > Class Template Reference

Implementation of a Gauss filter dialog. More...

#include <Gui/FilterDialogGauss.hh>

+ Inheritance diagram for BIAS::FilterDialogGauss< InputST, OutputST >:
+ Collaboration diagram for BIAS::FilterDialogGauss< InputST, OutputST >:

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
 
 FilterDialogGauss (const Image< InputST > &origImg, wxWindow *parent, wxWindowID id=BIAS::ID_WIN_GAUSS, const wxString &title=wxT("Gauss Filter Dialog"), const wxString &name=wxT("FilterDialogGauss"))
 
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 ~FilterDialogGauss ()
 

Protected Member Functions

virtual void OnCancelButton (wxCommandEvent &WXUNUSED(event))
 Quits the dialog. More...
 
void OnFilterButton (wxCommandEvent &WXUNUSED(event))
 concrete Implementation of the pure OnFilterButton() from the base class. More...
 
virtual void OnPreviewButton (wxCommandEvent &WXUNUSED(event))
 Shows the filtered image. More...
 
void OnResetButton (wxCommandEvent &event)
 
virtual void OnResetButton (wxCommandEvent &WXUNUSED(event))
 Reset the original image but it does not reset the given parameter(s) More...
 

Detailed Description

template<class InputST, class OutputST>
class BIAS::FilterDialogGauss< InputST, OutputST >

Implementation of a Gauss filter dialog.

Author
jfernand 08/09

Definition at line 41 of file FilterDialogGauss.hh.

Constructor & Destructor Documentation

template<class InputST , class OutputST >
FilterDialogGauss::FilterDialogGauss ( const Image< InputST > &  origImg,
wxWindow parent,
wxWindowID  id = BIAS::ID_WIN_GAUSS,
const wxString &  title = wxT("Gauss Filter Dialog"),
const wxString &  name = wxT("FilterDialogGauss< InputST, OutputST >") 
)
template<class InputST , class OutputST >
FilterDialogGauss::~FilterDialogGauss ( )
virtual

Definition at line 78 of file FilterDialogGauss.cpp.

Member Function Documentation

template<class InputST , class OutputST >
void FilterDialogBase::CopyOriginalImage ( )
virtualinherited

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.

template<class InputST , class OutputST >
void FilterDialogBase::EnableCancelButton ( bool  enable = true) const
virtualinherited

Definition at line 290 of file FilterDialogBase.cpp.

template<class InputST , class OutputST >
void FilterDialogBase::EnableFilterButton ( bool  enable = true) const
virtualinherited

Definition at line 269 of file FilterDialogBase.cpp.

template<class InputST , class OutputST >
void FilterDialogBase::EnablePreviewButton ( bool  enable = true) const
virtualinherited

Definition at line 276 of file FilterDialogBase.cpp.

template<class InputST , class OutputST >
void FilterDialogBase::EnableResetButton ( bool  enable = true) const
virtualinherited

Definition at line 283 of file FilterDialogBase.cpp.

template<class InputST , class OutputST >
void FilterDialogBase::EnableSaveButton ( bool  enable = true) const
virtualinherited

Definition at line 262 of file FilterDialogBase.cpp.

template<class InputST , class OutputST >
wxBoxSizer * FilterDialogBase::GetButtonSizer ( ) const
virtualinherited
Returns
pointer to the sizer which holds the buttons Orientation: wxHORIZONTAL

Definition at line 143 of file FilterDialogBase.cpp.

template<class InputST , class OutputST >
Image< OutputST > FilterDialogBase::GetFilteredImage ( ) const
inherited
Returns
filtered image if it was succesfully filtered

Definition at line 157 of file FilterDialogBase.cpp.

template<class InputST , class OutputST >
bool FilterDialogBase::GetImageIsFiltered ( ) const
virtualinherited
Returns
TRUE if image was filtered

Definition at line 164 of file FilterDialogBase.cpp.

template<class InputST , class OutputST >
wxBoxSizer * FilterDialogBase::GetMainSizer ( ) const
virtualinherited

Orientation: wxVERTICAL.

Returns
pointer to the main sizer of this window

Definition at line 129 of file FilterDialogBase.cpp.

template<class InputST , class OutputST >
Image< InputST > FilterDialogBase::GetOriginalImage ( ) const
inherited
Returns
original (NEVER filtered!!!) image

Definition at line 150 of file FilterDialogBase.cpp.

template<class InputST , class OutputST >
wxBoxSizer * FilterDialogBase::GetParamSizer ( ) const
virtualinherited

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

Returns
pointer to the sizer (wxHORIZONTAL).

Definition at line 136 of file FilterDialogBase.cpp.

template<class InputST , class OutputST >
wxString FilterDialogBase::GetSavedImagePath ( ) const
virtualinherited
Returns
the directory in which the filtered image was saved

Definition at line 171 of file FilterDialogBase.cpp.

template<class InputST , class OutputST >
void FilterDialogBase::OnCancelButton ( wxCommandEvent &  WXUNUSEDevent)
protectedvirtualinherited

Quits the dialog.

Definition at line 332 of file FilterDialogBase.cpp.

Referenced by BIAS::FilterDialogBase< InputST, OutputST >::FilterDialogBase().

template<class InputST , class OutputST >
void FilterDialogGauss::OnFilterButton ( wxCommandEvent &  WXUNUSEDevent)
protectedvirtual

concrete Implementation of the pure OnFilterButton() from the base class.

Implements BIAS::FilterDialogBase< InputST, OutputST >.

Definition at line 93 of file FilterDialogGauss.cpp.

Referenced by BIAS::FilterDialogGauss< InputST, OutputST >::FilterDialogGauss().

template<class InputST , class OutputST >
void FilterDialogBase::OnPreviewButton ( wxCommandEvent &  WXUNUSEDevent)
protectedvirtualinherited

Shows the filtered image.

Definition at line 308 of file FilterDialogBase.cpp.

References BIAS::ID_WIN_PREVIEW.

Referenced by BIAS::FilterDialogBase< InputST, OutputST >::FilterDialogBase().

template<class InputST , class OutputST >
void FilterDialogGauss::OnResetButton ( wxCommandEvent &  event)
protected
template<class InputST , class OutputST >
void FilterDialogBase::OnResetButton ( wxCommandEvent &  WXUNUSEDevent)
protectedvirtualinherited
template<class InputST , class OutputST >
void FilterDialogBase::RemoveLine ( )
virtualinherited

Just for optical reason, if you don't want that line, just remove it.

Definition at line 297 of file FilterDialogBase.cpp.

template<class InputST , class OutputST >
void FilterDialogBase::SaveFilteredImage ( wxCommandEvent &  WXUNUSEDevent)
inherited

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().

template<class InputST , class OutputST >
void FilterDialogBase::SetFilteredImage ( const Image< OutputST > &  img)
virtualinherited

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.

template<class InputST , class OutputST >
void FilterDialogBase::SetImageIsFiltered ( const bool  filtered)
virtualinherited

Sets if image was filtered or not.

Definition at line 195 of file FilterDialogBase.cpp.

template<class InputST , class OutputST >
void FilterDialogBase::SetOriginalImage ( const Image< InputST > &  img)
virtualinherited

Sets the source image for filter.

Definition at line 179 of file FilterDialogBase.cpp.


The documentation for this class was generated from the following files: