Main Page
Namespace List
Class Hierarchy
Alphabetical List
Compound List
File List
Namespace Members
Compound Members
File Members
Source
igtlObject.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Open IGT Link Library
4
Module: $HeadURL: http://svn.na-mic.org/NAMICSandBox/trunk/OpenIGTLink/Source/igtlObject.h $
5
Language: C++
6
Date: $Date: 2008-12-22 19:05:42 -0500 (Mon, 22 Dec 2008) $
7
Version: $Revision: 3460 $
8
9
Copyright (c) Insight Software Consortium. All rights reserved.
10
11
This software is distributed WITHOUT ANY WARRANTY; without even
12
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
13
PURPOSE. See the above copyright notices for more information.
14
15
=========================================================================*/
16
/*=========================================================================
17
18
Program: Insight Segmentation & Registration Toolkit
19
Module: $RCSfile: itkObject.h,v $
20
Language: C++
21
Date: $Date: 2008-12-22 19:05:42 -0500 (Mon, 22 Dec 2008) $
22
Version: $Revision: 3460 $
23
24
Copyright (c) Insight Software Consortium. All rights reserved.
25
See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
26
27
Portions of this code are covered under the VTK copyright.
28
See VTKCopyright.txt or http://www.kitware.com/VTKCopyright.htm for details.
29
30
This software is distributed WITHOUT ANY WARRANTY; without even
31
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
32
PURPOSE. See the above copyright notices for more information.
33
34
=========================================================================*/
35
#ifndef __igtlObject_h
36
#define __igtlObject_h
37
38
#include "
igtlLightObject.h
"
39
//#include "igtlTimeStamp.h"
40
//#include "igtlEventObject.h"
41
//#include "igtlMetaDataDictionary.h"
42
43
#include "igtlConfigure.h"
44
45
namespace
igtl
46
{
47
//class SubjectImplementation;
48
//class Command;
49
62
class
IGTLCommon_EXPORT
Object
:
public
LightObject
63
{
64
public
:
66
typedef
Object
Self
;
67
typedef
LightObject
Superclass
;
68
typedef
SmartPointer<Self>
Pointer
;
69
typedef
SmartPointer<const Self>
ConstPointer
;
70
72
static
Pointer
New();
73
79
virtual
LightObject::Pointer
CreateAnother()
const
;
80
82
igtlTypeMacro
(
Object
,
LightObject
);
83
85
virtual
void
DebugOn()
const
;
86
88
virtual
void
DebugOff()
const
;
89
91
bool
GetDebug()
const
;
92
94
void
SetDebug(
bool
debugFlag)
const
;
95
97
// virtual unsigned long GetMTime() const;
98
101
// virtual void Modified() const;
102
104
virtual
void
Register()
const
;
105
107
virtual
void
UnRegister()
const
;
108
110
virtual
void
SetReferenceCount(
int
);
111
114
static
void
SetGlobalWarningDisplay(
bool
flag);
115
static
bool
GetGlobalWarningDisplay();
116
static
void
GlobalWarningDisplayOn()
117
{
Object::SetGlobalWarningDisplay
(
true
); }
118
static
void
GlobalWarningDisplayOff()
119
{
Object::SetGlobalWarningDisplay
(
false
); }
121
130
// unsigned long AddObserver(const EventObject & event, Command *);
131
// unsigned long AddObserver(const EventObject & event, Command *) const;
133
139
//Command* GetCommand(unsigned long tag);
140
142
//void InvokeEvent( const EventObject & );
143
146
//void InvokeEvent( const EventObject & ) const;
147
149
//void RemoveObserver(unsigned long tag);
150
152
//void RemoveAllObservers();
153
155
//bool HasObserver( const EventObject & event ) const;
156
161
//MetaDataDictionary & GetMetaDataDictionary(void);
162
166
//const MetaDataDictionary & GetMetaDataDictionary(void) const;
167
171
//void SetMetaDataDictionary(const MetaDataDictionary & rhs);
172
173
174
protected
:
175
Object
();
176
virtual
~
Object
();
177
182
virtual
void
PrintSelf(std::ostream& os)
const
;
183
184
//bool PrintObservers(std::ostream& os) const;
185
186
private
:
187
Object
(
const
Self&);
//purposely not implemented
188
void
operator=(
const
Self&);
//purposely not implemented
189
191
mutable
bool
m_Debug;
192
194
// mutable TimeStamp m_MTime;
195
197
static
bool
m_GlobalWarningDisplay;
198
201
//SubjectImplementation* m_SubjectImplementation;
202
210
//mutable MetaDataDictionary * m_MetaDataDictionary;
211
};
212
213
}
// end namespace igtl
214
215
#endif
216
217
Generated at Thu Mar 20 2014 16:32:06 for OpenIGTLink by
1.8.1.2 written by
Dimitri van Heesch
, © 1997-2000