Mercurial > hg > orthanc-stone
comparison Framework/Layers/DicomStructureSetRendererFactory.h @ 121:e66b2c757790 wasm
displaying rt-struct
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 04 Oct 2017 17:53:47 +0200 |
parents | 28956ed68280 |
children | e3433dabfb8d |
comparison
equal
deleted
inserted
replaced
120:063f7f3d9f14 | 121:e66b2c757790 |
---|---|
20 | 20 |
21 | 21 |
22 #pragma once | 22 #pragma once |
23 | 23 |
24 #include "../Toolbox/DicomStructureSet.h" | 24 #include "../Toolbox/DicomStructureSet.h" |
25 #include "ILayerRendererFactory.h" | 25 #include "LayerSourceBase.h" |
26 | 26 |
27 namespace OrthancStone | 27 namespace OrthancStone |
28 { | 28 { |
29 class DicomStructureSetRendererFactory : public ILayerRendererFactory | 29 class DicomStructureSetRendererFactory : public LayerSourceBase |
30 { | 30 { |
31 private: | 31 private: |
32 class Renderer; | 32 class Renderer; |
33 | 33 |
34 const DicomStructureSet& structureSet_; | 34 const DicomStructureSet& structureSet_; |
35 | 35 |
36 public: | 36 public: |
37 DicomStructureSetRendererFactory(const DicomStructureSet& structureSet) : | 37 DicomStructureSetRendererFactory(const DicomStructureSet& structureSet) : |
38 structureSet_(structureSet) | 38 structureSet_(structureSet) |
39 { | 39 { |
40 } | 40 } |
41 | 41 |
42 virtual bool GetExtent(double& x1, | 42 virtual bool GetExtent(std::vector<Vector>& points, |
43 double& y1, | 43 const CoordinateSystem3D& viewportSlice) |
44 double& x2, | |
45 double& y2, | |
46 const SliceGeometry& displaySlice) | |
47 { | 44 { |
48 return false; | 45 return false; |
49 } | 46 } |
50 | 47 |
51 virtual ILayerRenderer* CreateLayerRenderer(const SliceGeometry& displaySlice); | 48 virtual void ScheduleLayerCreation(const CoordinateSystem3D& viewportSlice); |
52 | |
53 virtual bool HasSourceVolume() const | |
54 { | |
55 return false; | |
56 } | |
57 | |
58 virtual ISliceableVolume& GetSourceVolume() const; | |
59 }; | 49 }; |
60 } | 50 } |