ParaView
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 "vtkPVClientServerCoreRenderingModule.h" //needed for exports
36 #include "vtkPVInformation.h"
37 
38 class vtkAbstractArray;
40 class vtkCompositeDataSet;
41 class vtkDataObject;
42 class vtkStdString;
43 class vtkStringArray;
44 
45 class VTKPVCLIENTSERVERCORERENDERING_EXPORT vtkPVProminentValuesInformation
46  : public vtkPVInformation
47 {
48 public:
49  static vtkPVProminentValuesInformation* New();
51  void PrintSelf(ostream& os, vtkIndent indent);
52 
54 
57  vtkSetMacro(PortNumber, int);
58  vtkGetMacro(PortNumber, int);
60 
62 
65  vtkSetStringMacro(FieldAssociation);
66  vtkGetStringMacro(FieldAssociation);
68 
70 
73  vtkSetStringMacro(FieldName);
74  vtkGetStringMacro(FieldName);
76 
78 
81  void SetNumberOfComponents(int numComps);
82  vtkGetMacro(NumberOfComponents, int);
84 
86 
93  vtkSetClampMacro(Fraction, double, 0., 1.);
94  vtkGetMacro(Fraction, double);
96 
98 
103  vtkSetClampMacro(Uncertainty, double, 0., 1.);
104  vtkGetMacro(Uncertainty, double);
106 
111  int Compare(vtkPVProminentValuesInformation* info);
112 
116  void DeepCopy(vtkPVProminentValuesInformation* other);
117 
121  virtual void CopyFromObject(vtkObject*);
122 
129  virtual void CopyDistinctValuesFromObject(vtkAbstractArray*);
130 
134  virtual void AddInformation(vtkPVInformation* other);
135 
137 
140  virtual void CopyToStream(vtkClientServerStream*);
141  virtual void CopyFromStream(const vtkClientServerStream*);
143 
145 
148  virtual void CopyParametersToStream(vtkMultiProcessStream&);
149  virtual void CopyParametersFromStream(vtkMultiProcessStream&);
151 
157  void InitializeParameters();
158 
162  void Initialize();
163 
167  void AddDistinctValues(vtkPVProminentValuesInformation*);
168 
178  vtkAbstractArray* GetProminentComponentValues(int component);
179 
180 protected:
183 
184  void DeepCopyParameters(vtkPVProminentValuesInformation* other);
185  void CopyFromCompositeDataSet(vtkCompositeDataSet*);
186  void CopyFromLeafDataObject(vtkDataObject*);
187 
189 
192  char* FieldName;
194  double Fraction;
195  double Uncertainty;
197 
199 
200 
201  class vtkInternalDistinctValues;
202  vtkInternalDistinctValues* DistinctValues;
203 
205 
207  void operator=(const vtkPVProminentValuesInformation&) VTK_DELETE_FUNCTION;
208 };
209 
210 #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.
double Uncertainty
Information parameters.
Store messages for the interpreter.
Prominent values a data array takes on.
void operator=(const vtkPVInformation &) VTK_DELETE_FUNCTION
void PrintSelf(ostream &os, vtkIndent indent)
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.
Superclass for information objects.