ITK
4.1.0
Insight Segmentation and Registration Toolkit
|
00001 /*========================================================================= 00002 * 00003 * Copyright Insight Software Consortium 00004 * 00005 * Licensed under the Apache License, Version 2.0 (the "License"); 00006 * you may not use this file except in compliance with the License. 00007 * You may obtain a copy of the License at 00008 * 00009 * http://www.apache.org/licenses/LICENSE-2.0.txt 00010 * 00011 * Unless required by applicable law or agreed to in writing, software 00012 * distributed under the License is distributed on an "AS IS" BASIS, 00013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00014 * See the License for the specific language governing permissions and 00015 * limitations under the License. 00016 * 00017 *=========================================================================*/ 00018 00019 #ifndef __itkFEMObjectSpatialObject_h 00020 #define __itkFEMObjectSpatialObject_h 00021 00022 #include "itkFEMObject.h" 00023 #include "itkExceptionObject.h" 00024 #include "itkSpatialObject.h" 00025 00026 namespace itk 00027 { 00028 00041 template < unsigned int TDimension = 3> 00042 class ITK_EXPORT FEMObjectSpatialObject : public SpatialObject< TDimension > 00043 { 00044 00045 public: 00046 00047 typedef FEMObjectSpatialObject< TDimension > Self; 00048 typedef SpatialObject< TDimension > Superclass; 00049 typedef SmartPointer< Self > Pointer; 00050 typedef SmartPointer< const Self > ConstPointer; 00051 00052 typedef itk::fem::FEMObject< TDimension > FEMObjectType; 00053 typedef typename FEMObjectType::Pointer FEMObjectPointer; 00054 00056 itkNewMacro( Self ); 00057 00059 itkTypeMacro( FEMObjectSpatialObject, SpatialObject ); 00060 00062 void SetFEMObject( FEMObjectType * femobject ); 00063 00065 FEMObjectType * GetFEMObject( void ) 00066 { 00067 return m_FEMObject.GetPointer(); 00068 } 00069 const FEMObjectType * GetFEMObject( void ) const 00070 { 00071 return m_FEMObject.GetPointer(); 00072 } 00074 00075 00077 unsigned long GetMTime( void ) const; 00078 00079 protected: 00080 FEMObjectSpatialObject(const Self&); //purposely not implemented 00081 void operator=(const Self&); //purposely not implemented 00082 00083 FEMObjectPointer m_FEMObject; 00084 00085 FEMObjectSpatialObject(); 00086 virtual ~FEMObjectSpatialObject(); 00087 00088 void PrintSelf( std::ostream& os, Indent indent ) const; 00089 00090 }; 00091 00092 } // end of namespace itk 00093 00094 #ifndef ITK_MANUAL_INSTANTIATION 00095 #include "itkFEMObjectSpatialObject.hxx" 00096 #endif 00097 00098 #endif //__itkFEMObjectSpatialObject_h 00099