Basic Image AlgorithmS Library
2.8.0
|
Frame to display a Image legend, for example in biasviewwx. More...
#include <Gui/ImageLegendFrame.hh>
Public Member Functions | |
ImageLegendFrame (wxWindow *parent, const wxString &title, wxPoint pos=wxPoint(10, 10), wxSize size=wxSize(300, 250)) | |
void | SetImage (BIAS::Image< unsigned char > &im) |
void | SetImage (BIAS::Image< float > &im) |
void | SetImage (BIAS::ImageBase &im) |
void | SetLegendSize (unsigned width, unsigned height) |
~ImageLegendFrame () | |
Protected Member Functions | |
void | OnClose (wxCloseEvent &event) |
void | OnLegendSize (wxSpinEvent &event) |
void | OnQuit (wxCommandEvent &event) |
void | OnSave (wxCommandEvent &event) |
void | OnSize (wxSizeEvent &event) |
void | OnTicks (wxSpinEvent &event) |
void | Setup (wxSize size=wxSize(300, 250)) |
Protected Attributes | |
std::string | defaultDir_ |
std::string | defaultFile_ |
wxSpinCtrl * | ticksSpin_ |
ImageValueBar< float > | vbFL_ |
unsigned | vbHeight_ |
ImageValueBar< unsigned char > | vbUC_ |
unsigned | vbWidth_ |
BIAS::ImageCanvas * | window_ |
wxSpinCtrl * | xSpin_ |
wxSpinCtrl * | ySpin_ |
Frame to display a Image legend, for example in biasviewwx.
Definition at line 47 of file ImageLegendFrame.hh.
ImageLegendFrame::ImageLegendFrame | ( | wxWindow * | parent, |
const wxString & | title, | ||
wxPoint | pos = wxPoint(10,10) , |
||
wxSize | size = wxSize(300, 250) |
||
) |
Definition at line 45 of file ImageLegendFrame.cpp.
References defaultDir_, defaultFile_, Setup(), vbHeight_, vbWidth_, and window_.
ImageLegendFrame::~ImageLegendFrame | ( | ) |
Definition at line 127 of file ImageLegendFrame.cpp.
|
protected |
Definition at line 231 of file ImageLegendFrame.cpp.
|
protected |
|
protected |
Definition at line 224 of file ImageLegendFrame.cpp.
|
protected |
Definition at line 204 of file ImageLegendFrame.cpp.
References BIAS::AsciiToWx(), defaultDir_, defaultFile_, BIAS::ImageCanvas::GetImageShown(), BIAS::ImageIO::Save(), and window_.
|
protected |
Definition at line 238 of file ImageLegendFrame.cpp.
References window_.
|
protected |
void ImageLegendFrame::SetImage | ( | BIAS::Image< unsigned char > & | im | ) |
Definition at line 162 of file ImageLegendFrame.cpp.
References BIAS::Image< StorageType >::Clear(), BIAS::ImageBase::CM_RGB, BIAS::ImageBase::GetChannelCount(), BIAS::Image< StorageType >::GetMinMaxPixelValue(), BIAS::Image< StorageType >::Init(), BIAS::ImageBase::IsEmpty(), BIAS::ImageValueBar< StorageType >::SetColorModel(), BIAS::ImageValueBar< StorageType >::SetDisplayRange(), BIAS::ImageValueBar< StorageType >::SetUnit(), BIAS::ImageValueBar< StorageType >::SetValueRange(), BIAS::ImageCanvas::Show(), BIAS::ImageValueBar< StorageType >::Update(), vbHeight_, vbUC_, vbWidth_, and window_.
Referenced by SetImage().
void ImageLegendFrame::SetImage | ( | BIAS::Image< float > & | im | ) |
Definition at line 180 of file ImageLegendFrame.cpp.
References BIAS::Image< StorageType >::Clear(), BIAS::ImageBase::CM_Grey, BIAS::ImageConvert::ConvertST(), BIAS::ImageBase::GetChannelCount(), BIAS::Image< StorageType >::GetMinMaxPixelValue(), BIAS::Image< StorageType >::Init(), BIAS::ImageBase::IsEmpty(), BIAS::Image< StorageType >::ScaleShiftBetween(), BIAS::ImageValueBar< StorageType >::SetColorModel(), BIAS::ImageValueBar< StorageType >::SetDisplayRange(), BIAS::ImageValueBar< StorageType >::SetUnit(), BIAS::ImageValueBar< StorageType >::SetValueRange(), BIAS::ImageCanvas::Show(), BIAS::ImageBase::ST_unsignedchar, BIAS::ImageValueBar< StorageType >::Update(), vbHeight_, vbUC_, vbWidth_, and window_.
void ImageLegendFrame::SetImage | ( | BIAS::ImageBase & | im | ) |
Definition at line 149 of file ImageLegendFrame.cpp.
References BIAS::ImageBase::GetStorageType(), SetImage(), BIAS::ImageBase::ST_float, and BIAS::ImageBase::ST_unsignedchar.
void ImageLegendFrame::SetLegendSize | ( | unsigned | width, |
unsigned | height | ||
) |
Definition at line 142 of file ImageLegendFrame.cpp.
|
protected |
Definition at line 67 of file ImageLegendFrame.cpp.
References BIAS::AsciiToWx(), ticksSpin_, vbHeight_, vbWidth_, window_, xSpin_, and ySpin_.
Referenced by ImageLegendFrame().
|
protected |
Definition at line 70 of file ImageLegendFrame.hh.
Referenced by ImageLegendFrame(), and OnSave().
|
protected |
Definition at line 70 of file ImageLegendFrame.hh.
Referenced by ImageLegendFrame(), and OnSave().
|
protected |
Definition at line 71 of file ImageLegendFrame.hh.
Referenced by Setup().
|
protected |
Definition at line 84 of file ImageLegendFrame.hh.
|
protected |
Definition at line 81 of file ImageLegendFrame.hh.
Referenced by ImageLegendFrame(), SetImage(), and Setup().
|
protected |
Definition at line 83 of file ImageLegendFrame.hh.
Referenced by SetImage().
|
protected |
Definition at line 81 of file ImageLegendFrame.hh.
Referenced by ImageLegendFrame(), SetImage(), and Setup().
|
protected |
Definition at line 80 of file ImageLegendFrame.hh.
Referenced by ImageLegendFrame(), OnSave(), OnSize(), SetImage(), and Setup().
|
protected |
Definition at line 71 of file ImageLegendFrame.hh.
Referenced by Setup().
|
protected |
Definition at line 71 of file ImageLegendFrame.hh.
Referenced by Setup().