#include <arrow.h>
Public Member Functions | |
Arrow (Canvas *canvas, double xstart, double ystart, double xend, double yend) | |
Arrow (Group *parent, double xstart, double ystart, double xend, double yend, ItemClient *client=NULL) | |
virtual | ~Arrow () |
double | Distance (double x, double y, Item **item) const |
void | Draw (cairo_t *cr, bool is_vector) const |
void | SetStartHead (ArrowHeads val) |
ArrowHeads | GetStartHead (void) const |
void | SetEndHead (ArrowHeads val) |
ArrowHeads | GetEndHead (void) const |
void | SetA (double val) |
double | GetA (void) const |
void | SetB (double val) |
double | GetB (void) const |
void | SetC (double val) |
double | GetC (void) const |
Protected Member Functions | |
void | UpdateBounds () |
Item class for arrows composed of a straight line with one or both ends decorated with an arrow head.
Definition at line 41 of file gccv/arrow.h.
gccv::Arrow::Arrow | ( | Canvas * | canvas, | |
double | xstart, | |||
double | ystart, | |||
double | xend, | |||
double | yend | |||
) |
gccv::Arrow::Arrow | ( | Group * | parent, | |
double | xstart, | |||
double | ystart, | |||
double | xend, | |||
double | yend, | |||
ItemClient * | client = NULL | |||
) |
parent | the Group to which the new Arrow will be added. | |
xstart | the horizontal start position. | |
ystart | the vertical start position. | |
xend | the horizontal end position. | |
yend | the vertical end position. | |
client | the ItemClient for the new Arrow if any. |
virtual gccv::Arrow::~Arrow | ( | ) | [virtual] |
The destructor.
double gccv::Arrow::Distance | ( | double | x, | |
double | y, | |||
Item ** | item | |||
) | const [virtual] |
x | horizontal position | |
y | vertical position | |
item | where to store the Item. |
Reimplemented from gccv::Line.
void gccv::Arrow::Draw | ( | cairo_t * | cr, | |
bool | is_vector | |||
) | const [virtual] |
cr | a cairo_t. | |
is_vector | whether the cairo_t is a vectorial context. |
Reimplemented from gccv::Line.
gccv::Arrow::GetA | ( | void | ) | const [inline] |
gccv::Arrow::GetB | ( | void | ) | const [inline] |
Definition at line 133 of file gccv/arrow.h.
gccv::Arrow::GetC | ( | void | ) | const [inline] |
Definition at line 142 of file gccv/arrow.h.
gccv::Arrow::GetEndHead | ( | void | ) | const [inline] |
Definition at line 114 of file gccv/arrow.h.
gccv::Arrow::GetStartHead | ( | void | ) | const [inline] |
Definition at line 105 of file gccv/arrow.h.
gccv::Arrow::SetA | ( | double | A | ) | [inline] |
A | new arrow head size parameter. |
Definition at line 123 of file gccv/arrow.h.
gccv::Arrow::SetB | ( | double | B | ) | [inline] |
B | new arrow head size parameter. |
Definition at line 133 of file gccv/arrow.h.
gccv::Arrow::SetC | ( | double | C | ) | [inline] |
C | new arrow head size parameter. |
Definition at line 142 of file gccv/arrow.h.
gccv::Arrow::SetEndHead | ( | ArrowHeads | EndHead | ) | [inline] |
EndHead | the ArrowHeads for the end position of the arrow. |
Definition at line 114 of file gccv/arrow.h.
gccv::Arrow::SetStartHead | ( | ArrowHeads | StartHead | ) | [inline] |
StartHead | the ArrowHeads for the start position of the arrow. |
Definition at line 105 of file gccv/arrow.h.
void gccv::Arrow::UpdateBounds | ( | ) | [protected, virtual] |
Evaluates the Arrow bounds.
Reimplemented from gccv::Line.