]> Creatis software - cpPlugins.git/commitdiff
Line width and point size added.
authorLeonardo Florez-Valencia <florez-l@javeriana.edu.co>
Mon, 30 May 2016 03:35:06 +0000 (22:35 -0500)
committerLeonardo Florez-Valencia <florez-l@javeriana.edu.co>
Mon, 30 May 2016 03:35:06 +0000 (22:35 -0500)
lib/cpPlugins/ActorPropertiesQtDialog.cxx

index eaed06a66ec736a44aea536a8bf09f9f208200dd..394c9081d885d3bd0d5c75b2544ce83639d908bf 100644 (file)
@@ -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( );
 }
 
 // -------------------------------------------------------------------------