ITK  4.13.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_TEMPLATE_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 
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 ITK_OVERRIDE;
77 
78 protected:
79  ITK_DISALLOW_COPY_AND_ASSIGN(FEMObjectSpatialObject);
80 
81  FEMObjectPointer m_FEMObject;
82 
83  FEMObjectSpatialObject();
84  virtual ~FEMObjectSpatialObject() ITK_OVERRIDE;
85 
86  void PrintSelf( std::ostream& os, Indent indent ) const ITK_OVERRIDE;
87 
88 };
89 
90 } // end of namespace itk
91 
92 #ifndef ITK_MANUAL_INSTANTIATION
93 #include "itkFEMObjectSpatialObject.hxx"
94 #endif
95 
96 #endif //itkFEMObjectSpatialObject_h
Implements N-dimensional Finite element (FE) models including elements, materials, and loads.
Definition: itkFEMObject.h:75
unsigned long ModifiedTimeType
Definition: itkIntTypes.h:164
FEMObjectType::Pointer FEMObjectPointer
const FEMObjectType * GetFEMObject(void) const
Implementation of the composite pattern.
SmartPointer< const Self > ConstPointer
FEMObjectSpatialObject< TDimension > Self
itk::fem::FEMObject< TDimension > FEMObjectType
Control indentation during Print() invocation.
Definition: itkIndent.h:49
SpatialObject< TDimension > Superclass
Implementation spatial object that can hold a FEMObject.
Base class for all data objects in ITK.