Source
216
216
217
217
PlotStandardMouseToolGroupPtr PlotFactory::standardMouseTools(
218
218
ToolCode activeTool,
219
219
bool smartDelete) const {
220
220
221
221
PlotSelectToolPtr sel = selectTool();
222
222
sel->setSelectLine(line("black", PlotLine::SOLID, 1.0));
223
223
sel->setRectLine(line("black", PlotLine::SOLID, 1.0));
224
224
sel->setRectFill(areaFill("black", PlotAreaFill::MESH3));
225
225
return PlotStandardMouseToolGroupPtr(new PlotStandardMouseToolGroup(
226
-
sel, zoomTool(), panTool(), flagAllTool(), trackerTool(), activeTool),
226
+
sel, zoomTool(), panTool(), flagAllTool(), unflagAllTool(), trackerTool(), activeTool),
227
227
smartDelete);
228
228
}
229
229
230
230
231
231
232
232
233
233
PlotStandardMouseToolGroupPtr PlotFactory::standardMouseTools(
234
234
PlotAxis xAxis,
235
235
PlotAxis yAxis,
236
236
PlotCoordinate::System sys,
237
237
ToolCode activeTool,
238
238
bool smartDelete) const {
239
239
240
240
PlotSelectToolPtr sel = selectTool(xAxis, yAxis, sys);
241
241
sel->setSelectLine(line("black", PlotLine::SOLID, 1.0));
242
242
sel->setSubtractLine(line("violet", PlotLine::DASHED, 2.0)); //DSW: if compiles ok, change to #9020C8
243
243
sel->setRectLine(line("black", PlotLine::SOLID, 1.0));
244
244
sel->setRectFill(areaFill("black", PlotAreaFill::MESH3));
245
245
return PlotStandardMouseToolGroupPtr(new PlotStandardMouseToolGroup(
246
246
sel, zoomTool(xAxis, yAxis, sys), panTool(xAxis, yAxis, sys),
247
-
flagAllTool(xAxis, yAxis, sys),
247
+
flagAllTool(xAxis, yAxis, sys), unflagAllTool(xAxis, yAxis, sys),
248
248
trackerTool(xAxis, yAxis, sys), activeTool), smartDelete);
249
249
}
250
250
251
251
PlotSelectToolPtr PlotFactory::selectTool(bool smartDelete) const {
252
252
return PlotSelectToolPtr(new PlotSelectTool(), smartDelete); }
253
253
254
254
PlotZoomToolPtr PlotFactory::zoomTool(bool smartDelete) const {
255
255
return PlotZoomToolPtr(new PlotZoomTool(), smartDelete); }
256
256
257
257
PlotPanToolPtr PlotFactory::panTool(bool smartDelete) const {
258
258
return PlotPanToolPtr(new PlotPanTool(), smartDelete); }
259
259
260
260
PlotFlagAllToolPtr PlotFactory::flagAllTool(bool smartDelete) const {
261
261
return PlotFlagAllToolPtr(new PlotFlagAllTool(), smartDelete); }
262
262
263
+
PlotUnflagAllToolPtr PlotFactory::unflagAllTool(bool smartDelete) const {
264
+
return PlotUnflagAllToolPtr(new PlotUnflagAllTool(), smartDelete); }
265
+
263
266
PlotTrackerToolPtr PlotFactory::trackerTool(bool smartDelete) const {
264
267
return PlotTrackerToolPtr(new PlotTrackerTool(), smartDelete); }
265
268
266
269
PlotSelectToolPtr PlotFactory::selectTool(PlotAxis xAxis, PlotAxis yAxis,
267
270
PlotCoordinate::System system, bool smartDelete) const {
268
271
return PlotSelectToolPtr(new PlotSelectTool(xAxis, yAxis, system),
269
272
smartDelete);
270
273
}
271
274
272
275
PlotZoomToolPtr PlotFactory::zoomTool(PlotAxis xAxis, PlotAxis yAxis,
280
283
281
284
(void)smartDelete;
282
285
return PlotPanToolPtr(new PlotPanTool(xAxis, yAxis, system), false); }
283
286
284
287
PlotFlagAllToolPtr PlotFactory::flagAllTool(PlotAxis xAxis, PlotAxis yAxis,
285
288
PlotCoordinate::System system, bool smartDelete) const {
286
289
return PlotFlagAllToolPtr(new PlotFlagAllTool(xAxis, yAxis, system),
287
290
smartDelete);
288
291
}
289
292
293
+
PlotUnflagAllToolPtr PlotFactory::unflagAllTool(PlotAxis xAxis, PlotAxis yAxis,
294
+
PlotCoordinate::System system, bool smartDelete) const {
295
+
return PlotUnflagAllToolPtr(new PlotUnflagAllTool(xAxis, yAxis, system),
296
+
smartDelete);
297
+
}
298
+
290
299
PlotTrackerToolPtr PlotFactory::trackerTool(PlotAxis xAxis, PlotAxis yAxis,
291
300
PlotCoordinate::System system, bool smartDelete) const {
292
301
return PlotTrackerToolPtr(new PlotTrackerTool(xAxis, yAxis, system),
293
302
smartDelete);
294
303
}
295
304
296
305
297
306
// Macro for method definitions for PF_DATA_DEC declarations.
298
307
#define PF_DATA_DEF(TYPE) \
299
308
PlotPointDataPtr PlotFactory::data(TYPE *& y, unsigned int n, \