casa
$Rev:20696$
|
Go to the source code of this file.
Classes | |
class | casa::RSEllipse |
Subclass of RegionShape used for drawing ellipses. More... | |
class | casa::RSCircle |
Subclass of RSEllipse used for drawing circles. More... | |
class | casa::RSRectangle |
Subclass of RegionShape used for drawing rectangles. More... | |
class | casa::RSPolygon |
Subclass of RegionShape used for drawing polygons. More... | |
class | casa::RSLine |
Subclass of RegionShape used for drawing lines. More... | |
class | RSVector |
Subclass of RSLine that takes a length and angle instead of a second point. More... | |
class | RSMarker |
Subclass of RegionShape used for drawing markers. More... | |
class | RSText |
Subclass of RegionShape used for drawing text. More... | |
class | RSComposite |
Subclass of RegionShape used for drawing composite regions. More... | |
Namespaces | |
namespace | casa |
this file contains all the compiler specific defines | |
Functions | |
bool | casa::p1Arrow () const |
bool | casa::p2Arrow () const |
virtual bool | drawAndUpdateBoundingBox (WorldCanvasHolder &wch, String *error=NULL) |
Implements RegionShape::drawAndUpdateBoundingBox. | |
virtual String | type () const |
Implements RegionShape::type. | |
void | getLineCoordinates (double &x1, double &y1, double &x2, double &y2, int &arrowLength, String toSystem="") const |
Gets line-specific coordinates, to avoid dependence on coordParameterValues() when the shape type is known. | |
virtual vector< double > | coordParameterValues () const |
Implements RegionShape::coordParameterVales. | |
vector< double > | coordParameterValues (String toSystem) const |
Implements RegionShape::coordParameterValues. | |
virtual vector< String > | coordParameterNames () const |
Implements RegionShape::coordParameterNames. | |
virtual vector < CoordinateParameterType > | coordParameterTypes () const |
Implements RegionShape::coordParameterPositions. | |
virtual void | setCoordParameters (const vector< double > &vals) |
Implements RegionShape::setCoordParameters. | |
virtual void | setCoordParameters (const vector< double > &vals, String System) |
Implements RegionShape::setCoordParameters. | |
virtual void | move (double dx, double dy, String system="") |
Implements RegionShape::move. | |
virtual RSHandle | getHandle () const |
Implements RegionShape::getHandle. | |
virtual vector< String > | optionNames () const |
Implements RegionShape::optionNames. | |
virtual vector< OptionType > | optionTypes () const |
Implements RegionShape::optionTypes. | |
virtual vector< vector< String > > | optionChoices () const |
Implements RegionShape::optionChoices. | |
virtual vector< RSOption > | optionValues () const |
Implements RegionShape::optionValues. | |
virtual void | setOptionValues (const vector< RSOption > &options) |
Implements RegionShape::setOptions. | |
virtual void | getShapeSpecificProperties (Record &properties) const |
Implements RegionShape::getShapeSpecificProperties. | |
virtual void | setShapeSpecificProperties (const RecordInterface &) |
Implements RegionShape::setShapeSpecificProperties. | |
virtual bool | updateScreenCoordinates (WorldCanvasHolder &wch, String *err) |
Updates screen coords using world/pixel coords and the given WorldCanvas. | |
void | updateMinMax () |
Update m_xMin, m_xMax, m_yMin, and m_yMax. | |
static bool | arrowPoints (double x1, double y1, double x2, double y2, double length, double &resX1, double &resY1, double &resX2, double &resY2) |
Generates arrow points based on the given (x1, y1) (x2, y2) points. | |
static bool | arrowPointsHelper (double x1, double y1, double x2, double y2, double length, double &resX1, double &resY1, double &resX2, double &resY2) |
Helper for arrowPoints. | |
Variables | |
vector< double > | m_spec |
vector< double > | m_screenSpec |
int | m_arrowLength |
bool | m_arrow1 |
bool | m_arrow2 |
ArrowType | m_aType1 |
ArrowType | m_aType2 |
static bool arrowPoints | ( | double | x1, |
double | y1, | ||
double | x2, | ||
double | y2, | ||
double | length, | ||
double & | resX1, | ||
double & | resY1, | ||
double & | resX2, | ||
double & | resY2 | ||
) | [static, protected] |
Generates arrow points based on the given (x1, y1) (x2, y2) points.
NOTE: Duplicated code from casaqt/QwtPlotter/QPShape (QPArrow class).
static bool arrowPointsHelper | ( | double | x1, |
double | y1, | ||
double | x2, | ||
double | y2, | ||
double | length, | ||
double & | resX1, | ||
double & | resY1, | ||
double & | resX2, | ||
double & | resY2 | ||
) | [static, protected] |
Helper for arrowPoints.
NOTE: Duplicated code.
virtual vector<String> coordParameterNames | ( | ) | const [virtual] |
Implements RegionShape::coordParameterNames.
virtual vector<CoordinateParameterType> coordParameterTypes | ( | ) | const [virtual] |
Implements RegionShape::coordParameterPositions.
virtual vector<double> coordParameterValues | ( | ) | const [virtual] |
Implements RegionShape::coordParameterVales.
vector<double> coordParameterValues | ( | String | toSystem | ) | const |
Implements RegionShape::coordParameterValues.
virtual bool drawAndUpdateBoundingBox | ( | WorldCanvasHolder & | wch, |
String * | error = NULL |
||
) | [virtual] |
Implements RegionShape::drawAndUpdateBoundingBox.
virtual RSHandle getHandle | ( | ) | const [virtual] |
Implements RegionShape::getHandle.
void getLineCoordinates | ( | double & | x1, |
double & | y1, | ||
double & | x2, | ||
double & | y2, | ||
int & | arrowLength, | ||
String | toSystem = "" |
||
) | const |
Gets line-specific coordinates, to avoid dependence on coordParameterValues() when the shape type is known.
If toSystem is empty, no conversion is done; otherwise see the constraints listed in RegionShape::coordParameterValues(String).
virtual void getShapeSpecificProperties | ( | Record & | properties | ) | const [protected, virtual] |
Implements RegionShape::getShapeSpecificProperties.
Definition at line 574 of file RegionShapes.h.
References casa::RegionShape::PROPTYPE, and casa::RegionShape::PROPTYPE_LINE.
Implements RegionShape::move.
virtual vector<vector<String> > optionChoices | ( | ) | const [virtual] |
Implements RegionShape::optionChoices.
virtual vector<String> optionNames | ( | ) | const [virtual] |
Implements RegionShape::optionNames.
virtual vector<OptionType> optionTypes | ( | ) | const [virtual] |
Implements RegionShape::optionTypes.
virtual vector<RSOption> optionValues | ( | ) | const [virtual] |
Implements RegionShape::optionValues.
virtual void setCoordParameters | ( | const vector< double > & | vals | ) | [virtual] |
Implements RegionShape::setCoordParameters.
virtual void setCoordParameters | ( | const vector< double > & | vals, |
String | System | ||
) | [virtual] |
Implements RegionShape::setCoordParameters.
virtual void setOptionValues | ( | const vector< RSOption > & | options | ) | [virtual] |
Implements RegionShape::setOptions.
virtual void setShapeSpecificProperties | ( | const RecordInterface & | ) | [protected, virtual] |
Implements RegionShape::setShapeSpecificProperties.
Definition at line 579 of file RegionShapes.h.
Implements RegionShape::type.
Definition at line 518 of file RegionShapes.h.
Referenced by casa::PolOuterProduct::init(), casa::isField(), casa::ViewerProxy::panel(), casa::PolOuterProduct::PolOuterProduct(), casa::FTMachine::put(), casa::PlotMSTransformations::setFrame(), casa::SkyEquation::setImagePlaneWeighting(), casa::TSMCube::setLastColAccess(), and casa::PlotMSTransformations::setVelDef().
void updateMinMax | ( | ) | [protected] |
Update m_xMin, m_xMax, m_yMin, and m_yMax.
virtual bool updateScreenCoordinates | ( | WorldCanvasHolder & | wch, |
String * | err | ||
) | [protected, virtual] |
Updates screen coords using world/pixel coords and the given WorldCanvas.
bool m_arrow1 |
Definition at line 570 of file RegionShapes.h.
Referenced by casa::p1Arrow().
bool m_arrow2 |
Definition at line 570 of file RegionShapes.h.
Referenced by casa::p2Arrow().
int m_arrowLength |
Definition at line 569 of file RegionShapes.h.
ArrowType m_aType1 |
Definition at line 571 of file RegionShapes.h.
ArrowType m_aType2 |
Definition at line 571 of file RegionShapes.h.
vector<double> m_screenSpec |
Definition at line 568 of file RegionShapes.h.
vector<double> m_spec |
Definition at line 567 of file RegionShapes.h.