vtkSMRegistrationNamesDomain.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkSMRegistrationNamesDomain.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 =========================================================================*/
53 #ifndef vtkSMRegistrationNamesDomain_h
54 #define vtkSMRegistrationNamesDomain_h
55 
56 #include "vtkRemotingServerManagerModule.h" //needed for exports
57 #include "vtkSMDomain.h"
58 #include <memory> // for std::unique_ptr
59 
61 {
62 public:
65  void PrintSelf(ostream& os, vtkIndent indent) override;
66 
67  int SetDefaultValues(vtkSMProperty*, bool use_unchecked_values) override;
68 
69 protected:
71  ~vtkSMRegistrationNamesDomain() override;
72 
73  int ReadXMLAttributes(vtkSMProperty* prop, vtkPVXMLElement* element) override;
74 
75 private:
77  void operator=(const vtkSMRegistrationNamesDomain&) = delete;
78 
79  class vtkInternals;
80  std::unique_ptr<vtkInternals> Internals;
81 };
82 
83 #endif
domain to set default value for a property using proxy registration names
#define VTKREMOTINGSERVERMANAGER_EXPORT
superclass for all SM properties
virtual int SetDefaultValues(vtkSMProperty *, bool vtkNotUsed(use_unchecked_values))
A vtkSMProperty is often defined with a default value in the XML itself.
Definition: vtkSMDomain.h:103
represents the possible values a property can have
Definition: vtkSMDomain.h:49
void PrintSelf(ostream &os, vtkIndent indent) override
virtual int ReadXMLAttributes(vtkSMProperty *prop, vtkPVXMLElement *elem)
Set the appropriate ivars from the xml element.
vtkSMDomainInternals * Internals
Definition: vtkSMDomain.h:285
static vtkSMDomain * New()
This is used by vtkPVXMLParser to represent an XML document starting at the root element.