casa
5.7.0-16
|
A class to draw and detect handles on a DDDObject. More...
#include <DDDHandle.h>
Public Types | |
enum | Size { NONE, SMALL, MEDIUM, LARGE } |
enum describing the size of the handle More... | |
Public Member Functions | |
DDDHandle () | |
Default constructor. More... | |
DDDHandle (casacore::Double posx, casacore::Double posy, DDDHandle::Size size=DDDHandle::MEDIUM) | |
Constructor taking the position where to place the handle and it's size. More... | |
virtual | ~DDDHandle () |
Destructor. More... | |
virtual casacore::Bool | underCursor (casacore::Double posx, casacore::Double posy) const |
This function returns true when the input poistion is within the handle. More... | |
virtual void | resize (const DDDHandle::Size &size) |
give the handle a new size More... | |
virtual void | move (casacore::Double dx, casacore::Double dy) |
move the handle to a new position More... | |
virtual casacore::Double | blcX () const |
utility funtions to retrieve blc/trc of the handle or the handle corners More... | |
virtual casacore::Double | blcY () const |
virtual casacore::Double | trcX () const |
virtual casacore::Double | trcY () const |
casacore::Matrix < casacore::Double > | getHandle () const |
void | createHandle (casacore::Double x, casacore::Double y) |
set up the handle More... | |
void | createHandle (const casacore::Vector< casacore::Double > &point) |
DDDHandle (const DDDHandle &) | |
void | operator= (const DDDHandle &) |
Private Attributes | |
casacore::Matrix < casacore::Double > | itsCorners |
the corners More... | |
DDDHandle::Size | itsSize |
the size More... | |
A class to draw and detect handles on a DDDObject.
This class defines a square handle and it's behaviour. This can be used to interact with DDDObjects
Definition at line 46 of file DDDHandle.h.
enum describing the size of the handle
Enumerator | |
---|---|
NONE | |
SMALL | |
MEDIUM | |
LARGE |
Definition at line 50 of file DDDHandle.h.
casa::DDDHandle::DDDHandle | ( | ) |
Default constructor.
casa::DDDHandle::DDDHandle | ( | casacore::Double | posx, |
casacore::Double | posy, | ||
DDDHandle::Size | size = DDDHandle::MEDIUM |
||
) |
Constructor taking the position where to place the handle and it's size.
|
virtual |
Destructor.
casa::DDDHandle::DDDHandle | ( | const DDDHandle & | ) |
|
virtual |
utility funtions to retrieve blc/trc of the handle or the handle corners
|
virtual |
void casa::DDDHandle::createHandle | ( | casacore::Double | x, |
casacore::Double | y | ||
) |
set up the handle
void casa::DDDHandle::createHandle | ( | const casacore::Vector< casacore::Double > & | point | ) |
|
inline |
Definition at line 74 of file DDDHandle.h.
References itsCorners.
|
virtual |
move the handle to a new position
void casa::DDDHandle::operator= | ( | const DDDHandle & | ) |
|
virtual |
give the handle a new size
|
virtual |
|
virtual |
|
virtual |
This function returns true when the input poistion is within the handle.
|
private |
|
private |
the size
Definition at line 92 of file DDDHandle.h.