#include #include // ------------------------------------------------------------------------- void cpPlugins::OrthoNormalBase:: SetITK( itk::LightObject* o ) { // WARNING: Do nothing since itk::Matrix does not belong to the // itk::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( ) { this->m_BaseActor = vtkSmartPointer< vtkAxesActor >::New( ); } // ------------------------------------------------------------------------- cpPlugins::OrthoNormalBase:: ~OrthoNormalBase( ) { } // ------------------------------------------------------------------------- void cpPlugins::OrthoNormalBase:: _CreateVTKActor( ) const { auto matrix = const_cast< vtkMatrix4x4* >( this->GetVTK< vtkMatrix4x4 >( ) ); if( matrix != NULL ) { this->m_BaseActor->SetUserMatrix( matrix ); this->m_Actor = this->m_BaseActor.GetPointer( ); } // fi } // eof - $RCSfile$