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 =========================================================================*/
30 #ifndef vtkSMRepresentedArrayListDomain_h
31 #define vtkSMRepresentedArrayListDomain_h
32 
33 #include "vtkRemotingViewsModule.h" //needed for exports
34 #include "vtkSMArrayListDomain.h"
35 #include "vtkWeakPointer.h" // needed for vtkWeakPointer.
36 
39 {
40 public:
43  void PrintSelf(ostream& os, vtkIndent indent) override;
44 
48  void Update(vtkSMProperty*) override;
49 
51 
62  vtkGetMacro(UseTrueParentForRepresentatedDataInformation, bool);
64 
65 protected:
68 
72  int ReadXMLAttributes(vtkSMProperty* prop, vtkPVXMLElement* elem) override;
73 
80  bool IsFilteredArray(vtkPVDataInformation* info, int association, const char* arrayName) override;
81 
88 
89  void SetRepresentationProxy(vtkSMRepresentationProxy*);
90  void OnRepresentationDataUpdated();
91 
93  unsigned long ObserverId;
94 
95  vtkSetMacro(UseTrueParentForRepresentatedDataInformation, bool);
97 
98 private:
100  void operator=(const vtkSMRepresentedArrayListDomain&) = delete;
101 };
102 
103 #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.
#define VTKREMOTINGVIEWS_EXPORT
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