vtkPVProminentValuesInformation.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkPVProminentValuesInformation.h
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 =========================================================================*/
32 #ifndef vtkPVProminentValuesInformation_h
33 #define vtkPVProminentValuesInformation_h
34 
35 #include "vtkPVInformation.h"
36 #include "vtkRemotingViewsModule.h" //needed for exports
37 
38 class vtkAbstractArray;
41 class vtkDataObject;
42 class vtkStringArray;
43 
45 {
46 public:
49  void PrintSelf(ostream& os, vtkIndent indent) override;
50 
52 
55  vtkSetMacro(PortNumber, int);
56  vtkGetMacro(PortNumber, int);
58 
60 
63  vtkSetStringMacro(FieldAssociation);
64  vtkGetStringMacro(FieldAssociation);
66 
68 
71  vtkSetStringMacro(FieldName);
72  vtkGetStringMacro(FieldName);
74 
76 
79  void SetNumberOfComponents(int numComps);
80  vtkGetMacro(NumberOfComponents, int);
82 
84 
91  vtkSetClampMacro(Fraction, double, 0., 1.);
92  vtkGetMacro(Fraction, double);
94 
96 
101  vtkSetClampMacro(Uncertainty, double, 0., 1.);
102  vtkGetMacro(Uncertainty, double);
104 
106 
114  vtkSetMacro(Force, bool);
115  vtkGetMacro(Force, bool);
116 
118 
123  vtkGetMacro(Valid, bool);
124 
129  int Compare(vtkPVProminentValuesInformation* info);
130 
135 
139  void CopyFromObject(vtkObject*) override;
140 
147  virtual void CopyDistinctValuesFromObject(vtkAbstractArray*);
148 
152  void AddInformation(vtkPVInformation* other) override;
153 
155 
158  void CopyToStream(vtkClientServerStream*) override;
159  void CopyFromStream(const vtkClientServerStream*) override;
161 
163 
169 
175  void InitializeParameters();
176 
180  void Initialize();
181 
185  void AddDistinctValues(vtkPVProminentValuesInformation*);
186 
196  vtkAbstractArray* GetProminentComponentValues(int component);
197 
198 protected:
201 
202  void DeepCopyParameters(vtkPVProminentValuesInformation* other);
203  void CopyFromCompositeDataSet(vtkCompositeDataSet*);
204  void CopyFromLeafDataObject(vtkDataObject*);
205 
207 
210  char* FieldName;
212  double Fraction;
213  double Uncertainty;
214  bool Force;
215  bool Valid;
217 
219 
220 
221  class vtkInternalDistinctValues;
222  vtkInternalDistinctValues* DistinctValues;
223 
225 
227  void operator=(const vtkPVProminentValuesInformation&) = delete;
228 };
229 
230 #endif
virtual void CopyFromStream(const vtkClientServerStream *)
Manage a serialized version of the information.
#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.
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.