Basic Image AlgorithmS Library  2.8.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
BIAS::ImageLegendFrame Class Reference

Frame to display a Image legend, for example in biasviewwx. More...

#include <Gui/ImageLegendFrame.hh>

+ Inheritance diagram for BIAS::ImageLegendFrame:
+ Collaboration diagram for BIAS::ImageLegendFrame:

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::ImageCanvaswindow_
 
wxSpinCtrl * xSpin_
 
wxSpinCtrl * ySpin_
 

Detailed Description

Frame to display a Image legend, for example in biasviewwx.

Author
ischiller 11/2010

Definition at line 47 of file ImageLegendFrame.hh.

Constructor & Destructor Documentation

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.

Member Function Documentation

void ImageLegendFrame::OnClose ( wxCloseEvent &  event)
protected

Definition at line 231 of file ImageLegendFrame.cpp.

void BIAS::ImageLegendFrame::OnLegendSize ( wxSpinEvent &  event)
protected
void ImageLegendFrame::OnQuit ( wxCommandEvent &  event)
protected

Definition at line 224 of file ImageLegendFrame.cpp.

void ImageLegendFrame::OnSave ( wxCommandEvent &  event)
protected
void ImageLegendFrame::OnSize ( wxSizeEvent &  event)
protected

Definition at line 238 of file ImageLegendFrame.cpp.

References window_.

void BIAS::ImageLegendFrame::OnTicks ( wxSpinEvent &  event)
protected
void ImageLegendFrame::SetImage ( BIAS::Image< unsigned char > &  im)
void ImageLegendFrame::SetImage ( BIAS::Image< float > &  im)
void ImageLegendFrame::SetImage ( BIAS::ImageBase im)
void ImageLegendFrame::SetLegendSize ( unsigned  width,
unsigned  height 
)

Definition at line 142 of file ImageLegendFrame.cpp.

void ImageLegendFrame::Setup ( wxSize  size = wxSize(300, 250))
protected

Definition at line 67 of file ImageLegendFrame.cpp.

References BIAS::AsciiToWx(), ticksSpin_, vbHeight_, vbWidth_, window_, xSpin_, and ySpin_.

Referenced by ImageLegendFrame().

Member Data Documentation

std::string BIAS::ImageLegendFrame::defaultDir_
protected

Definition at line 70 of file ImageLegendFrame.hh.

Referenced by ImageLegendFrame(), and OnSave().

std::string BIAS::ImageLegendFrame::defaultFile_
protected

Definition at line 70 of file ImageLegendFrame.hh.

Referenced by ImageLegendFrame(), and OnSave().

wxSpinCtrl* BIAS::ImageLegendFrame::ticksSpin_
protected

Definition at line 71 of file ImageLegendFrame.hh.

Referenced by Setup().

ImageValueBar<float> BIAS::ImageLegendFrame::vbFL_
protected

Definition at line 84 of file ImageLegendFrame.hh.

unsigned BIAS::ImageLegendFrame::vbHeight_
protected

Definition at line 81 of file ImageLegendFrame.hh.

Referenced by ImageLegendFrame(), SetImage(), and Setup().

ImageValueBar<unsigned char> BIAS::ImageLegendFrame::vbUC_
protected

Definition at line 83 of file ImageLegendFrame.hh.

Referenced by SetImage().

unsigned BIAS::ImageLegendFrame::vbWidth_
protected

Definition at line 81 of file ImageLegendFrame.hh.

Referenced by ImageLegendFrame(), SetImage(), and Setup().

BIAS::ImageCanvas* BIAS::ImageLegendFrame::window_
protected

Definition at line 80 of file ImageLegendFrame.hh.

Referenced by ImageLegendFrame(), OnSave(), OnSize(), SetImage(), and Setup().

wxSpinCtrl * BIAS::ImageLegendFrame::xSpin_
protected

Definition at line 71 of file ImageLegendFrame.hh.

Referenced by Setup().

wxSpinCtrl * BIAS::ImageLegendFrame::ySpin_
protected

Definition at line 71 of file ImageLegendFrame.hh.

Referenced by Setup().


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