comparison OrthancStone/Sources/Scene2D/TextureBaseSceneLayer.h @ 1769:a217140dd41a

refactoring
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 12 May 2021 10:26:13 +0200
parents 226718777702
children fca942f4b4a7
comparison
equal deleted inserted replaced
1768:226718777702 1769:a217140dd41a
22 22
23 #pragma once 23 #pragma once
24 24
25 #include "ISceneLayer.h" 25 #include "ISceneLayer.h"
26 #include "../Toolbox/AffineTransform2D.h" 26 #include "../Toolbox/AffineTransform2D.h"
27 #include "../Toolbox/CoordinateSystem3D.h"
27 28
28 #include <Compatibility.h> 29 #include <Compatibility.h>
29 #include <Images/ImageAccessor.h> 30 #include <Images/ImageAccessor.h>
30 31
31 namespace OrthancStone 32 namespace OrthancStone
123 124
124 void SetTransform(const AffineTransform2D& transform); 125 void SetTransform(const AffineTransform2D& transform);
125 126
126 void ClearTransform(); 127 void ClearTransform();
127 128
129 // Initialize a transform that maps a texture slice in 3D, to a
130 // cutting plane (the cutting plane should be parallel to the 3D
131 // slice). The "pixelOffsetX/Y" must take pixel spacing into account.
132 void SetCuttingPlaneTransform(const CoordinateSystem3D& cuttingPlane,
133 const Vector& origin, // coordinates of the center of the voxel
134 const Vector& pixelOffsetX, // 3D offset from (0,0) voxel to (1,0) voxel
135 const Vector& pixelOffsetY); // 3D offset from (0,0) voxel to (0,1) voxel
136
128 AffineTransform2D GetTransform() const; 137 AffineTransform2D GetTransform() const;
129 138
130 virtual void GetBoundingBox(Extent2D& target) const ORTHANC_OVERRIDE; 139 virtual void GetBoundingBox(Extent2D& target) const ORTHANC_OVERRIDE;
131 140
132 virtual uint64_t GetRevision() const ORTHANC_OVERRIDE 141 virtual uint64_t GetRevision() const ORTHANC_OVERRIDE