ITK  4.9.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 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  FEMObjectSpatialObject(const Self&) ITK_DELETE_FUNCTION;
80  void operator=(const Self&) ITK_DELETE_FUNCTION;
81 
83 
85  virtual ~FEMObjectSpatialObject();
86 
87  void PrintSelf( std::ostream& os, Indent indent ) const ITK_OVERRIDE;
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
Implements N-dimensional Finite element (FE) models including elements, materials, and loads.
Definition: itkFEMObject.h:75
void PrintSelf(std::ostream &os, Indent indent) const override
unsigned long ModifiedTimeType
Definition: itkIntTypes.h:164
FEMObjectType::Pointer FEMObjectPointer
ObjectType * GetPointer() const
ModifiedTimeType GetMTime(void) const override
const FEMObjectType * GetFEMObject(void) const
Implementation of the composite pattern.
SmartPointer< const Self > ConstPointer
FEMObjectSpatialObject< TDimension > Self
void SetFEMObject(FEMObjectType *femobject)
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.