casa
5.7.0-16
|
#include <DSWorldEllipse.h>
Public Member Functions | |
DSWorldEllipse () | |
DSWorldEllipse (const casacore::Record &settings, PanelDisplay *pd) | |
DSWorldEllipse (DSScreenEllipse &other, PanelDisplay *pd) | |
DSWorldEllipse (DSPixelEllipse &other, PanelDisplay *pd) | |
virtual | ~DSWorldEllipse () |
virtual void | recalculateScreenPosition () |
virtual void | move (const casacore::Float &dX, const casacore::Float &dY) |
So we can update our WCs. More... | |
virtual void | setCenter (const casacore::Float &xPos, const casacore::Float &yPos) |
Sets the center of the DisplayShape. More... | |
virtual void | rotate (const casacore::Float &angle) |
Rotate the shape about its center by a set angle (angle in degrees). More... | |
virtual void | changePoint (const casacore::Vector< casacore::Float > &pos, const casacore::Int n) |
Changes the nth point making up the DisplayShape ot the specified location. More... | |
virtual void | changePoint (const casacore::Vector< casacore::Float > &pos) |
Changes the closest point to the supplied location to that location. More... | |
virtual void | draw (PixelCanvas *pc) |
General DisplayShape functions. More... | |
virtual casacore::Bool | setOptions (const casacore::Record &settings) |
PLUS OTHERS!! More... | |
virtual casacore::Record | getOptions () |
Get and set options. More... | |
virtual casacore::Record | getRawOptions () |
virtual PanelDisplay * | panelDisplay () |
Public Member Functions inherited from casa::DSEllipse | |
DSEllipse (const casacore::Bool &onlyShowOneHandle=false) | |
Constructors and destructors. More... | |
DSEllipse (const DSEllipse &other) | |
DSEllipse (const casacore::Float &xPos, const casacore::Float &yPos, const casacore::Float &major, const casacore::Float &minor, const casacore::Bool &hasHandles=false, const casacore::Bool &drawHandles=false, const casacore::Bool &onlyShowOneHandle=false) | |
virtual | ~DSEllipse () |
virtual casacore::Bool | inObject (const casacore::Float &xPos, const casacore::Float &yPos) |
Is the supplied point within the DisplayShape? More... | |
virtual void | rotateAbout (const casacore::Float &angle, const casacore::Float &aboutX, const casacore::Float &aboutY) |
virtual casacore::Vector < casacore::Float > | getCenter () |
Returns the center of the DisplayShape (x,y). More... | |
virtual void | scale (const casacore::Float &scaleFactor) |
Scale the shape about its center by the scaleFactor. More... | |
virtual casacore::Float | getMinorAxis () |
Functions to set / get the minor and major axis of the ellipse (in pixels). More... | |
virtual casacore::Float | getMajorAxis () |
virtual void | setMajorAxis (const casacore::Float &newMajor) |
virtual void | setMinorAxis (const casacore::Float &newMinor) |
Public Member Functions inherited from casa::DSClosed | |
DSClosed () | |
Constructors and destructors. More... | |
DSClosed (const DSClosed &other) | |
virtual | ~DSClosed () |
virtual void | setFillStyle (DSClosed::FillStyle fill) |
Get / Set fill options. More... | |
virtual DSClosed::FillStyle | getFillStyle () |
virtual void | setFillColor (casacore::String color) |
virtual casacore::String | getFillColor () |
Public Member Functions inherited from casa::DSBasic | |
DSBasic () | |
Default constructor. More... | |
DSBasic (const DSBasic &other) | |
Copy constructor. More... | |
virtual | ~DSBasic () |
Destructor. More... | |
virtual void | setLineWidth (const casacore::Int pixels) |
Manage line width. More... | |
virtual casacore::Int | getLineWidth () |
Public Member Functions inherited from casa::DisplayShape | |
DisplayShape () | |
Default constructor. More... | |
DisplayShape (const DisplayShape &other) | |
Copy constructor. More... | |
virtual | ~DisplayShape () |
Destructor. More... | |
virtual casacore::Matrix < casacore::Float > | rotatePolygon (const casacore::Matrix< casacore::Float > &toRotate, const casacore::Float &angle, const casacore::Float &aboutX, const casacore::Float &aboutY) |
Rotate the supplied polygon (column 1 - x values, column 2 - y values) about the supplied point by the supplied angle. More... | |
virtual casacore::Vector < casacore::Float > | rotatePoint (const casacore::Vector< casacore::Float > &toRotate, const casacore::Float &angle, const casacore::Float &aboutX, const casacore::Float &aboutY) |
Rotates a point around the point specified. More... | |
virtual casacore::Matrix < casacore::Float > | translateMatrix (const casacore::Matrix< casacore::Float > &points, const casacore::Float &dx, const casacore::Float &dy) |
Translate an entire matrix by the specified dx / dy amounts. More... | |
virtual casacore::Bool | inPolygon (const casacore::Matrix< casacore::Float > &points, const casacore::Float &xPos, const casacore::Float &yPos) |
Is xPos, YPos inside the supplied points (column 1 - x values, clolumn 2 - y values) More... | |
virtual casacore::Bool | closestLine (const casacore::Matrix< casacore::Float > &points, const casacore::Float &xPos, const casacore::Float &yPos, casacore::Int &firstVert, casacore::Int &secondVert, const casacore::Bool &closedPoly=true) |
Determine the two vertices (firstVert, secondVert) which join the line closest to the xPos, yPos point supplied. More... | |
virtual casacore::Bool | closestPoint (const casacore::Matrix< casacore::Float > &points, const casacore::Float &xPos, const casacore::Float &yPos, casacore::Int &out) |
For a specified set of points, find the closest to xPos,YPos. More... | |
virtual casacore::Bool | closestPoints (const casacore::Matrix< casacore::Float > &points, const casacore::Float &xPos, const casacore::Float &yPos, casacore::Int &outClosest, casacore::Int &outSecond) |
Find the closest two Points from a casacore::Matrix to the specified point. More... | |
virtual casacore::Float | toRadians (const casacore::Float °rees) |
Convert degrees to radians. More... | |
virtual casacore::Float | toDegrees (const casacore::Float &radians) |
Conver radians to degree. More... | |
virtual void | addPoint (const casacore::Vector< casacore::Float > &) |
If applicable, this function will add a point to the shape in the most meaningful location. More... | |
virtual void | addLocked (DisplayShape *toLock) |
Allow locking of other shapes onto this one. More... | |
virtual void | removeLocked (DisplayShape *removeLock) |
Removes a lock from the specified shape. More... | |
virtual void | buildHandles (const casacore::Matrix< casacore::Float > &startPoints) |
Handle management. More... | |
virtual casacore::Matrix < casacore::Float > | getHandleLocations () |
virtual void | setHandlePositions (const casacore::Matrix< casacore::Float > &newPoints) |
virtual DSClosed * | makeHandle (const casacore::Vector< casacore::Float > &newHandlePos) |
virtual void | addHandle (const casacore::Vector< casacore::Float > &newHandlePos, const casacore::Bool &atEnd=true, const casacore::Int position=0) |
virtual casacore::Bool | removeHandle (const casacore::Vector< casacore::Float > &getRidOf) |
virtual casacore::Bool | removeHandle (const casacore::Int nHandle) |
virtual casacore::Bool | onHandles (const casacore::Float &xPos, const casacore::Float &yPos) |
virtual casacore::Bool | whichHandle (const casacore::Float &xPos, const casacore::Float &yPos, casacore::Int &out) |
virtual void | setDrawHandles (const casacore::Bool &shouldIDraw) |
virtual casacore::Bool | drawingHandles () |
virtual void | setHasHandles (const casacore::Bool &hasHandles) |
virtual void | setHandleShape (const DisplayShape::HandleShape &shape) |
virtual void | setHandleSize (const casacore::Int pixelSize) |
virtual void | setHandleColor (const casacore::String &handleColor) |
virtual casacore::uInt | nHandles () |
virtual void | setColor (const casacore::String &newColor) |
Manage the color of object. More... | |
virtual casacore::String | getColor () |
Public Member Functions inherited from casa::DisplayShapeWithCoords | |
virtual | ~DisplayShapeWithCoords () |
Private Member Functions | |
void | updateWCoords () |
Private Attributes | |
PanelDisplay * | itsPD |
Based on a pixel center virtual casacore::Bool chooseWC(const casacore::Float& centerX, const casacore::Float& centerY, PanelDisplay* pdx, WorldCanvas* wc); More... | |
WorldCanvas * | itsWC |
The WC of my choosing. More... | |
casacore::Vector < casacore::Quantum < casacore::Double > > | itsWorldParameters |
The center of the marker in world co-ords. More... | |
Definition at line 51 of file DSWorldEllipse.h.
casa::DSWorldEllipse::DSWorldEllipse | ( | ) |
casa::DSWorldEllipse::DSWorldEllipse | ( | const casacore::Record & | settings, |
PanelDisplay * | pd | ||
) |
casa::DSWorldEllipse::DSWorldEllipse | ( | DSScreenEllipse & | other, |
PanelDisplay * | pd | ||
) |
casa::DSWorldEllipse::DSWorldEllipse | ( | DSPixelEllipse & | other, |
PanelDisplay * | pd | ||
) |
|
virtual |
|
virtual |
Changes the nth point making up the DisplayShape ot the specified location.
Reimplemented from casa::DSEllipse.
|
virtual |
Changes the closest point to the supplied location to that location.
Reimplemented from casa::DSEllipse.
|
virtual |
General DisplayShape functions.
Reimplemented from casa::DSEllipse.
|
virtual |
Get and set options.
Reimplemented from casa::DSEllipse.
|
inlinevirtual |
Implements casa::DisplayShapeWithCoords.
Definition at line 81 of file DSWorldEllipse.h.
References casa::DSEllipse::getOptions().
|
virtual |
So we can update our WCs.
Reimplemented from casa::DSEllipse.
|
inlinevirtual |
Definition at line 85 of file DSWorldEllipse.h.
References itsPD.
|
virtual |
Reimplemented from casa::DisplayShape.
|
virtual |
Rotate the shape about its center by a set angle (angle in degrees).
Reimplemented from casa::DSEllipse.
|
virtual |
Sets the center of the DisplayShape.
Reimplemented from casa::DSEllipse.
|
virtual |
PLUS OTHERS!!
Reimplemented from casa::DSEllipse.
|
private |
|
private |
Based on a pixel center
virtual casacore::Bool chooseWC(const casacore::Float& centerX, const casacore::Float& centerY, PanelDisplay* pdx, WorldCanvas* wc);
The paneldisplay from which I may choose an appropriate WC
Definition at line 97 of file DSWorldEllipse.h.
Referenced by panelDisplay().
|
private |
The WC of my choosing.
Definition at line 100 of file DSWorldEllipse.h.
|
private |
The center of the marker in world co-ords.
x, y, major, minor, angle
Definition at line 104 of file DSWorldEllipse.h.