Changeset 445 for cafu/trunk
- Timestamp:
- 12/19/11 09:54:47 (5 months ago)
- Location:
- cafu/trunk/CaWE/MapCommands
- Files:
-
- 2 modified
-
Delete.cpp (modified) (2 diffs)
-
Delete.hpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
cafu/trunk/CaWE/MapCommands/Delete.cpp
r285 r445 46 46 47 47 return true; 48 } 49 50 51 CommandDeleteT::CommandDeleteT(MapDocumentT& MapDoc, MapElementT* DeleteElem) 52 : m_MapDoc(MapDoc), 53 m_DeleteEnts(), 54 m_DeletePrims(), 55 m_DeletePrimsParents(), 56 m_CommandSelect(NULL) 57 { 58 ArrayT<MapElementT*> DeleteElems; 59 60 DeleteElems.PushBack(DeleteElem); 61 Init(DeleteElems); 48 62 } 49 63 … … 55 69 m_DeletePrimsParents(), 56 70 m_CommandSelect(NULL) 71 { 72 Init(DeleteElems); 73 } 74 75 76 void CommandDeleteT::Init(const ArrayT<MapElementT*>& DeleteElems) 57 77 { 58 78 // Split the list of elements into a list of primitives and a list of entities. -
cafu/trunk/CaWE/MapCommands/Delete.hpp
r285 r445 38 38 public: 39 39 40 /// Constructor to delete an individual object. 41 CommandDeleteT(MapDocumentT& MapDoc, MapElementT* DeleteElem); 42 40 43 /// Constructor to delete an array of objects. 41 44 CommandDeleteT(MapDocumentT& MapDoc, const ArrayT<MapElementT*>& DeleteElems); … … 52 55 private: 53 56 57 void Init(const ArrayT<MapElementT*>& DeleteElems); 58 54 59 MapDocumentT& m_MapDoc; 55 60 ArrayT<MapEntityT*> m_DeleteEnts; ///< The entities to delete.
