]> Creatis software - cpPlugins.git/blobdiff - lib/cpPlugins/DataObjects/BoundingBox.cxx
CastImageFilter added.
[cpPlugins.git] / lib / cpPlugins / DataObjects / BoundingBox.cxx
index dfceb29f255081a30e7baac44e0be4e2c06848fa..6ecf3f224d83c9ad9b2f41a6676875a2e6f5874e 100644 (file)
@@ -82,38 +82,7 @@ Blend( Self* other )
     if( other->m_Points[ 1 ][ d ] > this->m_Points[ 1 ][ d ] )
       this->m_Points[ 1 ][ d ] = other->m_Points[ 1 ][ d ];
   this->Modified( );
-}
-
-// -------------------------------------------------------------------------
-template< class _TPoint >
-void cpPlugins::DataObjects::BoundingBox::
-SetMinimum( const _TPoint& p )
-{
-  this->_SetPoint( 0, p );
-}
-
-// -------------------------------------------------------------------------
-template< class _TPoint >
-void cpPlugins::DataObjects::BoundingBox::
-SetMaximum( const _TPoint& p )
-{
-  this->_SetPoint( 1, p );
-}
-
-// -------------------------------------------------------------------------
-template< class _TPoint >
-_TPoint cpPlugins::DataObjects::BoundingBox::
-GetMinimum( ) const
-{
-  return( this->_GetPoint< _TPoint >( 0 ) );
-}
-
-// -------------------------------------------------------------------------
-template< class _TPoint >
-_TPoint cpPlugins::DataObjects::BoundingBox::
-GetMaximum( ) const
-{
-  return( this->_GetPoint< _TPoint >( 1 ) );
+  this->_UpdateVTK( );
 }
 
 // -------------------------------------------------------------------------
@@ -155,32 +124,6 @@ _UpdateVTK( )
   this->m_VTK = this->m_Outline->GetOutput( );
 }
 
-// -------------------------------------------------------------------------
-template< class _TPoint >
-void cpPlugins::DataObjects::BoundingBox::
-_SetPoint( unsigned int m, const _TPoint& p )
-{
-  this->m_Points[ m ].clear( );
-  for( unsigned int d = 0; d < _TPoint::PointDimension; ++d )
-    this->m_Points[ m ].push_back( double( p[ d ] ) );
-  this->_UpdateVTK( );
-  this->Modified( );
-}
-
-// -------------------------------------------------------------------------
-template< class _TPoint >
-_TPoint cpPlugins::DataObjects::BoundingBox::
-_GetPoint( unsigned int m ) const
-{
-  unsigned int dim = this->m_Points[ m ].size( );
-  dim = ( _TPoint::PointDimension < dim )? _TPoint::PointDimension: dim;
-  _TPoint p;
-  p.Fill( 0 );
-  for( unsigned int d = 0; d < dim; ++d )
-    p[ d ] = this->m_Points[ m ][ d ];
-  return( p );
-}
-
 // -------------------------------------------------------------------------
 template< unsigned int _NDim >
 bool cpPlugins::DataObjects::BoundingBox::