#include <TxPoint.h>
Public Member Functions | |
bool | operator< (const TxPoint &t) |
TxPoint (GLfloat x, GLfloat y, GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha) | |
void | computeBounds () |
bool | hit (GLfloat x, GLfloat y) |
void | onMouseOver () |
void | onMouseOut () |
void | moveTo (GLfloat x, GLfloat y) |
void | render () |
bool | equals (TxPoint *p) |
Public Attributes | |
GLfloat | rgba [4] |
GLfloat | position [2] |
bool | mouseOver |
Private Attributes | |
int | bounds [2] |
|
The constructor of the class create a |
|
Get the bounds of this point |
|
Returns true if all members of this point and the given point match |
|
Test if the point catch a slap by x and y coords
|
|
Move the controlpoint to the given x and y coodinates.
|
|
Call when the user moves the mouse cursor out of the point. |
|
Call when the user moves the mouse cursor over the point. |
|
The operator for comparing two controlpoints. The order of controlpoints is given with respect to their x coordinates -- wich is here position[0]. |
|
Render the shape of the controlpoint. |
|
The left and right bounding of a point. The Size of this bounding is determinened by the defined constant TX_POINT_RADIUS |
|
The mouse over state determines, wether the mouse cursor is over the point. In this case, the bounding box should be drawn. |
|
The position wich is assumed to be the center of a point. The position responds to the density. |
|
The color of the point including it alpha value. |