1 #include <cpPlugins/OrthoNormalBase.h>
3 #include <vtkMatrix4x4.h>
5 // -------------------------------------------------------------------------
6 void cpPlugins::OrthoNormalBase::
7 SetITK( itk::LightObject* o )
9 // WARNING: Do nothing since itk::Matrix does not belong to the
10 // itk::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::
27 this->m_BaseActor = vtkSmartPointer< vtkAxesActor >::New( );
30 // -------------------------------------------------------------------------
31 cpPlugins::OrthoNormalBase::
36 // -------------------------------------------------------------------------
37 void cpPlugins::OrthoNormalBase::
38 _CreateVTKActor( ) const
41 const_cast< vtkMatrix4x4* >( this->GetVTK< vtkMatrix4x4 >( ) );
44 this->m_BaseActor->SetUserMatrix( matrix );
45 this->m_Actor = this->m_BaseActor.GetPointer( );