21 #ifndef __vtkDiscretizableColorTransferChart_h
22 #define __vtkDiscretizableColorTransferChart_h
24 #include "ctkVisualizationVTKCoreExport.h"
26 #include <vtkChartXY.h>
27 #include <vtkSmartPointer.h>
29 class vtkCompositeControlPointsItem;
30 class vtkCompositeTransferFunctionItem;
32 class vtkDiscretizableColorTransferFunction;
33 class vtkHistogramMarker;
44 vtkDiscretizableColorTransferFunction*
function);
46 vtkDiscretizableColorTransferFunction*
function,
47 double dataRangeMin,
double dataRangeMax);
83 static bool IsInRange(
double min,
double max,
double value);
87 vtkSmartPointer<vtkDiscretizableColorTransferControlPointsItem>
ControlPoints;
105 double CurrentRange[2];
106 double OriginalRange[2];
void SetColorTransferFunction(vtkDiscretizableColorTransferFunction *function, double dataRangeMin, double dataRangeMax)
vtkTypeMacro(vtkDiscretizableColorTransferChart, vtkChartXY) static vtkDiscretizableColorTransferChart *New()
void RemapColorTransferFunction()
bool IsProcessingColorTransferFunction() const
void SetCurrentControlPointColor(const double rgb[3])
Set the color of the current color control point.
bool GetCurrentControlPointColor(double rgb[3])
is a currently selected control point, false otherwise.
vtkSmartPointer< vtkDiscretizableColorTransferControlPointsItem > ControlPoints
vtkSmartPointer< vtkHistogramMarker > MaxMarker
void CenterRange(double center)
Center the current position to the given point.
bool MouseMoveEvent(const vtkContextMouseEvent &mouse) VTK_OVERRIDE
vtkSmartPointer< vtkCompositeTransferFunctionItem > CompositeHiddenItem
void SetCurrentRange(double min, double max)
vtkCompositeControlPointsItem * GetControlPointsItem()
void UpdateMarkerPosition(const vtkContextMouseEvent &m)
void SetColorTransferFunction(vtkDiscretizableColorTransferFunction *function)
double * GetOriginalRange()
void SetOriginalRange(double min, double max)
Set/Get the original range.
vtkSmartPointer< vtkHistogramMarker > MinMarker
vtkSmartPointer< vtkDiscretizableColorTransferFunction > ColorTransferFunction
static bool IsInRange(double min, double max, double value)
bool MouseButtonPressEvent(const vtkContextMouseEvent &mouse) VTK_OVERRIDE
bool MouseButtonReleaseEvent(const vtkContextMouseEvent &mouse) VTK_OVERRIDE
void SetDataRange(double min, double max)
Set/Get the data range.
vtkSmartPointer< vtkTransform2D > Transform
double * GetCurrentRange()