vtkSMChartSeriesSelectionDomain.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-License-Identifier: BSD-3-Clause
29 #ifndef vtkSMChartSeriesSelectionDomain_h
30 #define vtkSMChartSeriesSelectionDomain_h
31 
32 #include "vtkParaViewDeprecation.h"
33 #include "vtkRemotingViewsModule.h" // needed for exports
34 #include "vtkSMStringListDomain.h"
35 
36 #include <map> // For std::map
37 
41 
43 {
44 public:
47  void PrintSelf(ostream& os, vtkIndent indent) override;
48 
53  void Update(vtkSMProperty*) override;
54 
56  {
61  VALUE
62  };
63 
68  int SetDefaultValues(vtkSMProperty*, bool use_unchecked_values) override;
69 
71 
74  vtkGetMacro(DefaultMode, int);
76 
78 
82  PARAVIEW_DEPRECATED_IN_6_0_0("Please use vtkPVGeneralSettings::SetLoadNoChartVariables() instead")
83  static void SetLoadNoChartVariables(bool choice);
84  PARAVIEW_DEPRECATED_IN_6_0_0("Please use vtkPVGeneralSettings::GetLoadNoChartVariables() instead")
85  static bool GetLoadNoChartVariables();
87 
88  vtkSetStringMacro(DefaultValue);
89 
90 protected:
92  ~vtkSMChartSeriesSelectionDomain() override;
93 
97  vtkPVDataInformation* GetInputInformation();
98 
102  int ReadXMLAttributes(vtkSMProperty* prop, vtkPVXMLElement* element) override;
103 
107  virtual bool GetDefaultSeriesVisibility(const char*);
108 
113  virtual std::vector<std::string> GetDefaultValue(const char* series);
114 
120  virtual std::map<std::string, bool> CollectAvailableArrays(const std::string& blockName,
121  vtkPVDataInformation* dataInfo, int fieldAssociation, bool flattenTable,
122  bool skipPartialArrays = false);
123 
129  virtual void CollectArrayComponents(vtkChartRepresentation* chartRepr,
130  const std::string& blockName, std::map<std::string, bool>& stringOverrides,
131  vtkPVArrayInformation* dataInfo, bool flattenTable, bool skipPartialArrays = false);
132 
138  virtual void SetDefaultVisibilityOverrides(
139  const std::map<std::string, bool>& arrayNames, bool visibility);
140 
141  int DefaultMode;
142 
144 
147  char* DefaultValue;
149 
153  bool FlattenTable;
154 
158  bool HidePartialArrays;
159 
160 private:
161  vtkSMChartSeriesSelectionDomain(const vtkSMChartSeriesSelectionDomain&) = delete;
162  void operator=(const vtkSMChartSeriesSelectionDomain&) = delete;
163 
164  class vtkInternals;
165  vtkInternals* Internals;
166 
167  // The EXPERIMENTAL feature: everytime domain is modified we update the
168  // property's value.
169  void OnDomainModified();
170  void UpdateDefaultValues(
171  vtkSMProperty*, bool preserve_previous_values, bool use_unchecked_values);
172 };
173 
174 #endif
provides meta data about a vtkDataObject subclass.
#define VTKREMOTINGVIEWS_EXPORT
void PrintSelf(ostream &os, vtkIndent indent) override
extends vtkSMChartSeriesListDomain to add logic to better handle default values suitable for series-p...
superclass for all SM properties
void Update(vtkSMProperty *) override
Update self checking the "unchecked" values of all required properties.
provides meta data about arrays.
vtkChartRepresentation is the base representation for charting representations.
static vtkSMStringListDomain * New()
This is used by vtkPVXMLParser to represent an XML document starting at the root element.
#define const
Definition: zconf.h:238
#define PARAVIEW_DEPRECATED_IN_6_0_0(reason)
object for general options.
int SetDefaultValues(vtkSMProperty *, bool use_unchecked_values) override
A vtkSMProperty is often defined with a default value in the XML itself.