ITK  4.2.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 
45 public:
46 
51 
54 
56  itkNewMacro( Self );
57 
59  itkTypeMacro( FEMObjectSpatialObject, SpatialObject );
60 
62  void SetFEMObject( FEMObjectType * femobject );
63 
65  FEMObjectType * GetFEMObject( void )
66  {
67  return m_FEMObject.GetPointer();
68  }
69  const FEMObjectType * GetFEMObject( void ) const
70  {
71  return m_FEMObject.GetPointer();
72  }
74 
75 
77  unsigned long GetMTime( void ) const;
78 
79 protected:
80  FEMObjectSpatialObject(const Self&); //purposely not implemented
81  void operator=(const Self&); //purposely not implemented
82 
84 
86  virtual ~FEMObjectSpatialObject();
87 
88  void PrintSelf( std::ostream& os, Indent indent ) const;
89 
90 };
91 
92 } // end of namespace itk
93 
94 #ifndef ITK_MANUAL_INSTANTIATION
95 #include "itkFEMObjectSpatialObject.hxx"
96 #endif
97 
98 #endif //__itkFEMObjectSpatialObject_h
99