// -------------------------------------------------------------------------
void cpExtensions::QT::SimpleMPRWidget::
-AddMeshActor( vtkActor* actor )
+AddMeshActor( vtkProp3D* actor )
{
- std::cerr << "SimpleMPR: adding mesh actor" << std::endl;
- std::exit( 1 );
+ if( actor != NULL )
+ {
+ this->m_Renderers[ 3 ]->AddViewProp( actor );
+ this->m_VTK[ 3 ]->GetRenderWindow( )->Render( );
+
+ } // fi
}
// -------------------------------------------------------------------------
void AddImage( vtkImageData* image );
void AddImageActor( vtkImageActor* actor );
void AddMesh( vtkPolyData* mesh );
- void AddMeshActor( vtkActor* actor );
+ void AddMeshActor( vtkProp3D* actor );
void AddActor( vtkProp* actor );
// Visual objects
#include <cpPlugins/OrthoNormalBase.h>
+
+#include <vtkAxesActor.h>
#include <vtkMatrix4x4.h>
-
+
// -------------------------------------------------------------------------
void cpPlugins::OrthoNormalBase::
SetITK( itk::LightObject* o )
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$