#include <Point.h>
Inheritance diagram for Point:

Public Member Functions | |
| bool | IsAPoint () |
| bool | IsAPatch () |
| Point * | GetPoint () |
| BaryPatch * | GetPatch () |
| void | draw (ManipulatedFrame *MF) |
| virtual void | UpdateNameTag () |
| Point (int ThingName, Vec Position, Vec Perturbation) | |
| ~Point () | |
| void | SnapToGrid (float GridSpace, ManipulatedFrame *MF) |
Public Attributes | |
| Vec | _Perturbation |
Used to manage control points displayed in the main viewer window. Derrived from the SelectableThing Class. These points may be selected and moved by the user.
| Point::Point | ( | int | ThingName, | |
| Vec | Position, | |||
| Vec | Perturbation | |||
| ) | [inline] |
Basic constructor, taking position and perturbation vectors. The default color for a point is (1.0,0.2,0.2)
| Point::~Point | ( | ) | [inline] |
Destructor, nothing to do
| void Point::draw | ( | ManipulatedFrame * | MF | ) | [inline, virtual] |
A point is represented by a sphere (constant radius = 0.004).
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* Point::GetPatch | ( | ) | [inline, virtual] |
selectable thing inherited. Used to distinguish the 2 different Selectable Things used in this project :
Patches and points.
Implements SelectableThing.
| Point* Point::GetPoint | ( | ) | [inline, virtual] |
selectable thing inherited. Used to distinguish the 2 different Selectable Things used in this project :
Patches and points.
Implements SelectableThing.
| bool Point::IsAPatch | ( | ) | [inline, virtual] |
selectable thing inherited. Used to distinguish the 2 different Selectable Things used in this project :
Patches and points.
Implements SelectableThing.
| bool Point::IsAPoint | ( | ) | [inline, virtual] |
selectable thing inherited. Used to distinguish the 2 different Selectable Things used in this project :
Patches and points.
Implements SelectableThing.
| void Point::SnapToGrid | ( | float | GridSpace, | |
| ManipulatedFrame * | MF | |||
| ) | [inline] |
Snaps a point's position to the closest knot of a gridded space. The density of the reference grid is given by GridSpace
| virtual void Point::UpdateNameTag | ( | ) | [inline, virtual] |
Selectable thing inherited, updates the name tag of the point
Implements SelectableThing.
a displacement relatively to the original position (this position is managed in SelectableThing::_ThingGlobalFrame)
It is this displacement that is manipulated by mouse.
1.4.7