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 <set> // For std::set
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 void PopulateAvailableArrays(const std::string& blockName,
121  std::vector<std::string>& strings, vtkPVDataInformation* dataInfo, int fieldAssociation,
122  bool flattenTable);
123 
129  virtual void PopulateArrayComponents(vtkChartRepresentation* chartRepr,
130  const std::string& blockName, std::vector<std::string>& strings,
131  std::set<std::string>& unique_strings, vtkPVArrayInformation* dataInfo, bool flattenTable);
132 
138  virtual void SetDefaultVisibilityOverride(const std::string& arrayname, bool visibility);
139 
140  int DefaultMode;
141 
143 
146  char* DefaultValue;
148 
152  bool FlattenTable;
153 
157  bool HidePartialArrays;
158 
159  static bool LoadNoVariables;
160 
161 private:
162  vtkSMChartSeriesSelectionDomain(const vtkSMChartSeriesSelectionDomain&) = delete;
163  void operator=(const vtkSMChartSeriesSelectionDomain&) = delete;
164 
165  class vtkInternals;
166  vtkInternals* Internals;
167 
168  // The EXPERIMENTAL feature: everytime domain is modified we update the
169  // property's value.
170  void OnDomainModified();
171  void UpdateDefaultValues(vtkSMProperty*, bool preserve_previous_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.