Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

vrvis::Selectable Class Reference

Abstract interface that represents objects that can be selected. More...

#include <Selectable.hpp>

Inheritance diagram for vrvis::Selectable:

vrvis::Layer vrvis::LayerComponent List of all members.

Public Member Functions

virtual ~Selectable (void)
 Virtual Destructor.
void select (void)
 Select this Selectable.
void deselect (void)
 Deselect this Selectable.
bool isSelected (void) const
 Check if this Selectable is currently selected.
bool & getSelectionHandle (void)
 Get read-write access to this Selectable's state member.

Protected Member Functions

 Selectable (void)

Detailed Description

Selectable is effectively an abstract state handling interface that objects can inherit to adopt the functionality of being selected. Typically, Selectables are also Drawables and change their visual appearance in the scene when selected.
See also:
Drawable


Constructor & Destructor Documentation

virtual vrvis::Selectable::~Selectable void   )  [inline, virtual]
 

Virtual Destructor.

vrvis::Selectable::Selectable void   )  [inline, protected]
 

Protected constructor.

Protected constructor; to be called only by implementing child classes.


Member Function Documentation

void vrvis::Selectable::deselect void   )  [inline]
 

Deselect this Selectable by making its state member false.

bool& vrvis::Selectable::getSelectionHandle void   )  [inline]
 

Get a read-write handle to this Selectable's state member.

Returns:
A reference to this Selectable's state member.

bool vrvis::Selectable::isSelected void   )  const [inline]
 

Get the current selection state of this Selectable.

Returns:
The current selection state; true if selected, false if not.

void vrvis::Selectable::select void   )  [inline]
 

Select this Selectable by making its state member true.


The documentation for this class was generated from the following file:
Generated on Tue Sep 21 07:31:11 2004 for VRVis by doxygen 1.3.8