Add transform matrix to Property.
This commit is contained in:
@@ -7,6 +7,8 @@
|
|||||||
|
|
||||||
#include <vtkMedicalImageProperties.h>
|
#include <vtkMedicalImageProperties.h>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
#include <vtkNew.h>
|
||||||
|
#include <vtkMatrix4x4.h>
|
||||||
|
|
||||||
class ExtendMedicalImageProperties: public vtkMedicalImageProperties{
|
class ExtendMedicalImageProperties: public vtkMedicalImageProperties{
|
||||||
public:
|
public:
|
||||||
@@ -72,6 +74,12 @@ public:
|
|||||||
void SetUniqueID(const std::string& id){
|
void SetUniqueID(const std::string& id){
|
||||||
uniqueID = id;
|
uniqueID = id;
|
||||||
}
|
}
|
||||||
|
vtkMatrix4x4* GetWorldToModelMatrix(){
|
||||||
|
return worldToModelMatrix.Get();
|
||||||
|
}
|
||||||
|
vtkMatrix4x4* GetModelToWorldMatrix(){
|
||||||
|
return modelToWorldMatrix.Get();
|
||||||
|
}
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
ExtendMedicalImageProperties();
|
ExtendMedicalImageProperties();
|
||||||
@@ -84,6 +92,8 @@ protected:
|
|||||||
unsigned short SamplePerPixel;
|
unsigned short SamplePerPixel;
|
||||||
std::vector<std::string> FileNames;
|
std::vector<std::string> FileNames;
|
||||||
std::string uniqueID;
|
std::string uniqueID;
|
||||||
|
vtkNew<vtkMatrix4x4> worldToModelMatrix;
|
||||||
|
vtkNew<vtkMatrix4x4> modelToWorldMatrix;
|
||||||
private:
|
private:
|
||||||
ExtendMedicalImageProperties(const ExtendMedicalImageProperties&) = delete;
|
ExtendMedicalImageProperties(const ExtendMedicalImageProperties&) = delete;
|
||||||
void operator=(const ExtendMedicalImageProperties&) = delete;
|
void operator=(const ExtendMedicalImageProperties&) = delete;
|
||||||
|
|||||||
Reference in New Issue
Block a user