this->F( dynamic_cast< itk::Image< itk::C##Pixel< P >, D >* >( I ) )
#define cpPlugins_Image_Demangle_VectorPixel_Dim( F, I, V, P, D ) \
- if( dynamic_cast< itk::Image< V< P, D >, D >* >( I ) != NULL ) \
- this->F( dynamic_cast< itk::Image< V< P, D >, D >* >( I ) )
+ if( dynamic_cast< itk::Image< itk::V< P, D >, D >* >( I ) != NULL ) \
+ this->F( dynamic_cast< itk::Image< itk::V< P, D >, D >* >( I ) )
#define cpPlugins_Image_Demangle_Pixel_AllInts( F, I, D ) \
cpPlugins_Image_Demangle_Pixel_Dim ( F, I, char, D ); \
cpPlugins_Image_Demangle_Pixel_Dim ( F, I, float, D ); \
else cpPlugins_Image_Demangle_Pixel_Dim( F, I, double, D )
-#define cpPlugins_Image_Demangle_Pixel_AllScalars( F, I, D ) \
- cpPlugins_Image_Demangle_Pixel_AllInts ( F, I, D ); \
- else cpPlugins_Image_Demangle_Pixel_AllUInts( F, I, D ); \
- else cpPlugins_Image_Demangle_Pixel_AllInts ( F, I, D )
+#define cpPlugins_Image_Demangle_Pixel_AllScalars( F, I, D ) \
+ cpPlugins_Image_Demangle_Pixel_AllInts ( F, I, D ); \
+ else cpPlugins_Image_Demangle_Pixel_AllUInts ( F, I, D ); \
+ else cpPlugins_Image_Demangle_Pixel_AllFloats( F, I, D )
#define cpPlugins_Image_Demangle_ColorPixel_AllInts( F, I, C, D ) \
cpPlugins_Image_Demangle_ColorPixel_Dim ( F, I, C, char, D ); \
else cpPlugins_Image_Demangle_ColorPixel_Dim( F, I, C, double, D )
#define cpPlugins_Image_Demangle_ColorPixel_AllScalars( F, I, C, D ) \
- cpPlugins_Image_Demangle_ColorPixel_AllInts ( F, I, C, D ); \
- else cpPlugins_Image_Demangle_ColorPixel_AllUInts( F, I, C, D ); \
- else cpPlugins_Image_Demangle_ColorPixel_AllInts ( F, I, C, D )
+ cpPlugins_Image_Demangle_ColorPixel_AllInts ( F, I, C, D ); \
+ else cpPlugins_Image_Demangle_ColorPixel_AllUInts ( F, I, C, D ); \
+ else cpPlugins_Image_Demangle_ColorPixel_AllFloats( F, I, C, D )
+
+#define cpPlugins_Image_Demangle_VectorPixel_AllFloats( F, I, V, D ) \
+ cpPlugins_Image_Demangle_VectorPixel_Dim ( F, I, V, float, D ); \
+ else cpPlugins_Image_Demangle_VectorPixel_Dim( F, I, V, double, D )
/* TODO
- #define cpPlugins_Image_Demangle_Pixel_AllColor( r, FUNC, INPUT, D ) \
+ #define cpPlugins_Image_Demangle_Pixel_AllVector( r, FUNC, INPUT, D ) \
r = cpPlugins_Image_Demangle_Pixel_Dim( FUNC, INPUT, itk::RGBPixel< char >, D ); \
if( r != "" ) r = cpPlugins_Image_Demangle_Pixel_Dim( FUNC, INPUT, itk::RGBPixel< short >, D ); \
if( r != "" ) r = cpPlugins_Image_Demangle_Pixel_Dim( FUNC, INPUT, itk::RGBPixel< int >, D ); \
} // fi
}
+// -------------------------------------------------------------------------
+void cpPlugins::Workspace::
+SetPrintExecution( bool b )
+{
+ auto vIt = this->m_Graph->BeginVertices( );
+ for( ; vIt != this->m_Graph->EndVertices( ); ++vIt )
+ {
+ auto f = dynamic_cast< ProcessObject* >( vIt->second.GetPointer( ) );
+ if( f != NULL )
+ f->SetPrintExecution( b );
+
+ } // rof
+}
+
+// -------------------------------------------------------------------------
+void cpPlugins::Workspace::
+PrintExecutionOn( )
+{
+ this->SetPrintExecution( true );
+}
+
+// -------------------------------------------------------------------------
+void cpPlugins::Workspace::
+PrintExecutionOff( )
+{
+ this->SetPrintExecution( false );
+}
+
// -------------------------------------------------------------------------
vtkRenderWindowInteractor* cpPlugins::Workspace::
GetSingleInteractor( )