Public Member Functions | Public Attributes | Static Public Attributes

TFControlPoint Class Reference

Handles transfer function control points. More...

#include <TFControlPoint.h>

List of all members.

Public Member Functions

 TFControlPoint (float x, float y, const Lab_Colour &colour)
bool operator== (const TFControlPoint &other)
bool operator< (const TFControlPoint &other)
void setPosition (float x, float y)
void setColour (float l, float a, float b)
bool isBeingDragged ()
void setBeingDragged (bool beingDragged)
bool isSelected ()
void setSelected (bool selected)
bool isMarkedForDeletion ()
void setMarkedForDeletion (bool deletePoint)
Lab_ColourgetColourLab ()
void drawControlPoint ()
void drawControlPointDragged (float square, RGBA_Colour colourRGBA, float radius)
void drawControlPointNormal (float square, RGBA_Colour colourRGBA, float radius)
void drawControlPointBackGround (float square, bool drawVersionDragged=false)
void drawControlPointFrame (float squares, bool drawVersionDragged=false, bool drawVersionDeleting=false)
void drawControlPointCenterPoint (RGBA_Colour &colourRGBA, float radius, bool drawVersionDragged=false)
void dragMovement (int mouseX, int mouseY)
void updateBeingDraggedIntoDeletion (int mouseX, int mouseY)
void updateDragDifference (int mouseX, int mouseY)
void draggingEnded ()

Public Attributes

Position m_pos
float dragDifferenceX
float dragDifferenceY
Lab_Colour m_colour

Static Public Attributes

static const int DrawSize = 10
static bool g_bMouseInsideBottomWindow = false
static int MAXIMUM_CONTROLPOINT_OUTSIDE_DRAG_DIST_SQUARED = 289

Detailed Description

Handles transfer function control points.

Definition at line 14 of file TFControlPoint.h.


The documentation for this class was generated from the following files: