comparison OrthancStone/Sources/Scene2D/PolylineSceneLayer.h @ 1571:85e117739eca

cppcheck
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 21 Sep 2020 17:46:39 +0200
parents 244ad1e4e76a
children 4fb8fdf03314
comparison
equal deleted inserted replaced
1570:9a04f42098a3 1571:85e117739eca
22 #pragma once 22 #pragma once
23 23
24 #include "Color.h" 24 #include "Color.h"
25 #include "ScenePoint2D.h" 25 #include "ScenePoint2D.h"
26 #include "ISceneLayer.h" 26 #include "ISceneLayer.h"
27
28 #include <Compatibility.h> // For ORTHANC_OVERRIDE
27 29
28 #include <vector> 30 #include <vector>
29 31
30 namespace OrthancStone 32 namespace OrthancStone
31 { 33 {
55 { 57 {
56 } 58 }
57 59
58 void Copy(const PolylineSceneLayer& other); 60 void Copy(const PolylineSceneLayer& other);
59 61
60 virtual uint64_t GetRevision() const 62 virtual uint64_t GetRevision() const ORTHANC_OVERRIDE
61 { 63 {
62 return revision_; 64 return revision_;
63 } 65 }
64 66
65 virtual ISceneLayer* Clone() const; 67 virtual ISceneLayer* Clone() const ORTHANC_OVERRIDE;
66 68
67 void SetThickness(double thickness); 69 void SetThickness(double thickness);
68 70
69 double GetThickness() const 71 double GetThickness() const
70 { 72 {
109 const Color& GetColor(size_t i) const 111 const Color& GetColor(size_t i) const
110 { 112 {
111 return GetItem(i).color_; 113 return GetItem(i).color_;
112 } 114 }
113 115
114 virtual Type GetType() const 116 virtual Type GetType() const ORTHANC_OVERRIDE
115 { 117 {
116 return Type_Polyline; 118 return Type_Polyline;
117 } 119 }
118 120
119 virtual bool GetBoundingBox(Extent2D& target) const; 121 virtual bool GetBoundingBox(Extent2D& target) const ORTHANC_OVERRIDE;
120
121 }; 122 };
122 } 123 }