casa
$Rev:20696$
|
Base class for all "basic" shapes. More...
#include <DSBasic.h>
Public Member Functions | |
DSBasic () | |
Default constructor. | |
DSBasic (const DSBasic &other) | |
Copy constructor. | |
virtual | ~DSBasic () |
Destructor. | |
virtual void | setLineWidth (const Int pixels) |
Manage line width. | |
virtual Int | getLineWidth () |
virtual void | draw (PixelCanvas *pc) |
Standard fns. | |
virtual void | rotateAbout (const Float &angle, const Float &aboutX, const Float &aboutY) |
virtual void | move (const Float &dX, const Float &dY) |
virtual Record | getOptions () |
Settings. | |
virtual Bool | setOptions (const Record &settings) |
Private Attributes | |
DParameterRange< Int > * | itsLineWidth |
Base class for all "basic" shapes.
DSBasic is a base for all basic classes, it manages linewidth.
DSBasic is a base class for any shape using basic lines to draw it self, i.e. shapes such as lines, circles and polygons should extend this class. More complex DisplayShapes, e.g. text should not.
A common interface for the setting of linewidths
Default constructor.
casa::DSBasic::DSBasic | ( | const DSBasic & | other | ) |
Copy constructor.
virtual casa::DSBasic::~DSBasic | ( | ) | [virtual] |
Destructor.
virtual void casa::DSBasic::draw | ( | PixelCanvas * | pc | ) | [virtual] |
Standard fns.
Reimplemented from casa::DisplayShape.
Reimplemented in casa::DSArrow, casa::DSMarker, casa::DSClosed, casa::DSPolyLine, casa::DSPoly, casa::DSEllipse, casa::DSWorldPoly, casa::DSWorldPolyLine, casa::DSWorldArrow, casa::DSWorldEllipse, casa::DSWorldRectangle, and casa::DSWorldMarker.
virtual Int casa::DSBasic::getLineWidth | ( | ) | [virtual] |
virtual Record casa::DSBasic::getOptions | ( | ) | [virtual] |
Settings.
Reimplemented from casa::DisplayShape.
Reimplemented in casa::DSArrow, casa::DSMarker, casa::DSLine, casa::DSRectangle, casa::DSPolyLine, casa::DSPoly, casa::DSEllipse, casa::DSCircle, casa::DSSquare, casa::DSClosed, casa::DSWorldPoly, casa::DSWorldPolyLine, casa::DSScreenArrow, casa::DSWorldArrow, casa::DSWorldEllipse, casa::DSScreenPoly, casa::DSWorldRectangle, casa::DSScreenPolyLine, casa::DSWorldMarker, casa::DSPixelPoly, casa::DSPixelEllipse, casa::DSScreenMarker, casa::DSPixelArrow, casa::DSPixelPolyLine, casa::DSScreenEllipse, casa::DSScreenRectangle, casa::DSPixelRectangle, and casa::DSPixelMarker.
virtual void casa::DSBasic::move | ( | const Float & | dX, |
const Float & | dY | ||
) | [virtual] |
Reimplemented from casa::DisplayShape.
Reimplemented in casa::DSArrow, casa::DSMarker, casa::DSRectangle, casa::DSClosed, casa::DSPoly, casa::DSPolyLine, casa::DSEllipse, casa::DSWorldPoly, casa::DSScreenArrow, casa::DSScreenPoly, casa::DSWorldEllipse, casa::DSWorldPolyLine, casa::DSScreenMarker, casa::DSScreenPolyLine, casa::DSWorldArrow, casa::DSWorldRectangle, casa::DSWorldMarker, casa::DSScreenEllipse, and casa::DSScreenRectangle.
virtual void casa::DSBasic::rotateAbout | ( | const Float & | angle, |
const Float & | aboutX, | ||
const Float & | aboutY | ||
) | [virtual] |
Reimplemented from casa::DisplayShape.
Reimplemented in casa::DSArrow, casa::DSPoly, casa::DSPolyLine, casa::DSRectangle, casa::DSClosed, and casa::DSEllipse.
virtual void casa::DSBasic::setLineWidth | ( | const Int | pixels | ) | [virtual] |
Manage line width.
virtual Bool casa::DSBasic::setOptions | ( | const Record & | settings | ) | [virtual] |
Reimplemented from casa::DisplayShape.
Reimplemented in casa::DSArrow, casa::DSMarker, casa::DSLine, casa::DSPoly, casa::DSRectangle, casa::DSPolyLine, casa::DSEllipse, casa::DSCircle, casa::DSSquare, casa::DSClosed, casa::DSWorldPoly, casa::DSWorldPolyLine, casa::DSScreenArrow, casa::DSWorldArrow, casa::DSWorldEllipse, casa::DSScreenPoly, casa::DSWorldRectangle, casa::DSScreenPolyLine, casa::DSWorldMarker, casa::DSPixelPoly, casa::DSPixelEllipse, casa::DSScreenMarker, casa::DSPixelArrow, casa::DSPixelMarker, casa::DSPixelPolyLine, casa::DSScreenEllipse, casa::DSScreenRectangle, and casa::DSPixelRectangle.
DParameterRange<Int>* casa::DSBasic::itsLineWidth [private] |