#include #include #include // ------------------------------------------------------------------------- void cpPlugins::OrthoNormalBase:: SetITK( itk::LightObject* o ) { // Do nothing since itk::Matrix does not belong to LightObject hierarchy. } // ------------------------------------------------------------------------- void cpPlugins::OrthoNormalBase:: SetVTK( vtkObjectBase* o ) { auto matrix = dynamic_cast< vtkMatrix4x4* >( o ); if( matrix != NULL ) this->Superclass::SetVTK( matrix ); } // ------------------------------------------------------------------------- cpPlugins::OrthoNormalBase:: OrthoNormalBase( ) : Superclass( ) { } // ------------------------------------------------------------------------- cpPlugins::OrthoNormalBase:: ~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$