casa
$Rev:20696$
|
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. | |
DDDHandle (Double posx, Double posy, DDDHandle::Size size=DDDHandle::MEDIUM) | |
Constructor taking the position where to place the handle and it's size. | |
virtual | ~DDDHandle () |
Destructor. | |
virtual Bool | underCursor (Double posx, Double posy) const |
This function returns true when the input poistion is within the handle. | |
virtual void | resize (const DDDHandle::Size &size) |
give the handle a new size | |
virtual void | move (Double dx, Double dy) |
move the handle to a new position | |
virtual Double | blcX () const |
utility funtions to retrieve blc/trc of the handle or the handle corners | |
virtual Double | blcY () const |
virtual Double | trcX () const |
virtual Double | trcY () const |
Matrix< Double > | getHandle () const |
void | createHandle (Double x, Double y) |
set up the handle | |
void | createHandle (const Vector< Double > &point) |
DDDHandle (const DDDHandle &) | |
void | operator= (const DDDHandle &) |
Private Attributes | |
Matrix< Double > | itsCorners |
the corners | |
DDDHandle::Size | itsSize |
the size |
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
Definition at line 50 of file DDDHandle.h.
Default constructor.
casa::DDDHandle::DDDHandle | ( | Double | posx, |
Double | posy, | ||
DDDHandle::Size | size = DDDHandle::MEDIUM |
||
) |
Constructor taking the position where to place the handle and it's size.
virtual casa::DDDHandle::~DDDHandle | ( | ) | [virtual] |
Destructor.
casa::DDDHandle::DDDHandle | ( | const DDDHandle & | ) |
virtual Double casa::DDDHandle::blcX | ( | ) | const [virtual] |
utility funtions to retrieve blc/trc of the handle or the handle corners
virtual Double casa::DDDHandle::blcY | ( | ) | const [virtual] |
void casa::DDDHandle::createHandle | ( | Double | x, |
Double | y | ||
) |
set up the handle
void casa::DDDHandle::createHandle | ( | const Vector< Double > & | point | ) |
Matrix<Double> casa::DDDHandle::getHandle | ( | ) | const [inline] |
Definition at line 74 of file DDDHandle.h.
References itsCorners.
virtual void casa::DDDHandle::move | ( | Double | dx, |
Double | dy | ||
) | [virtual] |
move the handle to a new position
void casa::DDDHandle::operator= | ( | const DDDHandle & | ) |
virtual void casa::DDDHandle::resize | ( | const DDDHandle::Size & | size | ) | [virtual] |
give the handle a new size
virtual Double casa::DDDHandle::trcX | ( | ) | const [virtual] |
virtual Double casa::DDDHandle::trcY | ( | ) | const [virtual] |
virtual Bool casa::DDDHandle::underCursor | ( | Double | posx, |
Double | posy | ||
) | const [virtual] |
This function returns true when the input poistion is within the handle.
Matrix<Double> casa::DDDHandle::itsCorners [private] |
DDDHandle::Size casa::DDDHandle::itsSize [private] |
the size
Definition at line 90 of file DDDHandle.h.