Track::EditAssist::ControlPoint Class Reference

A Dragable point. More...

#include <ControlPoint.h>

Inheritance diagram for Track::EditAssist::ControlPoint:

Track::EditAssist::Dragable Track::EditAssist::Selectable Track::EditAssist::LineConstrainedControlPoint Track::EditAssist::RotationHandle Track::EditAssist::SegmentConnectionHandle Track::EditAssist::TrackAttachmentHandle Track::EditAssist::EdgeStrengthHandle Track::EditAssist::VertexRotationHandle List of all members.

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

Detailed Description

A Dragable point.

Definition at line 31 of file ControlPoint.h.


Member Function Documentation

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.

Parameters:
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
Returns:
true if it is on or near the line, false otherwise.

Implements Track::EditAssist::Selectable.

Definition at line 20 of file ControlPoint.cpp.

void Track::EditAssist::ControlPoint::set_position ( const btVector3 &  new_position  )  [virtual]

Set the posistion of the point.

Definition at line 43 of file ControlPoint.cpp.


Member Data Documentation

btVector3 Track::EditAssist::ControlPoint::position [protected]

Definition at line 57 of file ControlPoint.h.


The documentation for this class was generated from the following files:
Get Racer at SourceForge.net. Fast, secure and Free Open Source software downloads

Generated at Mon Sep 6 00:41:19 2010 by Doxygen version 1.4.7 for Racer version svn335.