vtkPVProminentValuesInformation.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-License-Identifier: BSD-3-Clause
20 #ifndef vtkPVProminentValuesInformation_h
21 #define vtkPVProminentValuesInformation_h
22 
23 #include "vtkPVInformation.h"
24 #include "vtkRemotingViewsModule.h" //needed for exports
25 
26 class vtkAbstractArray;
29 class vtkDataObject;
30 class vtkStringArray;
31 
33 {
34 public:
37  void PrintSelf(ostream& os, vtkIndent indent) override;
38 
40 
43  vtkSetMacro(PortNumber, int);
44  vtkGetMacro(PortNumber, int);
46 
48 
51  vtkSetStringMacro(SubsetAssemblyName);
52  vtkGetStringMacro(SubsetAssemblyName);
54 
56 
59  vtkSetStringMacro(SubsetSelector);
60  vtkGetStringMacro(SubsetSelector);
62 
64 
67  vtkSetStringMacro(FieldAssociation);
68  vtkGetStringMacro(FieldAssociation);
70 
72 
75  vtkSetStringMacro(FieldName);
76  vtkGetStringMacro(FieldName);
78 
80 
83  void SetNumberOfComponents(int numComps);
84  vtkGetMacro(NumberOfComponents, int);
86 
88 
95  vtkSetClampMacro(Fraction, double, 0., 1.);
96  vtkGetMacro(Fraction, double);
98 
100 
105  vtkSetClampMacro(Uncertainty, double, 0., 1.);
106  vtkGetMacro(Uncertainty, double);
108 
110 
118  vtkSetMacro(Force, bool);
119  vtkGetMacro(Force, bool);
120 
122 
127  vtkGetMacro(Valid, bool);
128 
133  int Compare(vtkPVProminentValuesInformation* info);
134 
139 
143  void CopyFromObject(vtkObject*) override;
144 
151  virtual void CopyDistinctValuesFromObject(vtkAbstractArray*);
152 
156  void AddInformation(vtkPVInformation* other) override;
157 
159 
162  void CopyToStream(vtkClientServerStream*) override;
163  void CopyFromStream(const vtkClientServerStream*) override;
165 
167 
173 
179  void InitializeParameters();
180 
184  void Initialize();
185 
189  void AddDistinctValues(vtkPVProminentValuesInformation*);
190 
200  vtkAbstractArray* GetProminentComponentValues(int component);
201 
202 protected:
205 
206  void DeepCopyParameters(vtkPVProminentValuesInformation* other);
207  void CopyFromCompositeDataSet(vtkCompositeDataSet*);
208  void CopyFromLeafDataObject(vtkDataObject*);
209 
216  char* FieldName;
218  double Fraction;
219  double Uncertainty;
220  bool Force;
221  bool Valid;
223 
226 
227  class vtkInternalDistinctValues;
228  vtkInternalDistinctValues* DistinctValues;
229 
231 
233  void operator=(const vtkPVProminentValuesInformation&) = delete;
234 };
235 
236 #endif
virtual void CopyFromStream(const vtkClientServerStream *)
Manage a serialized version of the information.
char * SubsetAssemblyName
Information parameters.
#define VTKREMOTINGVIEWS_EXPORT
char * FieldAssociation
Information parameters.
virtual void CopyParametersToStream(vtkMultiProcessStream &)
Serialize/Deserialize the parameters that control how/what information is gathered.
void PrintSelf(ostream &os, vtkIndent indent) override
void DeepCopy(vtkPistonReference *self, vtkPistonReference *other)
double Uncertainty
Information parameters.
Store messages for the interpreter.
char * SubsetSelector
Information parameters.
Prominent values a data array takes on.
void operator=(const vtkPVInformation &)=delete
virtual void CopyParametersFromStream(vtkMultiProcessStream &)
Serialize/Deserialize the parameters that control how/what information is gathered.
virtual void AddInformation(vtkPVInformation *)
Merge another information object.
virtual void CopyToStream(vtkClientServerStream *)=0
Manage a serialized version of the information.
virtual void CopyFromObject(vtkObject *)
Transfer information about a single object into this object.
static vtkObject * New()
Superclass for information objects.