]> Creatis software - cpPlugins.git/blob - lib/cpPlugins/Interface/DataObject.cxx
9c15346370e3d4b970f3672208fa802d5133c7e5
[cpPlugins.git] / lib / cpPlugins / Interface / DataObject.cxx
1 #include <cpPlugins/Interface/DataObject.h>
2
3 // -------------------------------------------------------------------------
4 cpPlugins::Interface::DataObject::
5 DataObject( )
6   : Superclass( ),
7     m_Source( NULL )
8 {
9 }
10
11 // -------------------------------------------------------------------------
12 cpPlugins::Interface::DataObject::
13 ~DataObject( )
14 {
15 }
16
17 // -------------------------------------------------------------------------
18 std::string cpPlugins::Interface::DataObject::
19 GetClassName( ) const
20 {
21   return( "cpPlugins::Interface::DataObject" );
22 }
23
24 // -------------------------------------------------------------------------
25 itk::DataObject* cpPlugins::Interface::DataObject::
26 GetDataObject( ) const
27 {
28   return( this->m_DataObject );
29 }
30
31 // -------------------------------------------------------------------------
32 void cpPlugins::Interface::DataObject::
33 SetDataObject( itk::DataObject* src )
34 {
35   this->m_DataObject = src;
36 }
37
38 // -------------------------------------------------------------------------
39 cpPlugins::Interface::ProcessObject* cpPlugins::Interface::DataObject::
40 GetSource( ) const
41 {
42   return( this->m_Source );
43 }
44
45 // -------------------------------------------------------------------------
46 void cpPlugins::Interface::DataObject::
47 SetSource( cpPlugins::Interface::ProcessObject* src )
48 {
49   this->m_Source = src;
50 }
51
52 // eof - $RCSfile$