Skip to content

Commit

Permalink
Added output of coefficients to vmtksurfacetransforminteractive
Browse files Browse the repository at this point in the history
  • Loading branch information
lantiga committed Oct 20, 2013
1 parent ff6f4ff commit b368a17
Show file tree
Hide file tree
Showing 18 changed files with 10 additions and 1 deletion.
Empty file modified CMakeInput/VMTKConfig.cmake.in
100755 → 100644
Empty file.
Empty file modified CMakeInput/VMTKUse.cmake.in
100755 → 100644
Empty file.
Empty file modified PypeS/pypewrapper.py
100755 → 100644
Empty file.
Empty file modified vmtk.py
100755 → 100644
Empty file.
Empty file.
Empty file.
Empty file.
Empty file modified vmtkScripts/vmtkmeshcompare.py
100755 → 100644
Empty file.
11 changes: 10 additions & 1 deletion vmtkScripts/vmtksurfacetransforminteractive.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ def __init__(self):
self.Actor = None
self.BoxWidget = None
self.Matrix4x4 = None
self.MatrixCoefficients = None
self.Transform = None
self.TransformFilter = None
self.Scaling = 0
Expand All @@ -55,7 +56,8 @@ def __init__(self):
])
self.SetOutputMembers([
['Surface','o','vtkPolyData',1,'','the output surface','vmtksurfacewriter'],
['Matrix4x4','omatrix4x4','vtkMatrix4x4',1,'','the output transform matrix']
['Matrix4x4','omatrix4x4','vtkMatrix4x4',1,'','the output transform matrix'],
['MatrixCoefficients','omatrix','float',16,'','the output transform matrix coefficients']
])

def MoveCallback(self,obj):
Expand Down Expand Up @@ -186,6 +188,13 @@ def Execute(self):

self.Matrix4x4 = self.Transform.GetMatrix()

matrix = self.Matrix4x4
self.MatrixCoefficients = [
matrix.GetElement(0,0), matrix.GetElement(0,1), matrix.GetElement(0,2), matrix.GetElement(0,3),
matrix.GetElement(1,0), matrix.GetElement(1,1), matrix.GetElement(1,2), matrix.GetElement(1,3),
matrix.GetElement(2,0), matrix.GetElement(2,1), matrix.GetElement(2,2), matrix.GetElement(2,3),
matrix.GetElement(3,0), matrix.GetElement(3,1), matrix.GetElement(3,2), matrix.GetElement(3,3)]

if self.OwnRenderer:
self.vmtkRenderer.Deallocate()

Expand Down
Empty file modified vtkVmtk/Utilities/Stellar_1.0/meshconvert.py
100755 → 100644
Empty file.
Empty file modified vtkVmtk/Utilities/vtkvmtkITK/vtkvmtkITK.h
100755 → 100644
Empty file.
Empty file.
Empty file.
Empty file modified vtkVmtk/Utilities/vtkvmtkITK/vtkvmtkITKConfig.cmake.in
100755 → 100644
Empty file.
Empty file modified vtkVmtk/Utilities/vtkvmtkITK/vtkvmtkITKConfigure.h.in
100755 → 100644
Empty file.
Empty file modified vtkVmtk/Utilities/vtkvmtkITK/vtkvmtkITKImageWriter.cxx
100755 → 100644
Empty file.
Empty file modified vtkVmtk/Utilities/vtkvmtkITK/vtkvmtkITKImageWriter.h
100755 → 100644
Empty file.
Empty file modified vtkVmtk/Utilities/vtkvmtkITK/vtkvmtkITKWin32Header.h
100755 → 100644
Empty file.

0 comments on commit b368a17

Please sign in to comment.