1 #include <cpPlugins/OrthoNormalBase.h>
3 #include <vtkAxesActor.h>
4 #include <vtkMatrix4x4.h>
6 // -------------------------------------------------------------------------
7 void cpPlugins::OrthoNormalBase::
8 SetITK( itk::LightObject* o )
10 // Do nothing since itk::Matrix does not belong to LightObject hierarchy.
13 // -------------------------------------------------------------------------
14 void cpPlugins::OrthoNormalBase::
15 SetVTK( vtkObjectBase* o )
17 auto matrix = dynamic_cast< vtkMatrix4x4* >( o );
19 this->Superclass::SetVTK( matrix );
22 // -------------------------------------------------------------------------
23 cpPlugins::OrthoNormalBase::
29 // -------------------------------------------------------------------------
30 cpPlugins::OrthoNormalBase::
35 // -------------------------------------------------------------------------
36 void cpPlugins::OrthoNormalBase::
37 _CreateVTKActor( ) const
40 const_cast< vtkMatrix4x4* >( this->GetVTK< vtkMatrix4x4 >( ) );
43 auto actor = vtkAxesActor::New( );
44 actor->SetUserMatrix( matrix );
45 this->m_Actor = actor;