ALBA
albaVTKLog.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: ALBA (Agile Library for Biomedical Applications)
4 Module: albaVTKLog
5 Authors: Marco Petrone
6
7 Copyright (c) BIC
8 All rights reserved. See Copyright.txt or
9
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 notice for more information.
14
15=========================================================================*/
16
17#ifndef __albaVTKLog_h
18#define __albaVTKLog_h
19
20#include "vtkOutputWindow.h"
21
22//----------------------------------------------------------------------------
23// forward refs
24//----------------------------------------------------------------------------
25
26//----------------------------------------------------------------------------
27class ALBA_EXPORT albaVTKLog : public vtkOutputWindow
28//----------------------------------------------------------------------------
29{
30public:
31
32 static albaVTKLog *New();
33 vtkTypeMacro(albaVTKLog, vtkOutputWindow);
34
36 void SetEnabled(int enabled){m_Enabled = enabled;this->Modified();};
37
39 int GetEnabled(){return m_Enabled;};
40
42 void EnabledOn(){this->SetEnabled(true);};
43
45 void EnabledOff(){this->SetEnabled(false);};
46
48 virtual void DisplayText(const char*);
49
50protected:
53
55
56private:
57 albaVTKLog(const albaVTKLog&); // Not implemented.
58 void operator=(const albaVTKLog&); // Not implemented.
59};
60#endif
int m_Enabled
Definition: albaVTKLog.h:54
void EnabledOn()
Enable log message displaying.
Definition: albaVTKLog.h:42
virtual void DisplayText(const char *)
Put the text into the log file.
static albaVTKLog * New()
vtkTypeMacro(albaVTKLog, vtkOutputWindow)
void EnabledOff()
Disable log message displaying.
Definition: albaVTKLog.h:45
int GetEnabled()
Get log message displaying.
Definition: albaVTKLog.h:39
void SetEnabled(int enabled)
Set log message displaying.
Definition: albaVTKLog.h:36