[an error occurred while processing this directive]
Main Page | Modules | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

CenterCanvas Class Reference

adjustment image view More...

#include <CropPanel.h>

List of all members.

Public Member Functions

 CenterCanvas ()
bool Create (wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL, const wxString &name=wxT("panel"))
void Init (CropPanel *listener)
virtual ~CenterCanvas (void)
void SetImage (ImageCache::EntryPtr img)
 set image and crop parameters
void UpdateDisplay (const vigra::Rect2D &crop, bool circle, const vigra::Point2D &center, bool useCenter)

Protected Member Functions

void DrawView ()
 draw the view into the offscreen buffer
void UpdateCropCircle ()

Protected Attributes

wxCursor * m_cursor_no_sel
wxCursor * m_cursor_circ_drag
wxCursor * m_cursor_move_crop
wxCursor * m_cursor_drag_vert
wxCursor * m_cursor_drag_horiz

Detailed Description

adjustment image view

Define a new canvas which can receive some events.

Constructor & Destructor Documentation

CenterCanvas::CenterCanvas  ) 

CenterCanvas::~CenterCanvas void   )  [virtual]

Member Function Documentation

bool CenterCanvas::Create wxWindow *  parent,
wxWindowID  id = wxID_ANY,
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxDefaultSize,
long  style = wxTAB_TRAVERSAL,
const wxString &  name = wxT("panel")

void CenterCanvas::DrawView  )  [protected]

draw the view into the offscreen buffer

void CenterCanvas::Init CropPanel listener  ) 

void CenterCanvas::SetImage ImageCache::EntryPtr  img  ) 

set image and crop parameters

void CenterCanvas::UpdateCropCircle  )  [protected]

void CenterCanvas::UpdateDisplay const vigra::Rect2D &  crop,
bool  circle,
const vigra::Point2D &  center,
bool  useCenter

Member Data Documentation

wxCursor* CenterCanvas::m_cursor_circ_drag [protected]

wxCursor* CenterCanvas::m_cursor_drag_horiz [protected]

wxCursor* CenterCanvas::m_cursor_drag_vert [protected]

wxCursor* CenterCanvas::m_cursor_move_crop [protected]

wxCursor* CenterCanvas::m_cursor_no_sel [protected]

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

Generated on Mon Sep 20 01:01:33 2010 for Hugintrunk by doxygen