SelectableThing Class Reference

SelectableThing class. More...

#include <SelectableThing.h>

Inheritance diagram for SelectableThing:

BaryPatch Point List of all members.

Public Member Functions

 SelectableThing (int ThingName)
virtual void draw (ManipulatedFrame *MF)=0
virtual void UpdateNameTag ()=0
virtual bool IsAPoint ()=0
virtual bool IsAPatch ()=0
virtual PointGetPoint ()=0
virtual BaryPatchGetPatch ()=0

Public Attributes

Vec _Color
QString _NameTag
int _ThingName
bool _IsSelected
bool _Show
bool _ShowNameTag
Frame _ThingGlobalFrame
Frame _ThingLocalFrame
bool _IsBeingDeleted

Detailed Description

SelectableThing class.

Abstract class used to regroup information useful for any object which is meant to be displayed in a viewer and manipulated by mouse.


Constructor & Destructor Documentation

SelectableThing::SelectableThing ( int  ThingName  )  [inline]

Constructor
Notice a integer name is mandatory. Manage your workspace names correctly to avoid problems.


Member Function Documentation

virtual void SelectableThing::draw ( ManipulatedFrame *  MF  )  [pure virtual]

Purely virtual method. Implement your things' drawing functions

Implemented in BaryPatch, and Point.

virtual BaryPatch* SelectableThing::GetPatch (  )  [pure virtual]

Purely virtual method. Used to distinguish the 2 different Selectable Things used in this project :
Patches and points.

Implemented in BaryPatch, and Point.

virtual Point* SelectableThing::GetPoint (  )  [pure virtual]

Purely virtual method. Used to distinguish the 2 different Selectable Things used in this project :
Patches and points.

Implemented in BaryPatch, and Point.

virtual bool SelectableThing::IsAPatch (  )  [pure virtual]

Purely virtual method. Used to distinguish the 2 different Selectable Things used in this project :
Patches and points.

Implemented in BaryPatch, and Point.

virtual bool SelectableThing::IsAPoint (  )  [pure virtual]

Purely virtual method. Used to distinguish the 2 different Selectable Things used in this project :
Patches and points.

Implemented in BaryPatch, and Point.

virtual void SelectableThing::UpdateNameTag (  )  [pure virtual]

Purely virtual method. Implement your things' text name attributions

Implemented in BaryPatch, and Point.


Member Data Documentation

Vec SelectableThing::_Color

(Red,Green,Blue)

bool SelectableThing::_IsBeingDeleted

Used to manage complicated deletion situations

bool SelectableThing::_IsSelected

Am I part of a selection ?

QString SelectableThing::_NameTag

Text name

bool SelectableThing::_Show

Should I be drawn ?

bool SelectableThing::_ShowNameTag

Should my name tag be displayed ?

Frame SelectableThing::_ThingGlobalFrame

The QGLViewer frame used to represent this thing's position in the world

Frame SelectableThing::_ThingLocalFrame

The QGLViewer frame used to represent this thing's position in a different coordinate system (typically a coordinate system linked to the selection)

int SelectableThing::_ThingName

Integer name as selectable object (name used by GLPushName())


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