comparison OrthancStone/Sources/Scene2D/NullLayer.h @ 1610:b7630b1a0253

ISceneLayer::GetBoundingBox() returns void
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 29 Oct 2020 17:13:13 +0100
parents 8563ea5d8ae4
children 9ac2a65d4172
comparison
equal deleted inserted replaced
1609:5f5c549499ff 1610:b7630b1a0253
35 namespace OrthancStone 35 namespace OrthancStone
36 { 36 {
37 class NullLayer : public ISceneLayer 37 class NullLayer : public ISceneLayer
38 { 38 {
39 public: 39 public:
40 NullLayer() {} 40 NullLayer()
41 {
42 }
41 43
42 virtual ISceneLayer* Clone() const ORTHANC_OVERRIDE 44 virtual ISceneLayer* Clone() const ORTHANC_OVERRIDE
43 { 45 {
44 return new NullLayer(); 46 return new NullLayer();
45 } 47 }
47 virtual Type GetType() const ORTHANC_OVERRIDE 49 virtual Type GetType() const ORTHANC_OVERRIDE
48 { 50 {
49 return Type_NullLayer; 51 return Type_NullLayer;
50 } 52 }
51 53
52 virtual bool GetBoundingBox(Extent2D& target) const ORTHANC_OVERRIDE 54 virtual void GetBoundingBox(Extent2D& target) const ORTHANC_OVERRIDE
53 { 55 {
54 target = Extent2D(); 56 target.Clear();
55 return false;
56 } 57 }
57 58
58 virtual uint64_t GetRevision() const ORTHANC_OVERRIDE 59 virtual uint64_t GetRevision() const ORTHANC_OVERRIDE
59 { 60 {
60 return 0; 61 return 0;