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::HistoImageCanvas Class Reference

It's a Canvas used to compute Histogram for current image working. More...

#include <Gui/HistoImageCanvas.hh>

+ Inheritance diagram for BIAS::HistoImageCanvas:
+ Collaboration diagram for BIAS::HistoImageCanvas:

Public Member Functions

 HistoImageCanvas (wxWindow *parent, wxStatusBar *sbar=NULL, int sbarid=0, wxWindowID id=-1, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(272, 216), long style=wxTAB_TRAVERSAL, const wxString &name=wxT("HistoImageCanvas"))
 
void NewImage (BIAS::ImageBase &im)
 
void RefitHistogramm ()
 
bool SameName (wxString name, bool settothenewone)
 
void UpdateHistogramm (ImageBase image)
 
 ~HistoImageCanvas ()
 

Protected Member Functions

void OnMouseLeave (wxMouseEvent &)
 
void OnMouseMove (wxMouseEvent &event)
 
void OnPaint (wxPaintEvent &event)
 
void OnResize (wxSizeEvent &event)
 
void UpdateStatusBar (unsigned mouseX, unsigned mouseY)
 

Protected Attributes

wxBitmap * Bitmap_
 
int histo_channels
 
std::vector< std::vector
< Histo_Entry_Float > > 
histo_float
 
float histo_float_min
 
float histo_float_step
 
int histo_float_steps
 
int histo_float_zero
 
wxString histo_name
 
std::vector< std::vector< float > > histo_percentage
 
std::vector< float > histo_percentage_biggest
 
int histo_size
 
int histo_type
 
std::vector< std::vector< int > > histo_UC
 
wxCoord histoZoom_
 
unsigned int mousex_
 
unsigned int mousey_
 
BIAS::ImageBase origim_
 
wxMutex origim_mutex_
 
wxStatusBar * SBar_
 
int SBarID_
 
BIAS::Image< unsigned char > ucim_
 
int wheight_
 
int wwidth_
 
wxMutex wxbitmap_mutex_
 
wxImage * wximage_
 
BIAS::Image< unsigned char > zim_
 

Detailed Description

It's a Canvas used to compute Histogram for current image working.

Author
amattal
Date
03/2007

Definition at line 38 of file HistoImageCanvas.hh.

Constructor & Destructor Documentation

HistoImageCanvas::HistoImageCanvas ( wxWindow parent,
wxStatusBar *  sbar = NULL,
int  sbarid = 0,
wxWindowID  id = -1,
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxSize(272, 216),
long  style = wxTAB_TRAVERSAL,
const wxString &  name = wxT("HistoImageCanvas") 
)
HistoImageCanvas::~HistoImageCanvas ( )

Definition at line 52 of file HistoImageCanvas.cpp.

Member Function Documentation

void HistoImageCanvas::NewImage ( BIAS::ImageBase im)

Definition at line 499 of file HistoImageCanvas.cpp.

References UpdateHistogramm().

void HistoImageCanvas::OnMouseLeave ( wxMouseEvent &  )
protected

Definition at line 68 of file HistoImageCanvas.cpp.

void HistoImageCanvas::OnMouseMove ( wxMouseEvent &  event)
protected

Definition at line 76 of file HistoImageCanvas.cpp.

References mousex_, mousey_, and UpdateStatusBar().

void HistoImageCanvas::OnPaint ( wxPaintEvent &  event)
protected
void HistoImageCanvas::OnResize ( wxSizeEvent &  event)
protected

Definition at line 516 of file HistoImageCanvas.cpp.

References OnPaint().

void HistoImageCanvas::RefitHistogramm ( )

Definition at line 490 of file HistoImageCanvas.cpp.

bool HistoImageCanvas::SameName ( wxString  name,
bool  settothenewone 
)

Definition at line 505 of file HistoImageCanvas.cpp.

References histo_name.

void HistoImageCanvas::UpdateHistogramm ( ImageBase  image)
void HistoImageCanvas::UpdateStatusBar ( unsigned  mouseX,
unsigned  mouseY 
)
protected

Member Data Documentation

wxBitmap* BIAS::HistoImageCanvas::Bitmap_
protected

Definition at line 64 of file HistoImageCanvas.hh.

int BIAS::HistoImageCanvas::histo_channels
protected

Definition at line 102 of file HistoImageCanvas.hh.

Referenced by HistoImageCanvas(), OnPaint(), UpdateHistogramm(), and UpdateStatusBar().

