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 vtkStdString;
43 class vtkStringArray;
44 
45 class VTKREMOTINGVIEWS_EXPORT vtkPVProminentValuesInformation : public vtkPVInformation
46 {
47 public:
50  void PrintSelf(ostream& os, vtkIndent indent) override;
51 
53 
56  vtkSetMacro(PortNumber, int);
57  vtkGetMacro(PortNumber, int);
59 
61 
64  vtkSetStringMacro(FieldAssociation);
65  vtkGetStringMacro(FieldAssociation);
67 
69 
72  vtkSetStringMacro(FieldName);
73  vtkGetStringMacro(FieldName);
75 
77 
80  void SetNumberOfComponents(int numComps);
81  vtkGetMacro(NumberOfComponents, int);
83 
85 
92  vtkSetClampMacro(Fraction, double, 0., 1.);
93  vtkGetMacro(Fraction, double);
95 
97 
102  vtkSetClampMacro(Uncertainty, double, 0., 1.);
103  vtkGetMacro(Uncertainty, double);
105 
107 
115  vtkSetMacro(Force, bool);
116  vtkGetMacro(Force, bool);
117 
119 
124  vtkGetMacro(Valid, bool);
125 
130  int Compare(vtkPVProminentValuesInformation* info);
131 
136 
140  void CopyFromObject(vtkObject*) override;
141 
148  virtual void CopyDistinctValuesFromObject(vtkAbstractArray*);
149 
153  void AddInformation(vtkPVInformation* other) override;
154 
156 
159  void CopyToStream(vtkClientServerStream*) override;
160  void CopyFromStream(const vtkClientServerStream*) override;
162 
164 
170 
176  void InitializeParameters();
177 
181  void Initialize();
182 
186  void AddDistinctValues(vtkPVProminentValuesInformation*);
187 
197  vtkAbstractArray* GetProminentComponentValues(int component);
198 
199 protected:
202 
203  void DeepCopyParameters(vtkPVProminentValuesInformation* other);
204  void CopyFromCompositeDataSet(vtkCompositeDataSet*);
205  void CopyFromLeafDataObject(vtkDataObject*);
206 
208 
211  char* FieldName;
213  double Fraction;
214  double Uncertainty;
215  bool Force;
216  bool Valid;
218 
220 
221 
222  class vtkInternalDistinctValues;
223  vtkInternalDistinctValues* DistinctValues;
224 
226 
228  void operator=(const vtkPVProminentValuesInformation&) = delete;
229 };
230 
231 #endif
virtual void CopyFromStream(const vtkClientServerStream *)
Manage a serialized version of the information.
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)
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.