#include <iostream>
+#include <cpPlugins/Utility.h>
#include <cpPlugins/Interface/Plugins.h>
#include <cpPlugins/Interface/Workspace.h>
return( 1 );
} // yrt
+
+ // Read parameters
+ for( int i = 2; i < argc; ++i )
+ {
+ std::vector< std::string > tokens;
+ cpPlugins::Tokenize( tokens, argv[ i ], "@=" );
+ if( tokens.size( ) == 3 )
+ {
+ auto filter = workspace->GetFilter( tokens[ 1 ] );
+ if( filter != NULL )
+ {
+ auto params = filter->GetParameters( );
+ params->SetString( tokens[ 0 ], tokens[ 2 ], true );
+
+ } // fi
+
+ } // fi
+
+ } // rof
// Execute filter
workspace->PrintExecutionOn( );
- workspace->Execute( );
+ try
+ {
+ workspace->Execute( );
+ }
+ catch( std::exception& err1 )
+ {
+ std::cerr << std::endl << "********************************" << std::endl;
+ std::cerr << "Error caught: " << err1.what( ) << std::endl;
+ std::cerr << "********************************" << std::endl;
+ return( 1 );
+ }
+ catch( itk::ExceptionObject& err2 )
+ {
+ std::cerr << std::endl << "********************************" << std::endl;
+ std::cerr << "Error caught: " << err2 << std::endl;
+ std::cerr << "********************************" << std::endl;
+ return( 1 );
+ }
+ catch( ... )
+ {
+ std::cerr << std::endl << "********************************" << std::endl;
+ std::cerr << "Unknown error caught." << std::endl;
+ std::cerr << "********************************" << std::endl;
+ return( 1 );
+ } // yrt
return( 0 );
}
header #define ITK_MANUAL_INSTANTIATION
define arrays=Array2D;Array;#color_pixels#
-define fixed_dims=#process_dims#;8
+define fixed_dims=#visual_dims#;4;6;8
tinclude itk#arrays#:h|hxx
tinclude itkFixedArray:h|hxx
minstances #_export_# std::ostream& itk::operator<< < #real_types#, #process_dims# >( std::ostream& a, itk::#my_vectors#< #real_types#, #process_dims# > const& b )
-*minstances void #_export_# itk::VariableLengthVector< #real_types# >::SetSize< itk::VariableLengthVector< #real_types# >::AlwaysReallocate, itk::VariableLengthVector< #real_types# >::KeepOldValues >( unsigned int, itk::VariableLengthVector< #real_types# >::AlwaysReallocate, itk::VariableLengthVector< #real_types# >::KeepOldValues )
+minstances void #_export_# itk::VariableLengthVector< #real_types# >::SetSize< itk::VariableLengthVector< #real_types# >::AlwaysReallocate, itk::VariableLengthVector< #real_types# >::KeepOldValues >( unsigned int, itk::VariableLengthVector< #real_types# >::AlwaysReallocate, itk::VariableLengthVector< #real_types# >::KeepOldValues )
+
+minstances void #_export_# itk::VariableLengthVector< #real_types# >::SetSize<itk::VariableLengthVector< #real_types# >::ShrinkToFit, itk::VariableLengthVector< #real_types# >::KeepOldValues>(unsigned int, itk::VariableLengthVector< #real_types# >::ShrinkToFit, itk::VariableLengthVector< #real_types# >::KeepOldValues)
** eof - $RCSfile$
itk::ModifiedTimeType cpPlugins::BaseObjects::Object::
GetMTime( ) const
{
+ itk::ModifiedTimeType lt = this->Superclass::GetMTime( );
const itk::Object* i = this->GetITK< itk::Object >( );
vtkObject* v = const_cast< vtkObject* >( this->GetVTK< vtkObject >( ) );
+
+ itk::ModifiedTimeType rt;
if( i != NULL && v == NULL )
- return( i->GetMTime( ) );
+ rt = i->GetMTime( );
else if( i == NULL && v != NULL )
- return( v->GetMTime( ) );
+ rt = v->GetMTime( );
else if( i != NULL && v != NULL )
{
auto iTime = i->GetMTime( );
auto vTime = v->GetMTime( );
- return( itk::ModifiedTimeType( ( iTime < vTime )? vTime: iTime ) );
- }
- else
- return( this->Superclass::GetMTime( ) );
+ rt = ( iTime < vTime )? vTime: iTime;
+
+ } // fi
+ return( ( lt < rt )? rt: lt );
}
// -------------------------------------------------------------------------
auto t_start = cpPlugins_CHRONO;
this->_GenerateData( );
+ this->Modified( );
auto t_end = cpPlugins_CHRONO;
this->m_LastExecutionSpan = long( t_end - t_start );
this->m_LastExecutionTime = this->GetMTime( );
#include <cpPlugins/BaseObjects/Widget.h>
-// -------------------------------------------------------------------------
-itk::ModifiedTimeType cpPlugins::BaseObjects::Widget::
-GetMTime( ) const
-{
- // Let time only be managed by itk -> synch issues when data is
- // represented by vtk
- return( this->itk::Object::GetMTime( ) );
-}
-
// -------------------------------------------------------------------------
bool cpPlugins::BaseObjects::Widget::
IsInteractive( )
cpPlugins_Id_Macro( Widget, Object );
public:
- virtual itk::ModifiedTimeType GetMTime( ) const cpPlugins_OVERRIDE;
-
virtual bool IsInteractive( ) cpPlugins_OVERRIDE;
virtual void EnabledOn( );
tinclude cpExtensions/Algorithms/BezierCurveFunction:h|hxx
cinclude cpExtensions/DataStructures/Graph.hxx
+cinclude itkVectorContainer.hxx
instances cpExtensions::Algorithms::BezierCurveFunction< itk::Vector< #real_types#, #process_dims# > >
instances cpExtensions::DataStructures::PolyLineParametricPath< #process_dims# >