Mercurial > hg > orthanc-stone
comparison OrthancStone/Sources/Scene2D/AnnotationsSceneLayer.cpp @ 1817:385c268e8b56
cppcheck
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 25 May 2021 19:51:45 +0200 |
parents | db341679dc9f |
children | fe402c678d18 |
comparison
equal
deleted
inserted
replaced
1816:dccdc7e59929 | 1817:385c268e8b56 |
---|---|
156 | 156 |
157 AnnotationsSceneLayer& that_; | 157 AnnotationsSceneLayer& that_; |
158 GeometricPrimitives primitives_; | 158 GeometricPrimitives primitives_; |
159 | 159 |
160 public: | 160 public: |
161 Annotation(AnnotationsSceneLayer& that) : | 161 explicit Annotation(AnnotationsSceneLayer& that) : |
162 that_(that) | 162 that_(that) |
163 { | 163 { |
164 that.AddAnnotation(this); | 164 that.AddAnnotation(this); |
165 } | 165 } |
166 | 166 |
610 public: | 610 public: |
611 Text(AnnotationsSceneLayer& that, | 611 Text(AnnotationsSceneLayer& that, |
612 Annotation& parentAnnotation) : | 612 Annotation& parentAnnotation) : |
613 GeometricPrimitive(parentAnnotation, 2), | 613 GeometricPrimitive(parentAnnotation, 2), |
614 that_(that), | 614 that_(that), |
615 first_(true) | 615 first_(true), |
616 subLayer_(0) // dummy initialization | |
616 { | 617 { |
617 } | 618 } |
618 | 619 |
619 virtual ~Text() | 620 virtual ~Text() |
620 { | 621 { |