ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE-2.0/src/selection/SelectionManager.cpp
(Generate patch)

Comparing trunk/OOPSE-2.0/src/selection/SelectionManager.cpp (file contents):
Revision 2001 by tim, Sat Feb 12 20:09:28 2005 UTC vs.
Revision 2037 by tim, Wed Feb 16 19:36:30 2005 UTC

# Line 82 | Line 82 | StuntDouble* SelectionManager::beginUnselected(int& i)
82      return i == -1 ? NULL : stuntdoubles_[i];
83   }
84  
85 < StuntDouble* SelectionManager::beginUnselected(int& i) {
85 > StuntDouble* SelectionManager::beginUnselected(int& i){
86      i = bsSelection_.firstOffBit();
87      return i == -1 ? NULL : stuntdoubles_[i];
88   }
# Line 91 | Line 91 | StuntDouble* SelectionManager::nextUnSelected(int& i)
91      return i == -1 ? NULL : stuntdoubles_[i];
92   }
93  
94 +
95 + SelectionManager operator| (const SelectionManager& sman1, const SelectionManager& sman2) {
96 +    SelectionManager result(sman1);
97 +    result |= sman2;
98 +    return result;
99   }
100 + SelectionManager operator& (const SelectionManager& sman1, const SelectionManager& sman2) {
101 +    SelectionManager result(sman1);
102 +    result &= sman2;
103 +    return result;
104 +
105 + }
106 + SelectionManager operator^ (const SelectionManager& sman1, const SelectionManager& sman2) {
107 +    SelectionManager result(sman1);
108 +    result ^= sman2;
109 +    return result;
110 +
111 + }
112 + SelectionManager operator-(const SelectionManager& sman1, const SelectionManager& sman2){
113 +    SelectionManager result(sman1);
114 +    result -= sman2;
115 +    return result;
116 +
117 + }
118 +
119 + }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines