27 class DtDriverManager;
35 typedef std::set<DtUniqueID>
IdSet;
40 SelectionModeEntities = 1,
41 SelectionModeTerrain = 2
68 MaintainSelectionIfSelected
81 void performSelectionOperation(SelectionOperation op,
const IdSet& ids);
84 void setCurrentSelections(
const IdSet& selections );
90 void addToCurrentSelection(
const IdSet& adds );
95 void maintainCurrentSelectionIfSelected(
const IdSet& maintain );
98 void removeFromCurrentSelection(
const IdSet& removes );
102 void toggleFromCurrentSelection(
const IdSet& toggles );
105 void removeFromCurrentSelection(
109 SelectionMode selectionMode()
const;
110 void setSelectionMode( SelectionMode mode );
127 SelectionType selectionType()
const;
131 virtual bool propSelectionMajorityTransparent();
134 virtual void slot_onElementsRemoved(
138 virtual void backupCurrentSelection();
142 virtual bool restoreCurrentSelection();
144 bool selectionIsVertex(
const IdSet& selection );
153 virtual bool allItemsWantVertexSelection(
const IdSet&)
const;
165 boost::signal<void (
const IdSet& selected,
const IdSet& deselected,
166 SelectionType newType,
171 boost::signal<void (const DtUniqueID& id, const DtUniqueID& parentId)>
176 boost::signal<void (const DtUniqueID& id, const DtUniqueID& parentId)>
191 virtual void removeSelectableObjectTypeFromAllModes(
209 bool vertexSelectsParent );
220 void removeFromCurrentSelection(
DtUniqueID id );
223 void announceCurrentSelectionChanged(
const IdSet& selected,
226 void updateSelectionDisplay(
const IdSet& selected,
227 const IdSet& deselected );
229 void updateSelectionType();
234 void convertVertexIdsToParentIds(
const IdSet& in,
IdSet& out );
239 typedef boost::unordered_map<SelectionMode, ElementTypeSet>