vtkEnvironmentAnnotationFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkEnvironmentAnnotationFilter.h
5 
6  Copyright (c) Kitware, Inc.
7  All rights reserved.
8  See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
31 #ifndef vtkEnvironmentAnnotationFilter_h
32 #define vtkEnvironmentAnnotationFilter_h
33 
34 #include "vtkPVVTKExtensionsMiscModule.h" //needed for exports
35 #include "vtkTableAlgorithm.h"
36 #include <string> //needed for iVars
37 
39 {
40 public:
43  void PrintSelf(ostream& os, vtkIndent indent) override;
44 
45  vtkSetMacro(FileName, std::string);
46  vtkGetMacro(FileName, std::string);
47 
48  vtkSetMacro(DisplayUserName, bool);
49  vtkGetMacro(DisplayUserName, bool);
50 
51  vtkSetMacro(DisplaySystemName, bool);
52  vtkGetMacro(DisplaySystemName, bool);
53 
54  vtkSetMacro(DisplayFileName, bool);
55  vtkGetMacro(DisplayFileName, bool);
56 
57  vtkSetMacro(DisplayFilePath, bool);
58  vtkGetMacro(DisplayFilePath, bool);
59 
60  vtkSetMacro(DisplayDate, bool);
61  vtkGetMacro(DisplayDate, bool);
62 
63 protected:
66 
67  int FillInputPortInformation(int port, vtkInformation* info) override;
68  int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
69  vtkInformationVector* outputVector) override;
70 
71  std::string AnnotationValue;
72  std::string FileName;
73 
74 private:
76  void operator=(const vtkEnvironmentAnnotationFilter&) = delete;
77 
78  void UpdateAnnotationValue();
79 
80  bool DisplayUserName;
81  bool DisplaySystemName;
82  bool DisplayFileName;
83  bool DisplayFilePath;
84  bool DisplayDate;
85 };
86 
87 #endif
filter used to generate text annotation for the current project.
static vtkTableAlgorithm * New()
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
virtual int FillInputPortInformation(int port, vtkInformation *info)
#define VTKPVVTKEXTENSIONSMISC_EXPORT
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
void operator=(const vtkObjectBase &)