casa
$Rev:20696$
|
Subclass of RegionShape used for drawing lines. More...
#include <RegionShapes.h>
Public Types | |
enum | ArrowType { FilledTriangle, Triangle, V, FilledDoubleV } |
Static Members //. More... | |
Public Member Functions | |
RSLine (double x1, double y1, double x2, double y2, MDirection::Types worldSystem, int arrowLength, bool arrow1=false, bool arrow2=false, ArrowType type1=FilledDoubleV, ArrowType type2=FilledDoubleV) | |
Non-Static Members //. | |
RSLine (double x1, double y1, double x2, double y2, int arrowLength, bool arrow1=false, bool arrow2=false, ArrowType type1=FilledDoubleV, ArrowType type2=FilledDoubleV) | |
Pixel Constructor. | |
RSLine (const RecordInterface &properties) | |
Record Constructor. | |
virtual | ~RSLine () |
Destructor. | |
Static Public Member Functions | |
static vector< ArrowType > | allArrowTypes () |
Returns all possible arrow types. | |
static vector< String > | allArrowTypesStrings () |
static String | arrowType (ArrowType type) |
Converts to/from the String representation of arrow types. | |
static ArrowType | arrowType (const String &type) |
Subclass of RegionShape used for drawing lines.
A line has the following properties in addition to those listed for RegionShape:
Definition at line 432 of file RegionShapes.h.
Static Members //.
Different ways to draw the arrow(s) at the end of the line.
Definition at line 437 of file RegionShapes.h.
casa::RSLine::RSLine | ( | double | x1, |
double | y1, | ||
double | x2, | ||
double | y2, | ||
MDirection::Types | worldSystem, | ||
int | arrowLength, | ||
bool | arrow1 = false , |
||
bool | arrow2 = false , |
||
ArrowType | type1 = FilledDoubleV , |
||
ArrowType | type2 = FilledDoubleV |
||
) |
Non-Static Members //.
World Constructor. x1, y1, x2, and y2 must all be 1) using the same world system as defined by worldSystem, and 2) in unit RegionShape::UNIT. arrowLength is in screen pixels. arrow1 defines whether (x1, y1) has an arrow; arrow2 for (x2, y2).
casa::RSLine::RSLine | ( | double | x1, |
double | y1, | ||
double | x2, | ||
double | y2, | ||
int | arrowLength, | ||
bool | arrow1 = false , |
||
bool | arrow2 = false , |
||
ArrowType | type1 = FilledDoubleV , |
||
ArrowType | type2 = FilledDoubleV |
||
) |
Pixel Constructor.
arrowLength is in screen pixels. arrow1 defines whether (x1, y1) has an arrow; arrow2 for (x2, y2).
casa::RSLine::RSLine | ( | const RecordInterface & | properties | ) |
Record Constructor.
virtual casa::RSLine::~RSLine | ( | ) | [virtual] |
Destructor.
static vector<ArrowType> casa::RSLine::allArrowTypes | ( | ) | [inline, static] |
Returns all possible arrow types.
Definition at line 443 of file RegionShapes.h.
References FilledDoubleV, FilledTriangle, Triangle, and V.
Referenced by allArrowTypesStrings().
static vector<String> casa::RSLine::allArrowTypesStrings | ( | ) | [inline, static] |
Definition at line 450 of file RegionShapes.h.
References allArrowTypes(), and arrowType().
static String casa::RSLine::arrowType | ( | ArrowType | type | ) | [inline, static] |
Converts to/from the String representation of arrow types.
Definition at line 460 of file RegionShapes.h.
References FilledDoubleV, FilledTriangle, Triangle, and V.
Referenced by allArrowTypesStrings().
static ArrowType casa::RSLine::arrowType | ( | const String & | type | ) | [inline, static] |
Definition at line 471 of file RegionShapes.h.
References FilledDoubleV, FilledTriangle, casa::String::size(), Triangle, casa::RegionShape::type(), and V.