VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkFileOutputWindow.h 00005 00006 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen 00007 All rights reserved. 00008 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00009 00010 This software is distributed WITHOUT ANY WARRANTY; without even 00011 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00012 PURPOSE. See the above copyright notice for more information. 00013 00014 =========================================================================*/ 00026 #ifndef __vtkFileOutputWindow_h 00027 #define __vtkFileOutputWindow_h 00028 00029 #include "vtkCommonCoreModule.h" // For export macro 00030 #include "vtkOutputWindow.h" 00031 00032 00033 class VTKCOMMONCORE_EXPORT vtkFileOutputWindow : public vtkOutputWindow 00034 { 00035 public: 00036 vtkTypeMacro(vtkFileOutputWindow, vtkOutputWindow); 00037 00038 static vtkFileOutputWindow* New(); 00039 00040 virtual void PrintSelf(ostream& os, vtkIndent indent); 00041 00044 virtual void DisplayText(const char*); 00045 00047 00048 vtkSetStringMacro(FileName); 00049 vtkGetStringMacro(FileName); 00051 00053 00054 vtkSetMacro(Flush, int); 00055 vtkGetMacro(Flush, int); 00056 vtkBooleanMacro(Flush, int); 00058 00060 00063 vtkSetMacro(Append, int); 00064 vtkGetMacro(Append, int); 00065 vtkBooleanMacro(Append, int); 00067 00068 protected: 00069 vtkFileOutputWindow(); 00070 virtual ~vtkFileOutputWindow(); 00071 void Initialize(); 00072 00073 char* FileName; 00074 ofstream* OStream; 00075 int Flush; 00076 int Append; 00077 00078 private: 00079 vtkFileOutputWindow(const vtkFileOutputWindow&); // Not implemented. 00080 void operator=(const vtkFileOutputWindow&); // Not implemented. 00081 }; 00082 00083 00084 #endif