11 #include "vtkDiscretizableColorTransferFunction.h"
13 class vtkAbstractArray;
15 class vtkVariantArray;
18 :
public vtkDiscretizableColorTransferFunction {
22 vtkDiscretizableColorTransferFunction);
23 void PrintSelf(ostream& os, vtkIndent indent)
override;
30 virtual void SetAnnotationsInFullSet(vtkAbstractArray* values,
31 vtkStringArray* annotations);
34 virtual vtkIdType SetAnnotationInFullSet(vtkVariant value,
35 std::string annotation);
36 virtual vtkIdType SetAnnotationInFullSet(std::string value,
37 std::string annotation);
38 virtual void ResetAnnotationsInFullSet();
49 this->SetIndexedColor(index,
rgb[0],
rgb[1],
rgb[2]);
52 this->SetIndexedColor(index, rgba[0], rgba[1], rgba[2]);
55 void ResetActiveAnnotatedValues();
56 void SetActiveAnnotatedValue(std::string value);
58 void SetNumberOfIndexedColorsInFullSet(
int n);
59 int GetNumberOfIndexedColorsInFullSet();
60 void SetIndexedColorInFullSet(
unsigned int index,
64 void GetIndexedColorInFullSet(
unsigned int index,
double rgb[3]);
66 void SetNumberOfIndexedOpacitiesInFullSet(
int n);
67 int GetNumberOfIndexedOpacitiesInFullSet();
68 void SetIndexedOpacityInFullSet(
unsigned int index,
double alpha);
69 void GetIndexedOpacityInFullSet(
unsigned int index,
double* alpha);
84 void Build()
override;
99 vtkAbstractArray* AnnotatedValuesInFullSet;
100 vtkStringArray* AnnotationsInFullSet;
103 vtkDoubleArray* IndexedColorsInFullSet;
104 vtkDoubleArray* IndexedOpacitiesInFullSet;
109 vtkVariantArray* ActiveAnnotatedValues;
115 bool UseActiveValues;
120 vtkTimeStamp BuildTime;
vtkGetObjectMacro(AnnotationsInFullSet, vtkStringArray)
vtkGetObjectMacro(AnnotatedValuesInFullSet, vtkAbstractArray)
static vtkDiscretizableColorTransferFunctionCustom * New()
void SetIndexedColorRGB(unsigned int index, const double rgb[3])
vtkGetMacro(UseActiveValues, bool)
vtkTypeMacro(vtkDiscretizableColorTransferFunctionCustom, vtkDiscretizableColorTransferFunction)
vtkBooleanMacro(UseActiveValues, bool)
void SetIndexedColorRGBA(unsigned int index, const double rgba[4])
vtkSetMacro(UseActiveValues, bool)
#define QPCL_ENGINE_LIB_API