ParaView
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 "vtkPVServerManagerCoreModule.h" //needed for exports
32 #include "vtkSMStringListDomain.h"
33 
34 class VTKPVSERVERMANAGERCORE_EXPORT vtkSMInputFileNameDomain : public vtkSMStringListDomain
35 {
36 public:
37  static vtkSMInputFileNameDomain* New();
39  void PrintSelf(ostream& os, vtkIndent indent);
40 
41  // Update self checking the "unchecked" values of all required
42  // properties. Overwritten by sub-classes.
43  virtual void Update(vtkSMProperty*);
44 
45  vtkGetMacro(FileName, std::string);
46 
53  virtual int SetDefaultValues(vtkSMProperty*, bool use_unchecked_values);
54 
55 protected:
58 
59 private:
60  vtkSMInputFileNameDomain(const vtkSMInputFileNameDomain&) VTK_DELETE_FUNCTION;
61  void operator=(const vtkSMInputFileNameDomain&) VTK_DELETE_FUNCTION;
62 
63  std::string FileName;
64 };
65 
66 #endif
superclass for all SM properties
a string domain that can be set automatically with the source file name
void PrintSelf(ostream &os, vtkIndent indent)
virtual int SetDefaultValues(vtkSMProperty *, bool use_unchecked_values)
A vtkSMProperty is often defined with a default value in the XML itself.
virtual void Update(vtkSMProperty *)
Update self checking the "unchecked" values of all required properties.
static vtkSMStringListDomain * New()