Aimsun Next Scripting  22
Public Member Functions | List of all members
GKGeoSelection Class Reference
Inheritance diagram for GKGeoSelection:
GKSelection

Public Member Functions

 GKGeoSelection ()
 
virtual ~GKGeoSelection ()
 
virtual void clear ()
 
virtual void selectMultiple (GKObject *)
 
virtual void deselectMultiple (GKObject *obj)
 
GKGeoObjectgetAny (GKType *, MatchMode mm) const
 
- Public Member Functions inherited from GKSelection
 GKSelection ()
 
virtual ~GKSelection ()
 
GKModelgetModel () const
 
virtual void clear ()
 
void select (GKObject *)
 
virtual void selectMultiple (GKObject *)
 
virtual void endSelectMultiple ()
 
void deselect (GKObject *)
 
virtual void deselectMultiple (GKObject *)
 
virtual void deselectAll ()
 
void remove ()
 
uint size () const
 
uint size (GKType *, MatchMode) const
 
bool anySelected (GKType *, MatchMode mm) const
 
GKObjectgetAny (GKType *, MatchMode mm) const
 
bool atLeast (uint, GKType *, MatchMode mm) const
 
bool canBeDeleted () const
 
bool canBeModified () const
 
const QList< GKObject * > & getObjects () const
 
GKTypegetSelectionType () const
 
bool isSelected (GKObject *) const
 

Additional Inherited Members

- Public Types inherited from GKSelection
enum  MatchMode { eExactlyThisClass , eThisAndSubclasses }
 

Detailed Description

This class represents the specific selection model used for the geometric model. This means, it handles the 'selected' flag provided by the GKGeoObject objects, so the selection is effectively stablished at model level.

Constructor & Destructor Documentation

◆ GKGeoSelection()

GKGeoSelection::GKGeoSelection ( )

◆ ~GKGeoSelection()

virtual GKGeoSelection::~GKGeoSelection ( )
virtual

Member Function Documentation

◆ clear()

virtual void GKGeoSelection::clear ( )
virtual

Redefined to clear the selection flag for all GKGeoObject selected.

Reimplemented from GKSelection.

◆ deselectMultiple()

virtual void GKGeoSelection::deselectMultiple ( GKObject obj)
virtual

Redefined to take care of GKGeoObject's internal selection flag.

Reimplemented from GKSelection.

◆ getAny()

GKGeoObject * GKGeoSelection::getAny ( GKType ,
MatchMode  mm 
) const

Redefined to cast returned GKObject to GKGeoObject, if possible.

◆ selectMultiple()

virtual void GKGeoSelection::selectMultiple ( GKObject )
virtual

Redefined to take care of GKGeoObject's internal selection flag.

Reimplemented from GKSelection.

© Aimsun SLU
Aimsun ®