--- trunk/src/selection/SelectionManager.hpp 2005/02/03 23:14:05 283 +++ trunk/src/selection/SelectionManager.hpp 2005/02/11 22:39:03 315 @@ -43,16 +43,17 @@ #define SELECTION_SELECTIONMANAGER_HPP #include "utils/BitSet.hpp" - +#include "primitives/StuntDouble.hpp" namespace oopse { +class SimInfo; /** * @class SelectionManager SelectionManager.hpp "selection/SelectionManager.hpp" * @brief */ class SelectionManager { public: - SelectionManager(int size) {bsSelection_.resize(size); clearSelection;} + SelectionManager(SimInfo* info); void addSelection(StuntDouble* sd) { bsSelection_.setBitOn(sd->getGlobalIndex()); @@ -100,17 +101,24 @@ class SelectionManager { } int getSelectionCount() { - bsSelection_.countBits(); + return bsSelection_.countBits(); } BitSet getSelectionSet() { return bsSelection_; } + + + StuntDouble* beginSelected(int& i); + StuntDouble* nextSelected(int& i); + + StuntDouble* beginUnselected(int& i); + StuntDouble* nextUnSelected(int& i); private: - - BitSet bsSelection_; SimInfo* info_; + BitSet bsSelection_; + std::vector stuntdoubles_; }; }