ITK  4.1.0
Insight Segmentation and Registration Toolkit
itkFEMLightObject.h
Go to the documentation of this file.
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 __itkFEMLightObject_h
00020 #define __itkFEMLightObject_h
00021 
00022 #include "itkMacro.h"
00023 #include "itkSmartPointer.h"
00024 #include "itkObjectFactory.h"
00025 #include "itkLightObject.h"
00026 
00027 #include "itkFEMException.h"
00028 #include <iostream>
00029 
00030 namespace itk
00031 {
00032 namespace fem
00033 {
00045 class FEMLightObject : public itk::LightObject
00046 {
00047 public:
00048 
00050   typedef FEMLightObject           Self;
00051   typedef itk::LightObject         Superclass;
00052   typedef Self                     Baseclass;
00053   typedef SmartPointer<Self>       Pointer;
00054   typedef SmartPointer<const Self> ConstPointer;
00055 
00057   itkTypeMacro(FEMLightObject, itk::LightObject);
00058 
00062   void SetGlobalNumber(int);
00063 
00067   int GetGlobalNumber() const;
00068 
00069 protected:
00070 
00074   FEMLightObject() : m_GlobalNumber(-1)
00075   {
00076   }
00077 
00081   virtual ~FEMLightObject()
00082   {
00083   }
00084 
00085   virtual void PrintSelf(std::ostream& os, Indent indent) const;
00086 
00090   FEMLightObject(const FEMLightObject & o) : itk::LightObject()
00091   {
00092     m_GlobalNumber = o.m_GlobalNumber;
00093   }
00094 
00102   int m_GlobalNumber;
00103 };
00105 
00106 }
00107 }  // end namespace itk::fem
00108 
00109 #endif // #ifndef __itkFEMLightObject_h
00110