]> Creatis software - cpPlugins.git/blobdiff - lib/cpPlugins/OrthoNormalBase.cxx
...
[cpPlugins.git] / lib / cpPlugins / OrthoNormalBase.cxx
index 4ad0255a33f74bd2bbe058fdc5023e01cdd09879..e45545de90a132aeb6e3a5fca646ee86fcd61a49 100644 (file)
@@ -1,6 +1,8 @@
 #include <cpPlugins/OrthoNormalBase.h>
+
+#include <vtkAxesActor.h>
 #include <vtkMatrix4x4.h>
+
 // -------------------------------------------------------------------------
 void cpPlugins::OrthoNormalBase::
 SetITK( itk::LightObject* o )
@@ -34,6 +36,15 @@ cpPlugins::OrthoNormalBase::
 void cpPlugins::OrthoNormalBase::
 _CreateVTKActor( ) const
 {
+  auto matrix =
+    const_cast< vtkMatrix4x4* >( this->GetVTK< vtkMatrix4x4 >( ) );
+  if( matrix !=  NULL )
+  {
+    auto actor = vtkAxesActor::New( );
+    actor->SetUserMatrix( matrix );
+    this->m_Actor = actor;
+
+  } // fi
 }
 
 // eof - $RCSfile$