Public Types | Public Member Functions

cyber::editor::Selection Class Reference

#include <Selection.h>

List of all members.

Public Types

typedef world::ObjectDesc ObjDesc
typedef std::vector< ObjDesc * > ObjDescs

Public Member Functions

 Selection (void)
 Selection (const Selection &rhs)
Selectionoperator= (const Selection &rhs)
 ~Selection (void)
const ObjDescsget_obj_descs () const
ObjDescget_ref_obj_desc () const
void set_ref_obj_desc (ObjDesc *ref_obj_desc)
bool find (ObjDesc *obj_desc)
void add (ObjDesc *obj_desc)
void remove (ObjDesc *obj_desc)
void clear ()
ObjDescs::iterator _find (ObjDesc *obj_desc)

Detailed Description

Holds the currently selected object descriptions.


Member Typedef Documentation


Constructor & Destructor Documentation

cyber::editor::Selection::Selection ( void   ) 

Default constructor.

cyber::editor::Selection::Selection ( const Selection rhs  ) 

Copy constructor.

cyber::editor::Selection::~Selection ( void   ) 

Destructor.


Member Function Documentation

Selection::ObjDescs::iterator cyber::editor::Selection::_find ( ObjDesc obj_desc  ) 

Searches for the given object description and returns its iterator.

void cyber::editor::Selection::add ( ObjDesc obj_desc  ) 

Adds the given object description.

void cyber::editor::Selection::clear (  ) 

Empties the selection.

bool cyber::editor::Selection::find ( ObjDesc obj_desc  ) 

Returns true, if the given object description is included.

const ObjDescs& cyber::editor::Selection::get_obj_descs (  )  const [inline]

Returns the list of selected object descriptions.

ObjDesc* cyber::editor::Selection::get_ref_obj_desc (  )  const [inline]

Returns the reference object description of the current selection.

Selection & cyber::editor::Selection::operator= ( const Selection rhs  ) 

Copy assignment operator.

void cyber::editor::Selection::remove ( ObjDesc obj_desc  ) 

Removes the given object description.

void cyber::editor::Selection::set_ref_obj_desc ( ObjDesc ref_obj_desc  )  [inline]

Sets the reference object description of the current selection.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines