#include <TDPoint.h>
Inheritance diagram for TDPoint:
Public Member Functions | |
bool | IsAPoint () |
bool | IsAPatch () |
TDPoint * | GetPoint () |
BaryPatch * | GetPatch () |
TDPoint (int ThingName, SelectableThing **Workspace) | |
TDPoint (int ThingName, SelectableThing **Workspace, Vec Position) | |
void | draw (ManipulatedFrame *MF) |
void | UpdateNameTag () |
int | WhatsMyNumber () |
int | Clear () |
void | SnapToGrid (float GridSpace, ManipulatedFrame *MF) |
TDPoint::TDPoint | ( | int | ThingName, | |
SelectableThing ** | Workspace | |||
) | [inline] |
Basic SelectableThing constructor
TDPoint::TDPoint | ( | int | ThingName, | |
SelectableThing ** | Workspace, | |||
Vec | Position | |||
) | [inline] |
Basic SelectableThing constructor given the position
int TDPoint::Clear | ( | ) | [inline] |
deletes patches using me
replaced by implementation 1 level up in JViewer
void TDPoint::draw | ( | ManipulatedFrame * | MF | ) | [inline, virtual] |
A point is represented by a sphere (constant radius = 0.005).
Selected points will take an alternative color.
Selected points will be drawn using their SelectableThing::_ThingLocalFrame as their position relatively to the Manipulated frame given in argument, and update their SelectableThing::_ThingGlobalFrame accordingly
Not-selected points will be drawn using their SelectableThing::_ThingGlobalFrame as their position in the world, and update their SelectableThing::_ThingLocalFrame accordingly
Implements SelectableThing.
BaryPatch* TDPoint::GetPatch | ( | ) | [inline, virtual] |
selectable thing inherited. Used to distinguish the 2 different Selectable Things used in this project :
Patches and points.
Implements SelectableThing.
TDPoint* TDPoint::GetPoint | ( | ) | [inline, virtual] |
selectable thing inherited. Used to distinguish the 2 different Selectable Things used in this project :
Patches and points.
Implements SelectableThing.
bool TDPoint::IsAPatch | ( | ) | [inline, virtual] |
selectable thing inherited. Used to distinguish the 2 different Selectable Things used in this project :
Patches and points.
Implements SelectableThing.
bool TDPoint::IsAPoint | ( | ) | [inline, virtual] |
selectable thing inherited. Used to distinguish the 2 different Selectable Things used in this project :
Patches and points.
Implements SelectableThing.
void TDPoint::SnapToGrid | ( | float | GridSpace, | |
ManipulatedFrame * | MF | |||
) | [inline] |
Makes the points' positions on the grid
void TDPoint::UpdateNameTag | ( | ) | [inline, virtual] |
Selectable thing inherited, updates the name tag of the point
Implements SelectableThing.
int TDPoint::WhatsMyNumber | ( | ) | [inline] |
Returns the number of the point