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 =========================================================================*/
75 #ifndef vtkSMCompositeTreeDomain_h
76 #define vtkSMCompositeTreeDomain_h
77 
78 #include "vtkRemotingServerManagerModule.h" //needed for exports
79 #include "vtkSMDomain.h"
80 #include "vtkWeakPointer.h" // needed for vtkWeakPointer.
81 
83 class vtkSMInputProperty;
84 class vtkSMSourceProxy;
85 
87 {
88 public:
89  static vtkSMCompositeTreeDomain* New();
91  void PrintSelf(ostream& os, vtkIndent indent) override;
92 
98  void Update(vtkSMProperty* input) override;
99 
101 
105  vtkGetObjectMacro(Information, vtkPVDataInformation);
107 
112  vtkSMSourceProxy* GetSource();
113 
115 
119  vtkGetMacro(SourcePort, int);
121 
126  int IsInDomain(vtkSMProperty* vtkNotUsed(property)) override { return 1; }
127 
129 
134  vtkGetMacro(Mode, int);
135  vtkSetMacro(Mode, int);
137 
138  enum
139  {
140  ALL = 0,
141  LEAVES = 1,
142  NON_LEAVES = 2,
143  NONE = 3,
144  AMR = 4,
145  };
146 
148  {
149  DEFAULT = 0,
150  NONEMPTY_LEAF = 1
151  };
152 
154 
160  vtkGetMacro(DefaultMode, int);
161  vtkSetMacro(DefaultMode, int);
163 
174  int SetDefaultValues(vtkSMProperty*, bool use_unchecked_values) override;
175 
176 protected:
178  ~vtkSMCompositeTreeDomain() override;
179 
180  int ReadXMLAttributes(vtkSMProperty* prop, vtkPVXMLElement* element) override;
181 
185  void Update(vtkSMInputProperty* iproperty);
186 
187  void InvokeModifiedIfChanged();
188 
189  void SetInformation(vtkPVDataInformation*);
191 
193  vtkPVDataInformation* LastInformation; // not reference counted.
194 
196  int Mode;
199 
200 private:
202  void operator=(const vtkSMCompositeTreeDomain&) = delete;
203 };
204 
205 #endif
vtkWeakPointer< vtkSMSourceProxy > Source
Light object for holding data information.
#define VTKREMOTINGSERVERMANAGER_EXPORT
virtual void Update(vtkSMProperty *requestingProperty)
Update self based on the "unchecked" values of all required properties.
vtkPVDataInformation * LastInformation
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
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.
proxy for a VTK source on a server
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