DDDHandle.h
Classes
- DDDHandle -- A class to draw and detect handles on a DDDObject (full description)
Types
- NONE = 0
-
- SMALL
-
- MEDIUM
-
- LARGE
-
Interface
- Public Members
- DDDHandle()
- DDDHandle(Double posx, Double posy, DDDHandle::Size size=DDDHandle::MEDIUM)
- virtual ~DDDHandle()
- virtual Bool underCursor(Double posx, Double posy) const
- virtual void resize(const DDDHandle::Size& size)
- virtual void move(Double dx, Double dy)
- virtual Double blcX() const
- virtual Double blcY() const
- virtual Double trcX() const
- virtual Double trcY() const
- Matrix<Double> getHandle() const
- void createHandle(Double x, Double y)
- void createHandle(const Vector<Double>& point)
- DDDHandle(const DDDHandle &)
- void operator=(const DDDHandle &)
Synopsis
This class defines a square handle and it's
behaviour. This can be used to interact with DDDObjects
Member Description
enum describing the size of the handle
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
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
set up the handle
DDDHandle(const DDDHandle &)
void operator=(const DDDHandle &)