comparison OrthancStone/Sources/Scene2D/AnnotationsSceneLayer.h @ 1809:79a5838739a6

starting the integration of AnnotationsSceneLayer into Stone Web viewer
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 20 May 2021 18:52:02 +0200
parents 0840a25c6d41
children 385c268e8b56
comparison
equal deleted inserted replaced
1808:797633f48a9c 1809:79a5838739a6
29 class AnnotationsSceneLayer : public IObservable 29 class AnnotationsSceneLayer : public IObservable
30 { 30 {
31 public: 31 public:
32 ORTHANC_STONE_DEFINE_ORIGIN_MESSAGE(__FILE__, __LINE__, AnnotationAddedMessage, AnnotationsSceneLayer); 32 ORTHANC_STONE_DEFINE_ORIGIN_MESSAGE(__FILE__, __LINE__, AnnotationAddedMessage, AnnotationsSceneLayer);
33 ORTHANC_STONE_DEFINE_ORIGIN_MESSAGE(__FILE__, __LINE__, AnnotationRemovedMessage, AnnotationsSceneLayer); 33 ORTHANC_STONE_DEFINE_ORIGIN_MESSAGE(__FILE__, __LINE__, AnnotationRemovedMessage, AnnotationsSceneLayer);
34 ORTHANC_STONE_DEFINE_ORIGIN_MESSAGE(__FILE__, __LINE__, AnnotationChangedMessage, AnnotationsSceneLayer);
34 35
35 enum Tool 36 enum Tool
36 { 37 {
37 Tool_Edit, 38 Tool_Edit,
38 Tool_None, 39 Tool_None,
39 Tool_Segment, 40 Tool_Segment,
40 Tool_Angle, 41 Tool_Angle,
41 Tool_Circle, 42 Tool_Circle,
42 Tool_Erase 43 Tool_Remove
43 }; 44 };
44 45
45 private: 46 private:
46 class GeometricPrimitive; 47 class GeometricPrimitive;
47 class Handle; 48 class Handle;
56 class CircleAnnotation; 57 class CircleAnnotation;
57 58
58 class EditPrimitiveTracker; 59 class EditPrimitiveTracker;
59 class CreateSegmentOrCircleTracker; 60 class CreateSegmentOrCircleTracker;
60 class CreateAngleTracker; 61 class CreateAngleTracker;
61 class EraseTracker; 62 class RemoveTracker;
62 63
63 typedef std::set<GeometricPrimitive*> GeometricPrimitives; 64 typedef std::set<GeometricPrimitive*> GeometricPrimitives;
64 typedef std::set<Annotation*> Annotations; 65 typedef std::set<Annotation*> Annotations;
65 typedef std::set<size_t> SubLayers; 66 typedef std::set<size_t> SubLayers;
66 67