ITK  4.3.0
Insight Segmentation and Registration Toolkit
itkFEMObjectSpatialObject.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright Insight Software Consortium
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0.txt
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  *=========================================================================*/
18 
19 #ifndef __itkFEMObjectSpatialObject_h
20 #define __itkFEMObjectSpatialObject_h
21 
22 #include "itkFEMObject.h"
23 #include "itkExceptionObject.h"
24 #include "itkSpatialObject.h"
25 
26 namespace itk
27 {
28 
41 template < unsigned int TDimension = 3>
42 class ITK_EXPORT FEMObjectSpatialObject : public SpatialObject< TDimension >
43 {
44 public:
45 
50 
53 
55  itkNewMacro( Self );
56 
58  itkTypeMacro( FEMObjectSpatialObject, SpatialObject );
59 
61  void SetFEMObject( FEMObjectType * femobject );
62 
64  FEMObjectType * GetFEMObject( void )
65  {
66  return m_FEMObject.GetPointer();
67  }
68  const FEMObjectType * GetFEMObject( void ) const
69  {
70  return m_FEMObject.GetPointer();
71  }
73 
74 
76  ModifiedTimeType GetMTime( void ) const;
77 
78 protected:
79  FEMObjectSpatialObject(const Self&); //purposely not implemented
80  void operator=(const Self&); //purposely not implemented
81 
83 
85  virtual ~FEMObjectSpatialObject();
86 
87  void PrintSelf( std::ostream& os, Indent indent ) const;
88 
89 };
90 
91 } // end of namespace itk
92 
93 #ifndef ITK_MANUAL_INSTANTIATION
94 #include "itkFEMObjectSpatialObject.hxx"
95 #endif
96 
97 #endif //__itkFEMObjectSpatialObject_h
98