Orfeo Toolbox
3.16
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
OTB
Utilities
ITK
Code
Common
itkLightProcessObject.cxx
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Insight Segmentation & Registration Toolkit
4
Module: $RCSfile: itkLightProcessObject.cxx,v $
5
Language: C++
6
Date: $Date: 2009-11-24 02:27:27 $
7
Version: $Revision: 1.9 $
8
9
Copyright (c) Insight Software Consortium. All rights reserved.
10
See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
11
12
This software is distributed WITHOUT ANY WARRANTY; without even
13
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14
PURPOSE. See the above copyright notices for more information.
15
16
=========================================================================*/
17
#include "
itkLightProcessObject.h
"
18
#include "
itkCommand.h
"
19
#include "
itkEventObject.h
"
20
21
namespace
itk
22
{
23
27
LightProcessObject
28
::LightProcessObject
()
29
{
30
m_AbortGenerateData =
false
;
31
m_Progress = 0.0f;
32
}
33
34
39
LightProcessObject
40
::~LightProcessObject
()
41
{}
42
43
49
void
50
LightProcessObject
51
::UpdateProgress
(
float
amount)
52
{
53
m_Progress = amount;
54
this->InvokeEvent(
ProgressEvent
() );
55
}
56
57
61
void
62
LightProcessObject
63
::PrintSelf
(std::ostream& os,
Indent
indent)
const
64
{
65
Superclass::PrintSelf(os,indent);
66
67
os << indent <<
"AbortGenerateData: "
<< (m_AbortGenerateData ?
"On\n"
:
"Off\n"
);
68
os << indent <<
"Progress: "
<< m_Progress <<
"\n"
;
69
}
70
71
75
void
76
LightProcessObject
77
::UpdateOutputData
()
78
{
79
80
this->InvokeEvent(
StartEvent
() );
81
86
m_AbortGenerateData = 0;
87
m_Progress = 0.0f;
88
89
this->GenerateData();
90
95
if
( !m_AbortGenerateData )
96
{
97
this->UpdateProgress(1.0f);
98
}
99
100
// Notify end event observers
101
this->InvokeEvent(
EndEvent
() );
102
}
103
104
}
// end namespace itk
Generated at Sat Feb 2 2013 23:51:03 for
Orfeo Toolbox
with
doxygen 1.8.1.1