From 0276214a7bcbb028cb23fa510184a4d0e92c416a Mon Sep 17 00:00:00 2001 From: Leonardo Florez-Valencia Date: Sun, 29 May 2016 22:35:06 -0500 Subject: [PATCH] Line width and point size added. --- lib/cpPlugins/ActorPropertiesQtDialog.cxx | 30 +++++++++++++++++++++++ 1 file changed, 30 insertions(+) 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( ); } // ------------------------------------------------------------------------- -- 2.45.1