casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Types | Public Member Functions | Private Attributes | List of all members
casa::DDDHandle Class Reference

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...
 

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

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 casa::DDDHandle::~DDDHandle ( )
virtual

Destructor.

casa::DDDHandle::DDDHandle ( const DDDHandle )

Member Function Documentation

virtual casacore::Double casa::DDDHandle::blcX ( ) const
virtual

utility funtions to retrieve blc/trc of the handle or the handle corners

virtual casacore::Double casa::DDDHandle::blcY ( ) const
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)
casacore::Matrix<casacore::Double> casa::DDDHandle::getHandle ( ) const
inline

Definition at line 74 of file DDDHandle.h.

References itsCorners.

virtual void casa::DDDHandle::move ( casacore::Double  dx,
casacore::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 casacore::Double casa::DDDHandle::trcX ( ) const
virtual
virtual casacore::Double casa::DDDHandle::trcY ( ) const
virtual
virtual casacore::Bool casa::DDDHandle::underCursor ( casacore::Double  posx,
casacore::Double  posy 
) const
virtual

This function returns true when the input poistion is within the handle.

Member Data Documentation

casacore::Matrix<casacore::Double> casa::DDDHandle::itsCorners
private

the corners

Definition at line 90 of file DDDHandle.h.

Referenced by getHandle().

DDDHandle::Size casa::DDDHandle::itsSize
private

the size

Definition at line 92 of file DDDHandle.h.


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