3Depict
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | List of all members
CropPanel Class Reference

#include <cropPanel.h>

Inheritance diagram for CropPanel:
Inheritance graph
[legend]
Collaboration diagram for CropPanel:
Collaboration graph
[legend]

Public Member Functions

 CropPanel (wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL)
 
bool hasUpdate ()
 
void clearUpdate ()
 
void getCropValues (float *array) const
 
void setCropValue (unsigned int index, float v)
 Directly set the crop value, (0->1), index can be 0->3. More...
 
void makeCropValuesValid ()
 
void link (CropPanel *otherPanel, unsigned int mode)
 Link this panel's updates to another. Use CROP_LINK_NONE to disable. More...
 
void OnEraseBackground (wxEraseEvent &event)
 
void mouseMove (wxMouseEvent &event)
 
void mouseDown (wxMouseEvent &event)
 
void mouseReleased (wxMouseEvent &event)
 
void mouseLeftWindow (wxMouseEvent &event)
 
void mouseDoubleLeftClick (wxMouseEvent &event)
 
void onPaint (wxPaintEvent &evt)
 
void onResize (wxSizeEvent &evt)
 
void updateLinked ()
 
 ~CropPanel ()
 

Constructor & Destructor Documentation

◆ CropPanel()

CropPanel::CropPanel ( wxWindow *  parent,
wxWindowID  id = wxID_ANY,
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxDefaultSize,
long  style = wxTAB_TRAVERSAL 
)

References CROP_LINK_NONE, and SELECT_MODE_NONE.

◆ ~CropPanel()

CropPanel::~CropPanel ( )
inline

Member Function Documentation

◆ clearUpdate()

void CropPanel::clearUpdate ( )
inline

◆ getCropValues()

void CropPanel::getCropValues ( float *  array) const

References CROP_BOTTOM, CROP_LEFT, CROP_RIGHT, and CROP_TOP.

Referenced by clearUpdate().

Here is the caller graph for this function:

◆ hasUpdate()

bool CropPanel::hasUpdate ( )
inline

◆ link()

void CropPanel::link ( CropPanel otherPanel,
unsigned int  mode 
)

Link this panel's updates to another. Use CROP_LINK_NONE to disable.

References CROP_ENUM_END, and CROP_LINK_NONE.

Referenced by clearUpdate(), and MainWindowFrame::MainWindowFrame().

Here is the caller graph for this function:

◆ makeCropValuesValid()

void CropPanel::makeCropValuesValid ( )

References CROP_BOTTOM, CROP_LEFT, CROP_RIGHT, and CROP_TOP.

Referenced by clearUpdate().

Here is the caller graph for this function:

◆ mouseDoubleLeftClick()

void CropPanel::mouseDoubleLeftClick ( wxMouseEvent &  event)

References ASSERT, SELECT_MODE_CENTRE, SELECT_MODE_CORNER, SELECT_MODE_NONE, SELECT_MODE_SIDE, and updateLinked().

Referenced by clearUpdate().

Here is the caller graph for this function:

◆ mouseDown()

void CropPanel::mouseDown ( wxMouseEvent &  event)

References ASSERT, and SELECT_MODE_NONE.

Referenced by clearUpdate().

Here is the caller graph for this function:

◆ mouseLeftWindow()

void CropPanel::mouseLeftWindow ( wxMouseEvent &  event)

References SELECT_MODE_NONE.

Referenced by clearUpdate().

Here is the caller graph for this function:

◆ mouseMove()

void CropPanel::mouseMove ( wxMouseEvent &  event)

References ASSERT, CROP_BOTTOM, CROP_LEFT, CROP_RIGHT, CROP_TOP, SELECT_MODE_CENTRE, SELECT_MODE_CORNER, SELECT_MODE_NONE, SELECT_MODE_SIDE, and updateLinked().

Referenced by clearUpdate().

Here is the caller graph for this function:

◆ mouseReleased()

void CropPanel::mouseReleased ( wxMouseEvent &  event)

References CROP_BOTTOM, CROP_LEFT, CROP_RIGHT, CROP_TOP, and SELECT_MODE_NONE.

Referenced by clearUpdate().

Here is the caller graph for this function:

◆ OnEraseBackground()

void CropPanel::OnEraseBackground ( wxEraseEvent &  event)

Referenced by clearUpdate().

Here is the caller graph for this function:

◆ onPaint()

void CropPanel::onPaint ( wxPaintEvent &  evt)

References ASSERT, CROP_BOTTOM, CROP_LEFT, CROP_RIGHT, CROP_TOP, SELECT_MODE_CENTRE, SELECT_MODE_CORNER, and SELECT_MODE_SIDE.

Referenced by clearUpdate().

Here is the caller graph for this function:

◆ onResize()

void CropPanel::onResize ( wxSizeEvent &  evt)

Referenced by clearUpdate().

Here is the caller graph for this function:

◆ setCropValue()

void CropPanel::setCropValue ( unsigned int  index,
float  v 
)

Directly set the crop value, (0->1), index can be 0->3.

References ASSERT, and CROP_BOTTOM.

Referenced by clearUpdate().

Here is the caller graph for this function:

◆ updateLinked()

void CropPanel::updateLinked ( )

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