vtkSMCompositeTreeDomain.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-License-Identifier: BSD-3-Clause
68 #ifndef vtkSMCompositeTreeDomain_h
69 #define vtkSMCompositeTreeDomain_h
70 
71 #include "vtkRemotingServerManagerModule.h" //needed for exports
72 #include "vtkSMDomain.h"
73 
75 class vtkSMInputProperty;
76 class vtkDataAssembly;
77 
79 {
80 public:
81  static vtkSMCompositeTreeDomain* New();
83  void PrintSelf(ostream& os, vtkIndent indent) override;
84 
90  void Update(vtkSMProperty* input) override;
91 
93 
97  vtkGetObjectMacro(Information, vtkPVDataInformation);
99 
103  vtkDataAssembly* GetHierarchy() const;
104 
109  int IsInDomain(vtkSMProperty* vtkNotUsed(property)) override { return 1; }
110 
112 
117  vtkGetMacro(Mode, int);
118  vtkSetMacro(Mode, int);
120 
121  enum
122  {
123  ALL = 0,
124  LEAVES = 1,
125  NON_LEAVES = 2,
126  NONE = 3,
127  AMR = 4,
128  };
129 
131  {
132  DEFAULT = 0,
133  NONEMPTY_LEAF = 1
134  };
135 
137 
143  vtkGetMacro(DefaultMode, int);
144  vtkSetMacro(DefaultMode, int);
146 
157  int SetDefaultValues(vtkSMProperty*, bool use_unchecked_values) override;
158 
159 protected:
161  ~vtkSMCompositeTreeDomain() override;
162 
163  int ReadXMLAttributes(vtkSMProperty* prop, vtkPVXMLElement* element) override;
164  void SetInformation(vtkPVDataInformation*);
165 
167  int Mode;
169 
170 private:
172  void operator=(const vtkSMCompositeTreeDomain&) = delete;
173 
174  // Used to determine if the domain has really changed.
175  vtkMTimeType DataInformationTimeStamp;
176 };
177 
178 #endif
provides meta data about a vtkDataObject subclass.
#define VTKREMOTINGSERVERMANAGER_EXPORT
virtual void Update(vtkSMProperty *requestingProperty)
Update self based on the "unchecked" values of all required properties.
superclass for all SM properties
vtkTypeUInt64 vtkMTimeType
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:91
const int NONE
represents the possible values a property can have
Definition: vtkSMDomain.h:37
void PrintSelf(ostream &os, vtkIndent indent) override
virtual int ReadXMLAttributes(vtkSMProperty *prop, vtkPVXMLElement *elem)
Set the appropriate ivars from the xml element.
vtkPVDataInformation * Information
static vtkSMDomain * New()
This is used by vtkPVXMLParser to represent an XML document starting at the root element.
int IsInDomain(vtkSMProperty *vtkNotUsed(property)) override
Is the (unchecked) value of the property in the domain? Overwritten by sub-classes.
domain used to restrict an vtkSMIntVectorProperty values to valid flat-index for a vtkCompositeDataSe...
proxy representing inputs to a filter