Handles transferfunction user interaction. More...
#include <TransferFunctionGUI.h>
Static Public Member Functions | |
static float | calcInterpolationValueBetweenControlPoints (int x, std::vector< TFControlPoint >::iterator currentLeft, std::vector< TFControlPoint >::iterator currentRight) |
static RGB_Colour | interpolateControlPointColours (float interPolBalance, std::vector< TFControlPoint >::iterator currentLeft, std::vector< TFControlPoint >::iterator currentRight) |
static void | refreshTransferFuncPicker () |
static void | refreshTransferFuncPickerData () |
static void | initControlPoints () |
static void | sortControlPoints () |
static void | drawControlPointsRelative () |
static void | drawControlPointsConnection () |
static void | saveTransferFunctionControlPoints (const char *file) |
static void | loadTransferFunctionControlPoints (std::string file) |
static bool | checkForControlPointsAction (int button, int state, int x, int y) |
static void | deleteSelectedControlPoint () |
static bool | checkForControlPointsSelection (int x, int y) |
static bool | checkForControlPointsCreation (int button, int state, int x, int y, const Lab_Colour &colour) |
static void | createNewControlPoint (int x, int y, const Lab_Colour &colour) |
static bool | checkIfMouseInsideTransferFunc (int x, int y) |
static void | processControlPointHitCheck (bool &hit, int x, int y, TFControlPoint &controlPoint) |
static bool | isAnyControlPointBeingDragged () |
static bool | isAnyControlPointSelected () |
static TFControlPoint * | getSelectedControlPoint () |
static void | setAllControlPointsUndragged () |
static void | setAllControlPointsUnselected () |
static void | updateControlPointDragMovement (int mouseX, int mouseY) |
Static Public Attributes | |
static const int | g_iTransferFuncPickerWidth = 660 |
static const int | g_iTransferFuncPickerHeight = 180 |
static RGBA_Colour * | transferFunctionPickerData = new RGBA_Colour[g_iTransferFuncPickerHeight * g_iTransferFuncPickerWidth] |
static std::vector < TFControlPoint > | controlPoints |
static int | g_iTransferFunctionTextureDisplayHeight = 14 |
static int | g_iTransferFunctionTextureDisplayYOffset = 8 |
static ColourSpace | transferFunctionTextureColorSpace = COLOURSPACE_LAB |
Handles transferfunction user interaction.
Definition at line 25 of file TransferFunctionGUI.h.