vtkSMInputFileNameDomain.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkSMInputFileNameDomain.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 =========================================================================*/
28 #ifndef vtkSMInputFileNameDomain_h
29 #define vtkSMInputFileNameDomain_h
30 
31 #include "vtkRemotingServerManagerModule.h" //needed for exports
32 #include "vtkSMStringListDomain.h"
33 
35 {
36 public:
37  static vtkSMInputFileNameDomain* New();
39  void PrintSelf(ostream& os, vtkIndent indent) override;
40 
41  // Update self checking the "unchecked" values of all required
42  // properties. Overwritten by sub-classes.
43  void Update(vtkSMProperty*) override;
44 
45  vtkGetMacro(FileName, std::string);
46 
53  int SetDefaultValues(vtkSMProperty*, bool use_unchecked_values) override;
54 
55 protected:
57  ~vtkSMInputFileNameDomain() override;
58 
59 private:
61  void operator=(const vtkSMInputFileNameDomain&) = delete;
62 
63  std::string FileName;
64 };
65 
66 #endif
#define VTKREMOTINGSERVERMANAGER_EXPORT
void PrintSelf(ostream &os, vtkIndent indent) override
superclass for all SM properties
a string domain that can be set automatically with the source file name
void Update(vtkSMProperty *) override
Update self checking the "unchecked" values of all required properties.
static vtkSMStringListDomain * New()
int SetDefaultValues(vtkSMProperty *, bool use_unchecked_values) override
A vtkSMProperty is often defined with a default value in the XML itself.