#include <ControlPoint.h>
Inheritance diagram for Track::EditAssist::ControlPoint:
Public Member Functions | |
virtual bool | is_here (btVector3 start, btVector3 stop, btScalar radius) const |
Check if the object lies along a given line segment. | |
const btVector3 & | get_position () const |
Get the posistion of the point. | |
virtual void | set_position (const btVector3 &new_position) |
Set the posistion of the point. | |
virtual void | draw () const =0 |
Draw the control point for the editor. | |
Protected Attributes | |
btVector3 | position |
Definition at line 31 of file ControlPoint.h.
virtual void Track::EditAssist::ControlPoint::draw | ( | ) | const [pure virtual] |
Draw the control point for the editor.
May draw additional lines to show bounds or to indicate what it relates to.
Uses OpenGL commands. It expects the modelview matrix to translate points from world space. Point and line primitives may be drawn. After calling, the current OpenGL colour could be anything.
Implemented in Track::EditAssist::EdgeStrengthHandle, Track::EditAssist::LineConstrainedControlPoint, Track::EditAssist::RotationHandle, Track::EditAssist::SegmentConnectionHandle, Track::EditAssist::TrackAttachmentHandle, and Track::EditAssist::VertexRotationHandle.
const btVector3 & Track::EditAssist::ControlPoint::get_position | ( | ) | const |
Get the posistion of the point.
The handle should be drawn here for is_here to match up.
Definition at line 38 of file ControlPoint.cpp.
bool Track::EditAssist::ControlPoint::is_here | ( | btVector3 | start, | |
btVector3 | stop, | |||
btScalar | radius | |||
) | const [virtual] |
Check if the object lies along a given line segment.
start | The start position of the line in world space. | |
stop | The end position of the line in world space | |
radius | to consider points near the line |
Implements Track::EditAssist::Selectable.
Definition at line 20 of file ControlPoint.cpp.
void Track::EditAssist::ControlPoint::set_position | ( | const btVector3 & | new_position | ) | [virtual] |
btVector3 Track::EditAssist::ControlPoint::position [protected] |
Definition at line 57 of file ControlPoint.h.
Generated at Mon Sep 6 00:41:19 2010 by Doxygen version 1.4.7 for Racer version svn335.