comparison OrthancStone/Sources/Scene2DViewport/MeasureTool.h @ 1791:9b650ab68d4c

replaced unneeded use of boost::share_ptr for MeasureCommand mementos by std::unique_ptr
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 17 May 2021 16:11:17 +0200
parents 462d7a0e064e
children 3889ae96d2e9
comparison
equal deleted inserted replaced
1790:b325761e0bd3 1791:9b650ab68d4c
122 122
123 /** 123 /**
124 This method must return a memento the captures the tool state (not including 124 This method must return a memento the captures the tool state (not including
125 the highlighting state 125 the highlighting state
126 */ 126 */
127 virtual boost::shared_ptr<MeasureToolMemento> GetMemento() const = 0; 127 virtual MeasureToolMemento* CreateMemento() const = 0;
128 128
129 /** 129 /**
130 This method must apply the supplied memento (this requires RTTI to check 130 This method must apply the supplied memento (this requires RTTI to check
131 the type) 131 the type)
132 */ 132 */
133 virtual void SetMemento(boost::shared_ptr<MeasureToolMemento>) = 0; 133 virtual void SetMemento(const MeasureToolMemento& memento) = 0;
134 134
135 /** 135 /**
136 This must create an edition tracker suitable for the supplied click position, 136 This must create an edition tracker suitable for the supplied click position,
137 or an empty pointer if no hit test (although this should have been checked 137 or an empty pointer if no hit test (although this should have been checked
138 first) 138 first)