Play 'round
|
The connection between tracks that relays the plucker from one path to another. More...
#include <Widget.h>
Public Member Functions | |
Joint (Point2D center, float radius) | |
void | addTrack (Track *track) |
Point2D | getCenter () |
void | setCenter (Point2D center) |
void | setColor (Color color) |
std::vector< Track * > * | getTracks () |
virtual void | draw () |
virtual Widget * | hitTest (float x, float y) |
virtual std::string | toString () |
RoundPad * | getParentRoundPad () |
void | setParentRoundPad (RoundPad *pad) |
Protected Member Functions | |
virtual bool | handleDraw (float x, float y) |
The draw event called when the user drags from this widget. | |
virtual bool | handleDrawEnd (float x, float y) |
The last draw event called when the user finishes dragging. | |
virtual bool | handleSelect (float x, float y, bool=false) |
Called when the user click on the widget. | |
Protected Attributes | |
std::vector< Track * > | m_tracks |
Point2D | m_center |
float | m_radius |
Spiral * | m_circle |
SpiralTrack * | m_newSpiralTrack |
LineTrack * | m_newLineTrack |
Line | m_dragLine |
bool | m_drawing |
RoundPad * | m_parentRoundPad |
The connection between tracks that relays the plucker from one path to another.