vtkSMCompositeTreeDomain.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkSMCompositeTreeDomain.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 =========================================================================*/
80 #ifndef vtkSMCompositeTreeDomain_h
81 #define vtkSMCompositeTreeDomain_h
82 
83 #include "vtkRemotingServerManagerModule.h" //needed for exports
84 #include "vtkSMDomain.h"
85 
87 class vtkSMInputProperty;
88 class vtkDataAssembly;
89 
91 {
92 public:
93  static vtkSMCompositeTreeDomain* New();
95  void PrintSelf(ostream& os, vtkIndent indent) override;
96 
102  void Update(vtkSMProperty* input) override;
103 
105 
109  vtkGetObjectMacro(Information, vtkPVDataInformation);
111 
115  vtkDataAssembly* GetHierarchy() const;
116 
121  int IsInDomain(vtkSMProperty* vtkNotUsed(property)) override { return 1; }
122 
124 
129  vtkGetMacro(Mode, int);
130  vtkSetMacro(Mode, int);
132 
133  enum
134  {
135  ALL = 0,
136  LEAVES = 1,
137  NON_LEAVES = 2,
138  NONE = 3,
139  AMR = 4,
140  };
141 
143  {
144  DEFAULT = 0,
145  NONEMPTY_LEAF = 1
146  };
147 
149 
155  vtkGetMacro(DefaultMode, int);
156  vtkSetMacro(DefaultMode, int);
158 
169  int SetDefaultValues(vtkSMProperty*, bool use_unchecked_values) override;
170 
171 protected:
173  ~vtkSMCompositeTreeDomain() override;
174 
175  int ReadXMLAttributes(vtkSMProperty* prop, vtkPVXMLElement* element) override;
176  void SetInformation(vtkPVDataInformation*);
177 
179  int Mode;
181 
182 private:
184  void operator=(const vtkSMCompositeTreeDomain&) = delete;
185 
186  // Used to determine if the domain has really changed.
187  vtkMTimeType DataInformationTimeStamp;
188 };
189 
190 #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:103
const int NONE
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.
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