vtkPVDiscretizableColorTransferFunction.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkPVDiscretizableColorTransferFunction.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 =========================================================================*/
26 #ifndef vtkPVDiscretizableColorTransferFunction_h
27 #define vtkPVDiscretizableColorTransferFunction_h
28 
30 
31 #include "vtkRemotingViewsModule.h" // needed for export macro
32 
33 class vtkAbstractArray;
34 class vtkDoubleArray;
35 class vtkVariantArray;
36 
39 {
40 public:
43  void PrintSelf(ostream& os, vtkIndent indent) override;
44 
46 
50  virtual void SetAnnotationsInFullSet(vtkAbstractArray* values, vtkStringArray* annotations);
51  vtkGetObjectMacro(AnnotatedValuesInFullSet, vtkAbstractArray);
52  vtkGetObjectMacro(AnnotationsInFullSet, vtkStringArray);
53  virtual vtkIdType SetAnnotationInFullSet(vtkVariant value, std::string annotation);
54  virtual vtkIdType SetAnnotationInFullSet(std::string value, std::string annotation);
55  virtual void ResetAnnotationsInFullSet();
57 
58  void ResetActiveAnnotatedValues();
59  void SetActiveAnnotatedValue(std::string value);
60 
61  void SetNumberOfIndexedColorsInFullSet(int n);
62  int GetNumberOfIndexedColorsInFullSet();
63  void SetIndexedColorInFullSet(unsigned int index, double r, double g, double b);
64  void GetIndexedColorInFullSet(unsigned int index, double rgb[3]);
65 
66  void SetNumberOfIndexedOpacitiesInFullSet(int n);
67  int GetNumberOfIndexedOpacitiesInFullSet();
68  void SetIndexedOpacityInFullSet(unsigned int index, double alpha);
69  void GetIndexedOpacityInFullSet(unsigned int index, double* alpha);
70 
72 
76  vtkSetMacro(UseActiveValues, bool);
77  vtkGetMacro(UseActiveValues, bool);
78  vtkBooleanMacro(UseActiveValues, bool);
80 
84  void Build() override;
85 
86 protected:
89 
90 private:
93 
95 
98  vtkAbstractArray* AnnotatedValuesInFullSet;
99  vtkStringArray* AnnotationsInFullSet;
101 
102  vtkDoubleArray* IndexedColorsInFullSet;
103  vtkDoubleArray* IndexedOpacitiesInFullSet;
104 
108  vtkVariantArray* ActiveAnnotatedValues;
109 
114  bool UseActiveValues;
115 
120 };
121 
122 #endif
static vtkDiscretizableColorTransferFunction * New()
custom version of vtkDiscretizableColorTransferFunction that adds some functionality.
#define VTKREMOTINGVIEWS_EXPORT
void PrintSelf(ostream &os, vtkIndent indent)
int vtkIdType
void operator=(const vtkObjectBase &)