#include <cpPlugins/Interface/SimpleMPRWidget.h>
#endif // cpPlugins_Interface_QT4
+// -------------------------------------------------------------------------
+void cpPlugins::Interface::ProcessObject::
+SetITK( itk::LightObject* o )
+{
+ // Polymorphism: do nothing -> this is a filter!!!
+}
+
+// -------------------------------------------------------------------------
+void cpPlugins::Interface::ProcessObject::
+SetVTK( vtkObjectBase* o )
+{
+ // Polymorphism: do nothing -> this is a filter!!!
+}
+
// -------------------------------------------------------------------------
std::set< std::string > cpPlugins::Interface::ProcessObject::
GetInputsNames( ) const
bool need_to_update = false;
for( ; i != this->m_Inputs.end( ) && r == ""; ++i )
{
- if( i->second.IsValid( ) )
+ bool iv = i->second.IsValid( );
+ bool ir = i->second.IsRequired( );
+ if( iv || !ir )
{
Self* src = dynamic_cast< Self* >( i->second->GetSource( ) );
if( src != NULL )
r = src->Update( );
} // fi
-
- } // fi
+ }
+ else
+ r =
+ "ProcessObject: Required input \"" +
+ i->first + "@" + this->GetClassName( ) +
+ "\" is not valid (=NULL).";
} // rof