| 42 |
|
#ifndef SELECTION_SELECTIONMANAGER_HPP |
| 43 |
|
#define SELECTION_SELECTIONMANAGER_HPP |
| 44 |
|
|
| 45 |
< |
#include "utils/BitSet.hpp" |
| 45 |
> |
#include "utils/OOPSEBitSet.hpp" |
| 46 |
|
#include "primitives/StuntDouble.hpp" |
| 47 |
|
namespace oopse { |
| 48 |
|
|
| 59 |
|
bsSelection_.setBitOn(sd->getGlobalIndex()); |
| 60 |
|
} |
| 61 |
|
|
| 62 |
< |
void addSelectionSet(const BitSet& bs) { |
| 62 |
> |
void addSelectionSet(const OOPSEBitSet& bs) { |
| 63 |
|
bsSelection_ |= bs; |
| 64 |
|
} |
| 65 |
|
|
| 68 |
|
bsSelection_.setBitOn(sd->getGlobalIndex()); |
| 69 |
|
} |
| 70 |
|
|
| 71 |
< |
void setSelectionSet(const BitSet& bs) { |
| 71 |
> |
void setSelectionSet(const OOPSEBitSet& bs) { |
| 72 |
|
bsSelection_ = bs; |
| 73 |
|
} |
| 74 |
|
|
| 104 |
|
return bsSelection_.countBits(); |
| 105 |
|
} |
| 106 |
|
|
| 107 |
< |
BitSet getSelectionSet() { |
| 107 |
> |
OOPSEBitSet getSelectionSet() { |
| 108 |
|
return bsSelection_; |
| 109 |
|
} |
| 110 |
|
|
| 142 |
|
|
| 143 |
|
private: |
| 144 |
|
SimInfo* info_; |
| 145 |
< |
BitSet bsSelection_; |
| 145 |
> |
OOPSEBitSet bsSelection_; |
| 146 |
|
std::vector<StuntDouble*> stuntdoubles_; |
| 147 |
|
}; |
| 148 |
|
|