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 "vtkRemotingViewsModule.h" // needed for exports
33 #include "vtkSMStringListDomain.h"
34 
35 #include <set> // For std::set
36 
40 
42 {
43 public:
46  void PrintSelf(ostream& os, vtkIndent indent) override;
47 
52  void Update(vtkSMProperty*) override;
53 
55  {
60  VALUE
61  };
62 
67  int SetDefaultValues(vtkSMProperty*, bool use_unchecked_values) override;
68 
70 
73  vtkGetMacro(DefaultMode, int);
75 
80  static void SetLoadNoChartVariables(bool choice)
81  {
83  }
85 
86  vtkSetStringMacro(DefaultValue);
87 
88 protected:
91 
95  vtkPVDataInformation* GetInputInformation();
96 
100  int ReadXMLAttributes(vtkSMProperty* prop, vtkPVXMLElement* element) override;
101 
105  virtual bool GetDefaultSeriesVisibility(const char*);
106 
111  virtual std::vector<std::string> GetDefaultValue(const char* series);
112 
118  virtual void PopulateAvailableArrays(const std::string& blockName,
119  std::vector<std::string>& strings, vtkPVDataInformation* dataInfo, int fieldAssociation,
120  bool flattenTable);
121 
127  virtual void PopulateArrayComponents(vtkChartRepresentation* chartRepr,
128  const std::string& blockName, std::vector<std::string>& strings,
129  std::set<std::string>& unique_strings, vtkPVArrayInformation* dataInfo, bool flattenTable);
130 
136  virtual void SetDefaultVisibilityOverride(const std::string& arrayname, bool visibility);
137 
139 
141 
146 
151 
156 
157  static bool LoadNoVariables;
158 
159 private:
161  void operator=(const vtkSMChartSeriesSelectionDomain&) = delete;
162 
163  class vtkInternals;
164  vtkInternals* Internals;
165 
166  // The EXPERIMENTAL feature: everytime domain is modified we update the
167  // property's value.
168  void OnDomainModified();
169  void UpdateDefaultValues(vtkSMProperty*, bool preserve_previous_values);
170 };
171 
172 #endif
provides meta data about a vtkDataObject subclass.
#define VTKREMOTINGVIEWS_EXPORT
void PrintSelf(ostream &os, vtkIndent indent) override
char * DefaultValue
Value used when DefaultMode==VALUE.
extends vtkSMChartSeriesListDomain to add logic to better handle default values suitable for series-p...
superclass for all SM properties
static void SetLoadNoChartVariables(bool choice)
Global flag to toggle between (a) the default behavior and (b) setting default visibility to off...
int ReadXMLAttributes(vtkSMProperty *prop, vtkPVXMLElement *element) override
Set the appropriate ivars from the xml element.
bool HidePartialArrays
Specify if Partial Arrays should be hidden.
void Update(vtkSMProperty *) override
Update self checking the "unchecked" values of all required properties.
vtkSMDomainInternals * Internals
Definition: vtkSMDomain.h:275
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.
bool FlattenTable
Specify if table components should be split.
int SetDefaultValues(vtkSMProperty *, bool use_unchecked_values) override
A vtkSMProperty is often defined with a default value in the XML itself.