brief description.
|
Public Types |
| enum | ImageRotation { ROT0 = 0,
ROT90,
ROT180,
ROT270
} |
| | image rotation. More...
|
Public Member Functions |
| | CPImageCtrl () |
| | ctor.
|
| 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 (CPEditorPanel *parent) |
| | ~CPImageCtrl () |
| | dtor.
|
| void | SetZoomView (CPZoomDisplayPanel *display) |
| | associate a zoomed display with this image
|
| void | setImage (const std::string &filename, ImageRotation rot) |
| | display img.
|
| void | setCtrlPoints (const std::vector< hugin_utils::FDiff2D > &points) |
| | control point inside this image
|
| void | clearNewPoint () |
| | clear new point
|
| void | setNewPoint (const hugin_utils::FDiff2D &p) |
| | set new point to a specific point
|
| void | selectPoint (unsigned int) |
| | select a point for usage
|
| void | deselect () |
| | remove selection.
|
| void | mousePressLMBEvent (wxMouseEvent &mouse) |
| void | mouseReleaseLMBEvent (wxMouseEvent &mouse) |
| void | mouseReleaseRMBEvent (wxMouseEvent &mouse) |
| void | mouseMoveEvent (wxMouseEvent &mouse) |
| void | mousePressMMBEvent (wxMouseEvent &mouse) |
| void | mouseReleaseMMBEvent (wxMouseEvent &mouse) |
| wxSize | DoGetBestSize () const |
| void | setScale (double factor) |
| | set the scaling factor for cp display.
|
| double | getScale () |
| | return scale factor, 0 for autoscale
|
| void | showPosition (hugin_utils::FDiff2D point, bool warpPointer=false) |
| | Show point x, y.
|
| void | showSearchArea (bool show=true) |
| | show/hide the search area rectangle
|
| void | showTemplateArea (bool show=true) |
| hugin_utils::FDiff2D | getNewPoint () |
| | get the new point
|
| void | update () |
| | initiate redraw
|
| void | ScrollDelta (const wxPoint &delta) |
| | scroll the window by delta pixels
|
| wxPoint | MaxScrollDelta (wxPoint delta) |
| | calculate maximum delta that is allowed when scrolling
|
Protected Member Functions |
| wxRect | drawPoint (wxDC &p, const hugin_utils::FDiff2D &point, int i, bool selected=false) const |
| wxBitmap | generateMagBitmap (hugin_utils::FDiff2D point, wxPoint canvasPos) const |
| void | OnDraw (wxDC &dc) |
| void | OnSize (wxSizeEvent &e) |
| void | OnKey (wxKeyEvent &e) |
| void | OnKeyDown (wxKeyEvent &e) |
| void | OnMouseLeave (wxMouseEvent &e) |
| void | OnMouseEnter (wxMouseEvent &e) |
| void | OnTimer (wxTimerEvent &e) |
| bool | emit (CPEvent &ev) |
| | helper func to emit a region
|
| double | getScaleFactor () const |
| | get scale factor (calculates factor when fit to window is active)
|
| double | calcAutoScaleFactor (wxSize size) |
| | calculate new scale factor for this image
|
| void | rescaleImage () |
brief description.