std::vector<std::vector<Histo_Entry_Float> > BIAS::HistoImageCanvas::histo_float
protected

Definition at line 92 of file HistoImageCanvas.hh.

Referenced by UpdateHistogramm().

float BIAS::HistoImageCanvas::histo_float_min
protected

Definition at line 96 of file HistoImageCanvas.hh.

Referenced by HistoImageCanvas(), UpdateHistogramm(), and UpdateStatusBar().

float BIAS::HistoImageCanvas::histo_float_step
protected

Definition at line 97 of file HistoImageCanvas.hh.

Referenced by HistoImageCanvas(), UpdateHistogramm(), and UpdateStatusBar().

int BIAS::HistoImageCanvas::histo_float_steps
protected

Definition at line 94 of file HistoImageCanvas.hh.

Referenced by HistoImageCanvas(), OnPaint(), UpdateHistogramm(), and UpdateStatusBar().

int BIAS::HistoImageCanvas::histo_float_zero
protected

Definition at line 93 of file HistoImageCanvas.hh.

Referenced by UpdateHistogramm().

wxString BIAS::HistoImageCanvas::histo_name
protected

Definition at line 110 of file HistoImageCanvas.hh.

Referenced by SameName().

std::vector<std::vector<float> > BIAS::HistoImageCanvas::histo_percentage
protected

Definition at line 104 of file HistoImageCanvas.hh.

Referenced by OnPaint(), UpdateHistogramm(), and UpdateStatusBar().

std::vector<float> BIAS::HistoImageCanvas::histo_percentage_biggest
protected

Definition at line 105 of file HistoImageCanvas.hh.

Referenced by OnPaint(), and UpdateHistogramm().

int BIAS::HistoImageCanvas::histo_size
protected

Definition at line 108 of file HistoImageCanvas.hh.

Referenced by UpdateHistogramm().

int BIAS::HistoImageCanvas::histo_type
protected

Definition at line 88 of file HistoImageCanvas.hh.

Referenced by HistoImageCanvas(), OnPaint(), UpdateHistogramm(), and UpdateStatusBar().

std::vector<std::vector<int> > BIAS::HistoImageCanvas::histo_UC
protected

Definition at line 100 of file HistoImageCanvas.hh.

Referenced by UpdateHistogramm().

wxCoord BIAS::HistoImageCanvas::histoZoom_
protected

Definition at line 72 of file HistoImageCanvas.hh.

Referenced by HistoImageCanvas(), OnPaint(), and UpdateStatusBar().

unsigned int BIAS::HistoImageCanvas::mousex_
protected

Definition at line 76 of file HistoImageCanvas.hh.

Referenced by OnMouseMove().

unsigned int BIAS::HistoImageCanvas::mousey_
protected

Definition at line 76 of file HistoImageCanvas.hh.

Referenced by OnMouseMove().

BIAS::ImageBase BIAS::HistoImageCanvas::origim_
protected

Definition at line 67 of file HistoImageCanvas.hh.

wxMutex BIAS::HistoImageCanvas::origim_mutex_
protected

Definition at line 80 of file HistoImageCanvas.hh.

wxStatusBar* BIAS::HistoImageCanvas::SBar_
protected

Definition at line 68 of file HistoImageCanvas.hh.

Referenced by HistoImageCanvas(), and UpdateStatusBar().

int BIAS::HistoImageCanvas::SBarID_
protected

Definition at line 74 of file HistoImageCanvas.hh.

Referenced by HistoImageCanvas(), and UpdateStatusBar().

BIAS::Image<unsigned char> BIAS::HistoImageCanvas::ucim_
protected

Definition at line 66 of file HistoImageCanvas.hh.

int BIAS::HistoImageCanvas::wheight_
protected

Definition at line 78 of file HistoImageCanvas.hh.

int BIAS::HistoImageCanvas::wwidth_
protected

Definition at line 78 of file HistoImageCanvas.hh.

wxMutex BIAS::HistoImageCanvas::wxbitmap_mutex_
protected

Definition at line 80 of file HistoImageCanvas.hh.

wxImage* BIAS::HistoImageCanvas::wximage_
protected

Definition at line 65 of file HistoImageCanvas.hh.

BIAS::Image<unsigned char> BIAS::HistoImageCanvas::zim_
protected

Definition at line 66 of file HistoImageCanvas.hh.


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