casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Types | Public Member Functions | Private Attributes
casa::DDDHandle Class Reference

A class to draw and detect handles on a DDDObject. More...

#include <DDDHandle.h>

List of all members.

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< DoublegetHandle () 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< DoubleitsCorners
 the corners
DDDHandle::Size itsSize
 the size

Detailed Description

A class to draw and detect handles on a DDDObject.

Synopsis

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.


Member Enumeration Documentation

enum describing the size of the handle

Enumerator:
NONE 
SMALL 
MEDIUM 
LARGE 

Definition at line 50 of file DDDHandle.h.


Constructor & Destructor Documentation

Default constructor.

Constructor taking the position where to place the handle and it's size.

virtual casa::DDDHandle::~DDDHandle ( ) [virtual]

Destructor.

   


Member Function Documentation

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]

set up the handle

void casa::DDDHandle::createHandle ( const Vector< Double > &  point)

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.


Member Data Documentation

the corners

Definition at line 88 of file DDDHandle.h.

Referenced by getHandle().

the size

Definition at line 90 of file DDDHandle.h.


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