Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  
igtlCreateObjectFunction.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: The OpenIGTLink Library
4  Language: C++
5  Web page: http://openigtlink.org/
6 
7  Copyright (c) Insight Software Consortium. All rights reserved.
8 
9  This software is distributed WITHOUT ANY WARRANTY; without even
10  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11  PURPOSE. See the above copyright notices for more information.
12 
13 =========================================================================*/
14 /*=========================================================================
15 
16  Program: Insight Segmentation & Registration Toolkit
17  Module: $RCSfile: itkCreateObjectFunction.h,v $
18  Language: C++
19  Date: $Date: 2008-12-22 19:05:42 -0500 (Mon, 22 Dec 2008) $
20  Version: $Revision: 3460 $
21 
22  Copyright (c) Insight Software Consortium. All rights reserved.
23  See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
24 
25  This software is distributed WITHOUT ANY WARRANTY; without even
26  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
27  PURPOSE. See the above copyright notices for more information.
28 
29 =========================================================================*/
30 #ifndef __igtlCreateObjectFunction_h
31 #define __igtlCreateObjectFunction_h
32 
33 #include "igtlObject.h"
34 
35 namespace igtl
36 {
37 
44 {
45 public:
48  typedef Object Superclass;
51 
55 
56 protected:
59 
60 private:
61  CreateObjectFunctionBase(const Self&); //purposely not implemented
62  void operator=(const Self&); //purposely not implemented
63 };
64 
65 
72 template <class T>
74 {
75 public:
79 
82  LightObject::Pointer CreateObject() { return T::New().GetPointer(); }
84 
85 protected:
88 
89 private:
90  CreateObjectFunction(const Self&); //purposely not implemented
91  void operator=(const Self&); //purposely not implemented
92 };
93 
94 } // end namespace igtl
95 
96 #endif
CreateObjectFunction is used to create callback functions that create IGTL Objects for use with the i...
LightObject::Pointer CreateObject()
The "igtl" namespace contains all OpenIGTLink classes. There are several nested namespaces within the...
SmartPointer< const Self > ConstPointer
ObjectType * GetPointer() const
Define API for object creation callback functions.
Base class for most igtl classes.
Definition: igtlObject.h:60
virtual SmartPointer< LightObject > CreateObject()=0

Generated at Tue Aug 4 2015 16:20:52 for OpenIGTLink by doxygen 1.8.9.1 written by Dimitri van Heesch, © 1997-2012