Public Member Functions | |
Arrow (gcu::TypeId Type) | |
virtual | ~Arrow () |
bool | Load (xmlNodePtr node) |
void | SetSelected (int state) |
void | SetCoords (double xstart, double ystart, double xend, double yend) |
bool | GetCoords (double *xstart, double *ystart, double *xend, double *yend) |
void | Move (double x, double y, double z=0) |
void | Transform2D (gcu::Matrix2D &m, double x, double y) |
double | GetYAlign () |
bool | SetProperty (unsigned property, char const *value) |
Protected Member Functions | |
bool | Save (xmlDocPtr xml, xmlNodePtr node) const |
std::string | Name () |
Protected Attributes | |
double | m_x |
double | m_y |
double | m_width |
double | m_height |
Definition at line 55 of file gcp/arrow.h.
gcp::Arrow::Arrow | ( | gcu::TypeId | Type | ) |
Type | an arrow type id. |
virtual gcp::Arrow::~Arrow | ( | ) | [virtual] |
The destructor.
bool gcp::Arrow::GetCoords | ( | double * | xstart, | |
double * | ystart, | |||
double * | xend, | |||
double * | yend | |||
) |
xstart | where to store the x coordinate of the start point. | |
ystart | where to store the y coordinate of the start point. | |
xend | where to store the x coordinate of the end point. | |
yend | where to store the y coordinate of the end point. |
double gcp::Arrow::GetYAlign | ( | ) | [virtual] |
Used to retrieve the y coordinate for alignment.
Reimplemented from gcu::Object.
bool gcp::Arrow::Load | ( | xmlNodePtr | node | ) | [virtual] |
node,: | a pointer to the xmlNode containing the serialized arrow. |
Reimplemented from gcu::Object.
Reimplemented in gcp::MesomeryArrow, and gcp::ReactionArrow.
void gcp::Arrow::Move | ( | double | x, | |
double | y, | |||
double | z = 0 | |||
) | [virtual] |
x,: | the x component of the transation vector. | |
y,: | the y component of the transation vector. | |
z,: | the z component of the transation vector (unused). |
Reimplemented from gcu::Object.
Reimplemented in gcp::ReactionArrow.
std::string gcp::Arrow::Name | ( | ) | [protected, virtual] |
Reimplemented from gcu::Object.
Reimplemented in gcp::MesomeryArrow, and gcp::ReactionArrow.
bool gcp::Arrow::Save | ( | xmlDocPtr | xml, | |
xmlNodePtr | node | |||
) | const [protected] |
xml,: | the xmlDoc used to save the document. | |
node,: | the node representing the Object. |
void gcp::Arrow::SetCoords | ( | double | xstart, | |
double | ystart, | |||
double | xend, | |||
double | yend | |||
) |
xstart | the x coordinate of the start point. | |
ystart | the y coordinate of the start point. | |
xend | the x coordinate of the end point. | |
yend | the y coordinate of the end point. |
bool gcp::Arrow::SetProperty | ( | unsigned | property, | |
char const * | value | |||
) | [virtual] |
property | the property id as defined in objprops.h | |
value | the property value as a string |
Reimplemented from gcu::Object.
Reimplemented in gcp::ReactionArrow.
void gcp::Arrow::SetSelected | ( | int | state | ) | [virtual] |
state,: | the selection state of the arrow. |
Reimplemented from gccv::ItemClient.
Reimplemented in gcp::ReactionArrow.
void gcp::Arrow::Transform2D | ( | gcu::Matrix2D & | m, | |
double | x, | |||
double | y | |||
) | [virtual] |
m,: | the Matrix2D of the transformation. | |
x,: | the x component of the center of the transformation. | |
y,: | the y component of the center of the transformation. |
Reimplemented from gcu::Object.
double gcp::Arrow::m_height [protected] |
The y coordinate to the end point.
Definition at line 165 of file gcp/arrow.h.
double gcp::Arrow::m_width [protected] |
The x coordinate to the end point.
Definition at line 161 of file gcp/arrow.h.
double gcp::Arrow::m_x [protected] |
The x coordinate to the start point.
Definition at line 153 of file gcp/arrow.h.
double gcp::Arrow::m_y [protected] |
The y coordinate to the start point.
Definition at line 157 of file gcp/arrow.h.