21 #ifndef __vtkScalarsToColorsContextItem_h
22 #define __vtkScalarsToColorsContextItem_h
24 #include "ctkVisualizationVTKCoreExport.h"
26 #include <vtkAbstractContextItem.h>
28 #include <vtkSmartPointer.h>
29 #include <vtkVector.h>
33 class vtkDiscretizableColorTransferFunction;
34 class vtkScalarsToColors;
43 :
public vtkAbstractContextItem
52 void SetLeftAxisMode(
int mode);
53 int GetLeftAxisMode();
56 void CopyColorTransferFunction(vtkScalarsToColors* ctf);
57 vtkDiscretizableColorTransferFunction* GetDiscretizableColorTransferFunction();
58 void ResetColorTransferFunction();
59 void BuildColorTransferFunction();
62 void SetHistogramTable(vtkTable* table,
63 const char* xAxisColumn,
const char* yAxisColumn);
66 bool Paint(vtkContext2D* painter) VTK_OVERRIDE;
69 void SetCurrentControlPointColor(
const double rgb[3]);
70 bool GetCurrentControlPointColor(
double rgb[3]);
73 void SetDataRange(
double min,
double max);
74 double* GetDataRange();
77 void SetCurrentRange(
double min,
double max);
78 double* GetCurrentRange();
81 void SetVisibleRange(
double min,
double max);
82 double* GetVisibleRange();
85 void CenterRange(
double center);
88 void RecalculateChartsRange();
91 void SetGlobalOpacity(
double opacity);
95 void InvertColorTransferFunction();
99 bool IsProcessingColorTransferFunction()
const;
114 vtkVector2i LastSceneSize;
117 class EventForwarder;
118 EventForwarder* PrivateEventForwarder;
vtkSmartPointer< vtkScalarsToColorsHistogramChart > HistogramChart
vtkSmartPointer< vtkDiscretizableColorTransferFunction > ColorTransferFunction
vtkSmartPointer< vtkScalarsToColorsPreviewChart > PreviewChart
vtkSmartPointer< vtkDiscretizableColorTransferChart > EditorChart