comparison OrthancStone/Sources/Scene2D/AnnotationsSceneLayer.h @ 1975:5a434f5889f8

starting pixel probe
author Sebastien Jodogne <s.jodogne@gmail.com>
date Sat, 29 Oct 2022 11:57:00 +0200
parents 7053b8a0aaec
children d71acf30970a
comparison
equal deleted inserted replaced
1974:446e0d3e9019 1975:5a434f5889f8
39 Tool_Edit, 39 Tool_Edit,
40 Tool_None, 40 Tool_None,
41 Tool_Segment, 41 Tool_Segment,
42 Tool_Angle, 42 Tool_Angle,
43 Tool_Circle, 43 Tool_Circle,
44 Tool_Remove 44 Tool_Remove,
45 Tool_PixelProbe
45 }; 46 };
46 47
47 private: 48 private:
48 class GeometricPrimitive; 49 class GeometricPrimitive;
49 class Handle; 50 class Handle;
51 class Circle; 52 class Circle;
52 class Arc; 53 class Arc;
53 class Text; 54 class Text;
54 55
55 class Annotation; 56 class Annotation;
57 class PixelProbeAnnotation;
56 class SegmentAnnotation; 58 class SegmentAnnotation;
57 class AngleAnnotation; 59 class AngleAnnotation;
58 class CircleAnnotation; 60 class CircleAnnotation;
59 61
60 class EditPrimitiveTracker; 62 class EditPrimitiveTracker;
61 class CreateSegmentOrCircleTracker; 63 class CreateSegmentOrCircleTracker;
62 class CreateAngleTracker; 64 class CreateAngleTracker;
65 class CreatePixelProbeTracker;
63 class RemoveTracker; 66 class RemoveTracker;
64 67
65 typedef std::set<GeometricPrimitive*> GeometricPrimitives; 68 typedef std::set<GeometricPrimitive*> GeometricPrimitives;
66 typedef std::set<Annotation*> Annotations; 69 typedef std::set<Annotation*> Annotations;
67 typedef std::set<size_t> SubLayers; 70 typedef std::set<size_t> SubLayers;
71 size_t polylineSubLayer_; 74 size_t polylineSubLayer_;
72 GeometricPrimitives primitives_; 75 GeometricPrimitives primitives_;
73 Annotations annotations_; 76 Annotations annotations_;
74 SubLayers subLayersToRemove_; 77 SubLayers subLayersToRemove_;
75 Units units_; 78 Units units_;
79 int probedLayer_;
76 80
77 void AddAnnotation(Annotation* annotation); 81 void AddAnnotation(Annotation* annotation);
78 82
79 void DeleteAnnotation(Annotation* annotation); 83 void DeleteAnnotation(Annotation* annotation);
80 84
130 const Scene2D& scene); 134 const Scene2D& scene);
131 135
132 void Serialize(Json::Value& target) const; 136 void Serialize(Json::Value& target) const;
133 137
134 void Unserialize(const Json::Value& serialized); 138 void Unserialize(const Json::Value& serialized);
139
140 void SetProbedLayer(int layer)
141 {
142 probedLayer_ = layer;
143 }
144
145 int GetProbedLayer() const
146 {
147 return probedLayer_;
148 }
135 }; 149 };
136 } 150 }