Play 'round
Public Member Functions | Protected Attributes
SpiralTrack Class Reference

The spiral shaped track. More...

#include <Widget.h>

Inheritance diagram for SpiralTrack:
Track Widget Shape

List of all members.

Public Member Functions

 SpiralTrack (Point2D center, float startAngle, float startRadius, float endAngle, float endRadius, Joint *joint1, Joint *joint2)
void initialize (Point2D center, float startAngle, float startRadius, float endAngle, float endRadius, Joint *joint1, Joint *joint2)
virtual void draw ()
virtual WidgethitTest (float x, float y)
virtual void toOutboundPacketStream (osc::OutboundPacketStream &) const
virtual Point2D getEndPoint1 ()
virtual Point2D getEndPoint2 ()
virtual Point2D getNextPos (bool fReverse, float distance, Point2D pos)
 Returns the next position on the track that is distance far away from the passed in position.
Point2D getCenter ()
void setCenter (const Point2D &center)
void setEndAngle (float angle)
void setEndRadius (float radius)
float getStartAngle ()
float getEndAngle ()
SpiralgetSpiral ()
virtual bool handleHover (float x, float y)
 Called when the user's mouse is hovering on the widget.
virtual std::string toString ()

Protected Attributes

Point2D m_center
float m_startRadius
float m_endRadius
float m_startAngle
float m_endAngle
Spiralm_spiral

Detailed Description

The spiral shaped track.


The documentation for this class was generated from the following files:
 All Classes Functions Enumerations