From: Leonardo Florez-Valencia Date: Mon, 30 May 2016 03:35:06 +0000 (-0500) Subject: Line width and point size added. X-Git-Tag: v0.1~151 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=0276214a7bcbb028cb23fa510184a4d0e92c416a;p=cpPlugins.git Line width and point size added. --- diff --git a/lib/cpPlugins/ActorPropertiesQtDialog.cxx b/lib/cpPlugins/ActorPropertiesQtDialog.cxx index eaed06a..394c908 100644 --- a/lib/cpPlugins/ActorPropertiesQtDialog.cxx +++ b/lib/cpPlugins/ActorPropertiesQtDialog.cxx @@ -547,12 +547,42 @@ _sldOpacity( int v ) void cpPlugins::ActorPropertiesQtDialog:: _boxPointSize( int v ) { + if( this->m_Actors.size( ) == 0 ) + return; + auto aIt = this->m_Actors.begin( ); + for( ; aIt != this->m_Actors.end( ); ++aIt ) + { + auto ma = dynamic_cast< vtkActor* >( aIt->GetPointer( ) ); + if( ma != NULL ) + { + ma->GetProperty( )->SetPointSize( v ); + ma->Modified( ); + + } // fi + + } // rof + this->_render( ); } // ------------------------------------------------------------------------- void cpPlugins::ActorPropertiesQtDialog:: _boxLineWidth( int v ) { + if( this->m_Actors.size( ) == 0 ) + return; + auto aIt = this->m_Actors.begin( ); + for( ; aIt != this->m_Actors.end( ); ++aIt ) + { + auto ma = dynamic_cast< vtkActor* >( aIt->GetPointer( ) ); + if( ma != NULL ) + { + ma->GetProperty( )->SetLineWidth( v ); + ma->Modified( ); + + } // fi + + } // rof + this->_render( ); } // -------------------------------------------------------------------------