#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 |
Definition at line 16 of file TxPoint.h.
|
The constructor of the class create a Definition at line 10 of file TxPoint.cpp. References computeBounds(), mouseOver, position, and rgba. |
|
Get the bounds of this point Definition at line 22 of file TxPoint.cpp. |
|
Returns true if all members of this point and the given point match Definition at line 61 of file TxPoint.cpp. |
|
Test if the point catch a slap by x and y coords
Definition at line 30 of file TxPoint.cpp. |
|
Move the controlpoint to the given x and y coodinates.
Definition at line 54 of file TxPoint.cpp. References computeBounds(), and position. Referenced by TxFunction::moveControlPoint(). |
|
Call when the user moves the mouse cursor out of the point. Definition at line 49 of file TxPoint.cpp. References mouseOver. |
|
Call when the user moves the mouse cursor over the point. Definition at line 44 of file TxPoint.cpp. References mouseOver. |
|
The operator for comparing two controlpoints. The order of controlpoints is given with respect to their x coordinates -- wich is here position[0]. Definition at line 37 of file TxPoint.h. References position. |
|
Render the shape of the controlpoint. Definition at line 71 of file TxPoint.cpp. References position. Referenced by TxFunction::render(). |
|
The mouse over state determines, wether the mouse cursor is over the point. In this case, the bounding box should be drawn. Definition at line 32 of file TxPoint.h. Referenced by onMouseOut(), onMouseOver(), and TxPoint(). |
|
The position wich is assumed to be the center of a point. The position responds to the density. Definition at line 28 of file TxPoint.h. Referenced by TxFunction::getLinearInterpolatedColor(), moveTo(), operator<(), render(), and TxPoint(). |
|
The color of the point including it alpha value. Definition at line 24 of file TxPoint.h. Referenced by TxFunction::getLinearInterpolatedColor(), ColorCubePanel::onMouseDown(), Histogram::onMouseDrag(), and TxPoint(). |