vtkSMRepresentedArrayListDomain.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: $RCSfile$
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 vtkSMRepresentedArrayListDomain_h
29 #define vtkSMRepresentedArrayListDomain_h
30 
31 #include "vtkRemotingViewsModule.h" //needed for exports
32 #include "vtkSMArrayListDomain.h"
33 #include "vtkWeakPointer.h" // needed for vtkWeakPointer.
34 
36 class VTKREMOTINGVIEWS_EXPORT vtkSMRepresentedArrayListDomain : public vtkSMArrayListDomain
37 {
38 public:
41  void PrintSelf(ostream& os, vtkIndent indent) override;
42 
46  void Update(vtkSMProperty*) override;
47 
49 
60  vtkGetMacro(UseTrueParentForRepresentatedDataInformation, bool);
62 
63 protected:
66 
70  int ReadXMLAttributes(vtkSMProperty* prop, vtkPVXMLElement* elem) override;
71 
78  bool IsFilteredArray(vtkPVDataInformation* info, int association, const char* arrayName) override;
79 
86 
87  void SetRepresentationProxy(vtkSMRepresentationProxy*);
88  void OnRepresentationDataUpdated();
89 
91  unsigned long ObserverId;
92 
93  vtkSetMacro(UseTrueParentForRepresentatedDataInformation, bool);
95 
96 private:
98  void operator=(const vtkSMRepresentedArrayListDomain&) = delete;
99 };
100 
101 #endif
Proxy for a representations.
void Update(vtkSMProperty *prop) override
Updates the string list based on the available arrays.
virtual vtkPVDataInformation * GetExtraDataInformation()
HACK: Provides a temporary mechanism for subclasses to provide an "additional" vtkPVDataInformation i...
int ReadXMLAttributes(vtkSMProperty *prop, vtkPVXMLElement *element) override
Set the appropriate ivars from the xml element.
Light object for holding data information.
void PrintSelf(ostream &os, vtkIndent indent) override
superclass for all SM properties
extends vtkSMArrayListDomain to add support for arrays from represented data information.
vtkWeakPointer< vtkSMRepresentationProxy > RepresentationProxy
static vtkSMArrayListDomain * New()
virtual bool IsFilteredArray(vtkPVDataInformation *info, int association, const char *arrayName)
Returns true if an array should be filtered out.
This is used by vtkPVXMLParser to represent an XML document starting at the root element.
list of arrays obtained from input