Mercurial > hg > orthanc-stone
comparison Framework/Radiography/RadiographyLayerCropTracker.h @ 476:a95090305dd4 am-touch-events
Introduced ControlPoint instead of Corner in the trackers and layers + drawing mask from the ControlPoints
author | am@osimis.io |
---|---|
date | Wed, 13 Feb 2019 12:04:02 +0100 |
parents | 3b4df9925db6 |
children | 4f2416d519b4 |
comparison
equal
deleted
inserted
replaced
475:3c28542229a3 | 476:a95090305dd4 |
---|---|
33 private: | 33 private: |
34 class UndoRedoCommand; | 34 class UndoRedoCommand; |
35 | 35 |
36 UndoRedoStack& undoRedoStack_; | 36 UndoRedoStack& undoRedoStack_; |
37 RadiographyScene::LayerAccessor accessor_; | 37 RadiographyScene::LayerAccessor accessor_; |
38 Corner corner_; | 38 ControlPoint startControlPoint_; |
39 unsigned int cropX_; | 39 unsigned int cropX_; |
40 unsigned int cropY_; | 40 unsigned int cropY_; |
41 unsigned int cropWidth_; | 41 unsigned int cropWidth_; |
42 unsigned int cropHeight_; | 42 unsigned int cropHeight_; |
43 | 43 |
44 public: | 44 public: |
45 RadiographyLayerCropTracker(UndoRedoStack& undoRedoStack, | 45 RadiographyLayerCropTracker(UndoRedoStack& undoRedoStack, |
46 RadiographyScene& scene, | 46 RadiographyScene& scene, |
47 const ViewportGeometry& view, | 47 const ViewportGeometry& view, |
48 size_t layer, | 48 size_t layer, |
49 double x, | 49 const ControlPoint& startControlPoint); |
50 double y, | |
51 Corner corner); | |
52 | 50 |
53 virtual bool HasRender() const | 51 virtual bool HasRender() const |
54 { | 52 { |
55 return false; | 53 return false; |
56 } | 54 } |