]> Creatis software - FrontAlgorithms.git/blobdiff - lib/fpa/Base/RegionGrow.hxx
...
[FrontAlgorithms.git] / lib / fpa / Base / RegionGrow.hxx
index 6865916c412b5771fb7270b67a2a4e14b6ea1f92..c3cb9f3a355fccca44f8f8776702fea5d2ea7013 100644 (file)
@@ -9,7 +9,8 @@ typename fpa::Base::RegionGrow< _TSuperclass >::
 TGrowFunction* fpa::Base::RegionGrow< _TSuperclass >::
 GetGrowFunction( )
 {
-  return( dynamic_cast< TGrowFunction* >( this->GetVertexFunction( ) ) );
+  // TODO: return( dynamic_cast< TGrowFunction* >( this->GetVertexFunction( ) ) );
+  return( this->m_GrowFunction );
 }
 
 // -------------------------------------------------------------------------
@@ -18,9 +19,12 @@ const typename fpa::Base::RegionGrow< _TSuperclass >::
 TGrowFunction* fpa::Base::RegionGrow< _TSuperclass >::
 GetGrowFunction( ) const
 {
-  return(
-    dynamic_cast< const TGrowFunction* >( this->GetVertexFunction( ) )
-    );
+  /* TODO
+     return(
+     dynamic_cast< const TGrowFunction* >( this->GetVertexFunction( ) )
+     );
+  */
+  return( this->m_GrowFunction );
 }
 
 // -------------------------------------------------------------------------
@@ -61,7 +65,7 @@ SetGrowFunction( TGrowFunction* f )
     f->SetOutsideValue( old_f->GetOutsideValue( ) );
 
   } // fi
-  this->SetVertexFunction( f );
+  this->m_GrowFunction = f;
 }
 
 // -------------------------------------------------------------------------