X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FcpExtensions%2FVisualization%2FMeshActor.cxx;fp=lib%2FcpExtensions%2FVisualization%2FMeshActor.cxx;h=0000000000000000000000000000000000000000;hb=2e142df11d6f312a2a2b5097b8da73571ed523e8;hp=ca6f1f9dcfa65724818919a3a95119af879272ff;hpb=61b3659afe961ed248f30e26f9ca8f28fcfafddc;p=cpPlugins.git diff --git a/lib/cpExtensions/Visualization/MeshActor.cxx b/lib/cpExtensions/Visualization/MeshActor.cxx deleted file mode 100644 index ca6f1f9..0000000 --- a/lib/cpExtensions/Visualization/MeshActor.cxx +++ /dev/null @@ -1,56 +0,0 @@ -#include - -#include -#include -#include -#include - -// ------------------------------------------------------------------------- -cpExtensions::Visualization::MeshActor:: -MeshActor( ) -{ -} - -// ------------------------------------------------------------------------- -cpExtensions::Visualization::MeshActor:: -~MeshActor( ) -{ -} - -// ------------------------------------------------------------------------- -void cpExtensions::Visualization::MeshActor:: -SetMesh( vtkPolyData* mesh ) -{ - static unsigned long MAX = std::numeric_limits< unsigned short >::max( ); - - this->m_Mesh = mesh; - this->m_Mapper = vtkSmartPointer< vtkPolyDataMapper >::New( ); - unsigned long c = mesh->GetNumberOfPolys( ) + mesh->GetNumberOfStrips( ); - if( c >= MAX ) - { - vtkSmartPointer< vtkQuadricLODActor > q = - vtkSmartPointer< vtkQuadricLODActor >::New( ); - q->DeferLODConstructionOff( ); - this->m_Actor = q.GetPointer( ); - } - else - this->m_Actor = vtkSmartPointer< vtkActor >::New( ); - this->m_Mapper->SetInputData( this->m_Mesh ); - this->m_Actor->SetMapper( this->m_Mapper ); -} - -// ------------------------------------------------------------------------- -vtkActor* cpExtensions::Visualization::MeshActor:: -GetActor( ) -{ - return( this->m_Actor.GetPointer( ) ); -} - -// ------------------------------------------------------------------------- -const vtkActor* cpExtensions::Visualization::MeshActor:: -GetActor( ) const -{ - return( this->m_Actor.GetPointer( ) ); -} - -// eof - $RCSfile$