rasdaman complete source
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
pixmapCanvas Class Reference

#include <rviewDModes.hh>

Inheritance diagram for pixmapCanvas:

Public Member Functions

 pixmapCanvas (rviewImage *parent, int x, int y, int w, int h, long style=0)
 
 ~pixmapCanvas (void)
 
void setPixmap (wxPixmap *pmap)
 
void updateDisplay (bool borders=FALSE)
 
void OnPaint (void)
 
void OnEvent (wxMouseEvent &mevt)
 
void SetAspectRatio (double ratio)
 
void ToggleDragBox (bool clearMode)
 
void SetDragBox (int x0, int y0, int x1, int y1)
 
bool HasDragBox (void) const
 
bool GetDragBox (int &x0, int &y0, int &x1, int &y1) const
 
void UpdateDragBox (int x1, int y1)
 
void AdjustDragBox (int x1, int y1)
 

Protected Member Functions

void paintCore (int x, int y)
 
void adjustBoxToRatio (void)
 

Protected Attributes

wxPixmappixmap
 
wxDC * myDC
 
wxBrush brush
 
wxBrush border
 
wxBrush textBack
 
wxPen bpen
 
wxPen fpen
 
wxFont * font
 
rviewImageparentWin
 
int pixWidth
 
int pixHeight
 
int offX
 
int offY
 
int rect_x0
 
int rect_y0
 
int rect_x1
 
int rect_y1
 
double aspectRatio
 
wxRect textBBox
 

Constructor & Destructor Documentation

pixmapCanvas::pixmapCanvas ( rviewImage parent,
int  x,
int  y,
int  w,
int  h,
long  style = 0 
)
pixmapCanvas::~pixmapCanvas ( void  )

Member Function Documentation

void pixmapCanvas::adjustBoxToRatio ( void  )
protected
void pixmapCanvas::AdjustDragBox ( int  x1,
int  y1 
)
bool pixmapCanvas::GetDragBox ( int &  x0,
int &  y0,
int &  x1,
int &  y1 
) const
bool pixmapCanvas::HasDragBox ( void  ) const
void pixmapCanvas::OnEvent ( wxMouseEvent &  mevt)
void pixmapCanvas::OnPaint ( void  )
void pixmapCanvas::paintCore ( int  x,
int  y 
)
protected
void pixmapCanvas::SetAspectRatio ( double  ratio)
void pixmapCanvas::SetDragBox ( int  x0,
int  y0,
int  x1,
int  y1 
)
void pixmapCanvas::setPixmap ( wxPixmap pmap)
void pixmapCanvas::ToggleDragBox ( bool  clearMode)
void pixmapCanvas::updateDisplay ( bool  borders = FALSE)
void pixmapCanvas::UpdateDragBox ( int  x1,
int  y1 
)

Member Data Documentation

double pixmapCanvas::aspectRatio
protected
wxBrush pixmapCanvas::border
protected
wxPen pixmapCanvas::bpen
protected
wxBrush pixmapCanvas::brush
protected
wxFont* pixmapCanvas::font
protected
wxPen pixmapCanvas::fpen
protected
wxDC* pixmapCanvas::myDC
protected
int pixmapCanvas::offX
protected
int pixmapCanvas::offY
protected
rviewImage* pixmapCanvas::parentWin
protected
int pixmapCanvas::pixHeight
protected
wxPixmap* pixmapCanvas::pixmap
protected
int pixmapCanvas::pixWidth
protected
int pixmapCanvas::rect_x0
protected
int pixmapCanvas::rect_x1
protected
int pixmapCanvas::rect_y0
protected
int pixmapCanvas::rect_y1
protected
wxBrush pixmapCanvas::textBack
protected
wxRect pixmapCanvas::textBBox
protected

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