|
| DSWorldText () |
|
| DSWorldText (const casacore::Record &settings, PanelDisplay *pd) |
|
| DSWorldText (DSScreenText &other, PanelDisplay *pd) |
|
| DSWorldText (DSPixelText &other, PanelDisplay *pd) |
|
virtual | ~DSWorldText () |
|
virtual void | recalculateScreenPosition () |
|
virtual void | move (const casacore::Float &dX, const casacore::Float &dY) |
|
virtual void | setCenter (const casacore::Float &xPos, const casacore::Float &yPos) |
| Sets the center of the DisplayShape. More...
|
|
virtual void | draw (PixelCanvas *pc) |
| Functions to ensure consistancy with the "DisplayShape" interface. More...
|
|
virtual casacore::Bool | setOptions (const casacore::Record &settings) |
|
virtual casacore::Record | getOptions () |
| Get and set options. More...
|
|
virtual casacore::Record | getRawOptions () |
|
virtual PanelDisplay * | panelDisplay () |
|
| DSText () |
| Constructors and destructors. More...
|
|
| DSText (const DSText &other) |
|
| DSText (const casacore::Float &xPos, const casacore::Float &yPos, const casacore::String &text="Label", const casacore::Bool &hasHandles=true, const casacore::Bool &drawHandles=true) |
|
virtual | ~DSText () |
|
virtual void | rotate (const casacore::Float &angle) |
| Rotate the shape about its center by a set angle (angle in degrees). More...
|
|
virtual casacore::Bool | inObject (const casacore::Float &xPos, const casacore::Float &yPos) |
| Is the supplied point within the DisplayShape? More...
|
|
virtual void | changePoint (const casacore::Vector< casacore::Float > &newPos) |
| Changes the closest point to the supplied location to that location. More...
|
|
virtual void | changePoint (const casacore::Vector< casacore::Float > &newPos, const casacore::Int nPoint) |
| Changes the nth point making up the DisplayShape ot the specified location. More...
|
|
virtual void | scale (const casacore::Float &scaleFactor) |
| Scale the shape about its center by the scaleFactor. More...
|
|
virtual casacore::Vector
< casacore::Float > | getCenter () |
| Returns the center of the DisplayShape (x,y). More...
|
|
| DisplayShape () |
| Default constructor. More...
|
|
| DisplayShape (const DisplayShape &other) |
| Copy constructor. More...
|
|
virtual | ~DisplayShape () |
| Destructor. More...
|
|
virtual void | rotateAbout (const casacore::Float &relAngle, const casacore::Float &aboutX, const casacore::Float &aboutY) |
|
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 () |
|
virtual | ~DisplayShapeWithCoords () |
|
|
enum | HandleShape {
Filled_Square,
Open_Square,
Filled_Circle,
Open_Circle,
Filled_Triangle,
Open_Triangle
} |
| Handle style. More...
|
|
static void | floatToPix (casacore::Record &inHere, const casacore::String &field) |
|
static void | floatPointToPix (casacore::Record &inHere, const casacore::String &field) |
|
static void | matrixFloatToQuant (casacore::Record &inHere, const casacore::String &field, const casacore::String &unit) |
|
static void | matrixFloatFromQuant (casacore::Record &inHere, const casacore::String &field, const casacore::String &onlyParseTheseUnits) |
|
static void | floatFromPix (casacore::Record &inHere, const casacore::String &field) |
|
static void | floatPointFromPix (casacore::Record &inHere, const casacore::String &field) |
|
static WorldCanvas * | chooseWCFromWorldPoint (const casacore::Record &settings, PanelDisplay *pd) |
|
static WorldCanvas * | chooseWCFromWorldPoints (const casacore::Record &settings, const casacore::String &fieldWithPoints, PanelDisplay *pd) |
|
static WorldCanvas * | chooseWCFromPixPoint (const casacore::Float &xPos, const casacore::Float &yPos, PanelDisplay *pd) |
|
static WorldCanvas * | chooseWCFromPixPoints (const casacore::Matrix< casacore::Float > points, PanelDisplay *pd) |
|
static casacore::Vector
< casacore::Float > | floatPointFromQuant (const casacore::Record &inHere, const casacore::String &field, casacore::String &units) |
|
static casacore::Vector
< casacore::Float > | relToScreen (const casacore::Vector< casacore::Float > &rel, PixelCanvas *pc) |
|
static casacore::Vector
< casacore::Float > | screenToRel (const casacore::Vector< casacore::Float > &screen, PixelCanvas *pc) |
|
static casacore::Matrix
< casacore::Float > | relToScreen (const casacore::Matrix< casacore::Float > &rel, PixelCanvas *pc) |
|
static casacore::Matrix
< casacore::Float > | screenToRel (const casacore::Matrix< casacore::Float > &screen, PixelCanvas *pc) |
|
static casacore::Bool | inWorldCanvasDrawArea (const casacore::Matrix< casacore::Float > points, WorldCanvas *wc) |
|
static void | pixelToWorldPoints (casacore::Record &inHere, const casacore::String &fieldname, WorldCanvas *wc) |
|
Definition at line 51 of file DSWorldText.h.