casa
5.7.0-16
|
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 | |
casa | |
-*- mode: c++ -*- | |
Functions | |
bool | casa::p1Arrow () const |
bool | casa::p2Arrow () const |
virtual bool | drawAndUpdateBoundingBox (WorldCanvasHolder &wch, casacore::String *error=NULL) |
Implements RegionShape::drawAndUpdateBoundingBox. More... | |
virtual casacore::String | type () const |
Implements RegionShape::type. More... | |
void | getLineCoordinates (double &x1, double &y1, double &x2, double &y2, int &arrowLength, casacore::String toSystem="") const |
Gets line-specific coordinates, to avoid dependence on coordParameterValues() when the shape type is known. More... | |
virtual std::vector< double > | coordParameterValues () const |
Implements RegionShape::coordParameterVales. More... | |
std::vector< double > | coordParameterValues (casacore::String toSystem) const |
Implements RegionShape::coordParameterValues. More... | |
virtual std::vector < casacore::String > | coordParameterNames () const |
Implements RegionShape::coordParameterNames. More... | |
virtual std::vector < CoordinateParameterType > | coordParameterTypes () const |
Implements RegionShape::coordParameterPositions. More... | |
virtual void | setCoordParameters (const std::vector< double > &vals) |
Implements RegionShape::setCoordParameters. More... | |
virtual void | setCoordParameters (const std::vector< double > &vals, casacore::String System) |
Implements RegionShape::setCoordParameters. More... | |
virtual void | move (double dx, double dy, casacore::String system="") |
Implements RegionShape::move. More... | |
virtual RSHandle | getHandle () const |
Implements RegionShape::getHandle. More... | |
virtual std::vector < casacore::String > | optionNames () const |
Implements RegionShape::optionNames. More... | |
virtual std::vector< OptionType > | optionTypes () const |
Implements RegionShape::optionTypes. More... | |
virtual std::vector < std::vector < casacore::String > > | optionChoices () const |
Implements RegionShape::optionChoices. More... | |
virtual std::vector< RSOption > | optionValues () const |
Implements RegionShape::optionValues. More... | |
virtual void | setOptionValues (const std::vector< RSOption > &options) |
Implements RegionShape::setOptions. More... | |
virtual void | getShapeSpecificProperties (casacore::Record &properties) const |
Implements RegionShape::getShapeSpecificProperties. More... | |
virtual void | setShapeSpecificProperties (const casacore::RecordInterface &) |
Implements RegionShape::setShapeSpecificProperties. More... | |
virtual bool | updateScreenCoordinates (WorldCanvasHolder &wch, casacore::String *err) |
Updates screen coords using world/pixel coords and the given WorldCanvas. More... | |
void | updateMinMax () |
Update m_xMin, m_xMax, m_yMin, and m_yMax. More... | |
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. More... | |
static bool | arrowPointsHelper (double x1, double y1, double x2, double y2, double length, double &resX1, double &resY1, double &resX2, double &resY2) |
Helper for arrowPoints. More... | |
Variables | |
vector< double > | m_spec |
vector< double > | m_screenSpec |
int | m_arrowLength |
bool | m_arrow1 |
bool | m_arrow2 |
ArrowType | m_aType1 |
ArrowType | m_aType2 |
|
staticprotected |
Generates arrow points based on the given (x1, y1) (x2, y2) points.
NOTE: Duplicated code from casaqt/QwtPlotter/QPShape (QPArrow class).
|
staticprotected |
Helper for arrowPoints.
NOTE: Duplicated code.
|
virtual |
Implements RegionShape::coordParameterNames.
|
virtual |
Implements RegionShape::coordParameterPositions.
|
virtual |
Implements RegionShape::coordParameterVales.
std::vector<double> coordParameterValues | ( | casacore::String | toSystem | ) | const |
Implements RegionShape::coordParameterValues.
|
virtual |
Implements RegionShape::drawAndUpdateBoundingBox.
|
virtual |
Implements RegionShape::getHandle.
void getLineCoordinates | ( | double & | x1, |
double & | y1, | ||
double & | x2, | ||
double & | y2, | ||
int & | arrowLength, | ||
casacore::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(casacore::String).
|
protectedvirtual |
Implements RegionShape::getShapeSpecificProperties.
Definition at line 606 of file RegionShapes.h.
References casacore::RecordInterface::define(), casa::RegionShape::PROPTYPE, and casa::RegionShape::PROPTYPE_LINE.
|
virtual |
Implements RegionShape::move.
Referenced by casa::vi::Future< A >::Future(), casa::vi::Try< A >::operator=(), and casa::vi::Try< A >::Try().
|
virtual |
Implements RegionShape::optionChoices.
|
virtual |
Implements RegionShape::optionNames.
|
virtual |
Implements RegionShape::optionTypes.
|
virtual |
Implements RegionShape::optionValues.
|
virtual |
Implements RegionShape::setCoordParameters.
|
virtual |
Implements RegionShape::setCoordParameters.
|
virtual |
Implements RegionShape::setOptions.
|
protectedvirtual |
Implements RegionShape::setShapeSpecificProperties.
Definition at line 611 of file RegionShapes.h.
|
virtual |
Implements RegionShape::type.
Definition at line 548 of file RegionShapes.h.
Referenced by casacore::RecordGram::addToken(), casacore::python::numpy::array_scalar_from_python< T >::construct(), casacore::python::numpy::array_scalar_from_python< T >::convertible(), casacore::Allocator_private::get_allocator_raw(), and casacore::TSMCube::setLastColAccess().
|
protected |
Update m_xMin, m_xMax, m_yMin, and m_yMax.
|
protectedvirtual |
Updates screen coords using world/pixel coords and the given WorldCanvas.
bool m_arrow1 |
Definition at line 602 of file RegionShapes.h.
Referenced by casa::p1Arrow().
bool m_arrow2 |
Definition at line 602 of file RegionShapes.h.
Referenced by casa::p2Arrow().
int m_arrowLength |
Definition at line 601 of file RegionShapes.h.
ArrowType m_aType1 |
Definition at line 603 of file RegionShapes.h.
ArrowType m_aType2 |
Definition at line 603 of file RegionShapes.h.
vector<double> m_screenSpec |
Definition at line 600 of file RegionShapes.h.
vector<double> m_spec |
Definition at line 599 of file RegionShapes.h.