#ifndef __CPPLUGINS__INTERFACE__DATAOBJECT__H__ #define __CPPLUGINS__INTERFACE__DATAOBJECT__H__ #include #include #include #include #include namespace cpPlugins { namespace Interface { /** */ class cpPlugins_Interface_EXPORT DataObject : public Object { public: typedef DataObject Self; typedef Object Superclass; typedef itk::SmartPointer< Self > Pointer; typedef itk::SmartPointer< const Self > ConstPointer; public: itkTypeMacro( DataObject, Object ); cpPlugins_Id_Macro( cpPlugins::Interface::DataObject, "BasicObject" ); public: Object* GetSource( ); const Object* GetSource( ) const; void SetSource( Object* src ); void DisconnectPipeline( ); template< class T > inline T* GetITK( ); template< class T > inline const T* GetITK( ) const; template< class T > inline T* GetVTK( ); template< class T > inline const T* GetVTK( ) const; protected: DataObject( ); virtual ~DataObject( ); private: // Purposely not implemented DataObject( const Self& ); Self& operator=( const Self& ); protected: itk::Object::Pointer m_ITKObject; vtkSmartPointer< vtkObject > m_VTKObject; Object::Pointer m_Source; }; } // ecapseman } // ecapseman #include #endif // __CPPLUGINS__INTERFACE__DATAOBJECT__H__ // eof - $RCSfile$