ParaView
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 "vtkPVServerManagerRenderingModule.h" //needed for exports
32 #include "vtkSMArrayListDomain.h"
33 #include "vtkWeakPointer.h" // needed for vtkWeakPointer.
34 
36 class VTKPVSERVERMANAGERRENDERING_EXPORT vtkSMRepresentedArrayListDomain
37  : public vtkSMArrayListDomain
38 {
39 public:
42  void PrintSelf(ostream& os, vtkIndent indent);
43 
47  virtual void Update(vtkSMProperty*);
48 
50 
61  vtkGetMacro(UseTrueParentForRepresentatedDataInformation, bool);
63 
64 protected:
67 
71  virtual int ReadXMLAttributes(vtkSMProperty* prop, vtkPVXMLElement* elem);
72 
79  virtual bool IsFilteredArray(vtkPVDataInformation* info, int association, const char* arrayName);
80 
87 
88  void SetRepresentationProxy(vtkSMRepresentationProxy*);
89  void OnRepresentationDataUpdated();
90 
91  vtkWeakPointer<vtkSMRepresentationProxy> RepresentationProxy;
92  unsigned long ObserverId;
93 
94  vtkSetMacro(UseTrueParentForRepresentatedDataInformation, bool);
96 
97 private:
99  void operator=(const vtkSMRepresentedArrayListDomain&) VTK_DELETE_FUNCTION;
100 };
101 
102 #endif
void PrintSelf(ostream &os, vtkIndent indent)
virtual vtkPVDataInformation * GetExtraDataInformation()
HACK: Provides a temporary mechanism for subclasses to provide an "additional" vtkPVDataInformation i...
Light object for holding data information.
superclass for all SM properties
virtual int ReadXMLAttributes(vtkSMProperty *prop, vtkPVXMLElement *element)
Set the appropriate ivars from the xml element.
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.
virtual void Update(vtkSMProperty *prop)
Updates the string list based on the available arrays.
list of arrays obtained from input