KWStyle - itkDataObjectDecorator.txx
 
Matrix View
Description

1 /*=========================================================================
2
3   Program:   Insight Segmentation & Registration Toolkit
4   Module:    $RCSfile: itkDataObjectDecorator.txx.html,v $
5   Language:  C++
6   Date:      $Date: 2006/01/17 19:15:34 $
7   Version:   $Revision: 1.4 $
8
9   Copyright (c) Insight Software Consortium. All rights reserved.
10   See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
11
12   Portions of this code are covered under the VTK copyright.
13   See VTKCopyright.txt or http://www.kitware.com/VTKCopyright.htm for details.
14
15      This software is distributed WITHOUT ANY WARRANTY; without even 
16      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
17 IND *****PURPOSE.  See the above copyright notices for more information.
18
19 =========================================================================*/
20 DEF #ifndef _itkDataObjectDecorator_txx
21 DEF #define _itkDataObjectDecorator_txx
22
23 #include "itkDataObjectDecorator.h"
24
25 namespace itk
26 {
27
28 /**
29  *
30  */
31 template<class T>
32 DataObjectDecorator<T>
33 ::DataObjectDecorator() : m_Component()
34 {
35 }
36
37
38 /**
39  *
40  */
41 template<class T>
42 DataObjectDecorator<T>
43 ::~DataObjectDecorator()
44 {
45 }
46
47
48 /**
49  *
50  */
51 template<class T>
52 void
53 DataObjectDecorator<T>
54 ::Set(T* val)
55 {
56   if (m_Component != val)
57     {
58     m_Component = val;
59     this->Modified();
60     }
61 }
62
63
64 /**
65  *
66  */
67 template<class T>
68 void 
69 DataObjectDecorator<T>
70 ::PrintSelf(std::ostream& os, Indent indent) const
71 {
72   Superclass::PrintSelf(os,indent);
73
74   os << indent << "Component: " << m_Component << std::endl;
75 }
76
77 // end namespace itk
78
79 #endif
80

Generated by KWStyle 1.0b on Tuesday January,17 at 02:14:05PM
© Kitware Inc.