Mercurial > hg > orthanc-stone
diff 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 |
line wrap: on
line diff
--- a/OrthancStone/Sources/Scene2D/AnnotationsSceneLayer.h Fri Oct 28 17:58:59 2022 +0200 +++ b/OrthancStone/Sources/Scene2D/AnnotationsSceneLayer.h Sat Oct 29 11:57:00 2022 +0200 @@ -41,7 +41,8 @@ Tool_Segment, Tool_Angle, Tool_Circle, - Tool_Remove + Tool_Remove, + Tool_PixelProbe }; private: @@ -53,6 +54,7 @@ class Text; class Annotation; + class PixelProbeAnnotation; class SegmentAnnotation; class AngleAnnotation; class CircleAnnotation; @@ -60,6 +62,7 @@ class EditPrimitiveTracker; class CreateSegmentOrCircleTracker; class CreateAngleTracker; + class CreatePixelProbeTracker; class RemoveTracker; typedef std::set<GeometricPrimitive*> GeometricPrimitives; @@ -73,6 +76,7 @@ Annotations annotations_; SubLayers subLayersToRemove_; Units units_; + int probedLayer_; void AddAnnotation(Annotation* annotation); @@ -132,5 +136,15 @@ void Serialize(Json::Value& target) const; void Unserialize(const Json::Value& serialized); + + void SetProbedLayer(int layer) + { + probedLayer_ = layer; + } + + int GetProbedLayer() const + { + return probedLayer_; + } }; }