Point Class Reference

Point class. More...

#include <Point.h>

Inheritance diagram for Point:

SelectableThing List of all members.

Public Member Functions

bool IsAPoint ()
bool IsAPatch ()
PointGetPoint ()
BaryPatchGetPatch ()
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

Detailed Description

Point class.

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.


Constructor & Destructor Documentation

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


Member Function Documentation

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.


Member Data Documentation

Vec Point::_Perturbation

a displacement relatively to the original position (this position is managed in SelectableThing::_ThingGlobalFrame)
It is this displacement that is manipulated by mouse.


The documentation for this class was generated from the following file:
Generated on Thu Sep 28 09:38:09 2006 by  doxygen 1.4.7