Public Types | Public Member Functions | Static Public Member Functions | Protected Types | Protected Member Functions | List of all members
vtkTransferFunctionBoxItem Class Reference

#include <vtkTransferFunctionBoxItem.h>

Inheritance diagram for vtkTransferFunctionBoxItem:
Inheritance graph
[legend]
Collaboration diagram for vtkTransferFunctionBoxItem:
Collaboration graph
[legend]

Public Types

enum  { BoxAddEvent = vtkCommand::UserEvent + 100, BoxEditEvent, BoxSelectEvent, BoxDeleteEvent }
 
typedef vtkControlPointsItem Superclass
 
- Public Types inherited from vtkControlPointsItem
typedef vtkPlot Superclass
 
- Public Types inherited from vtkPlot
typedef vtkContextItem Superclass
 
- Public Types inherited from vtkContextItem
typedef vtkAbstractContextItem Superclass
 
- Public Types inherited from vtkAbstractContextItem
typedef vtkObject Superclass
 

Public Member Functions

virtual const char * GetClassName ()
 
virtual int IsA (const char *type)
 
void PrintSelf (ostream &os, vtkIndent indent) override
 
const vtkRectdGetBox ()
 Returns the current box as [x0, y0, width, height]. More...
 
void SetBox (double x, double y, double width, double height)
 Set position and width with respect to corner 0 (BOTTOM_LEFT). More...
 
vtkSmartPointer< vtkImageDataGetTexture () const
 Get access to the texture of this box item. More...
 
void SetValidBounds (double x0, double x1, double y0, double y1) override
 
virtual void SetSelected (bool)
 Set/Get whether the box should be drawn selected. More...
 
virtual bool GetSelected ()
 Set/Get whether the box should be drawn selected. More...
 
virtual void SelectedOn ()
 Set/Get whether the box should be drawn selected. More...
 
virtual void SelectedOff ()
 Set/Get whether the box should be drawn selected. More...
 
virtual void SetBoxColor (double r, double g, double b, double a)
 Set/Get the color to be used for this box. More...
 
virtual void SetBoxColor (const double c[4])
 Set/Get the color to be used for this box. More...
 
doubleGetBoxColor () VTK_SIZEHINT(4)
 Set/Get the color to be used for this box. More...
 
virtual void GetBoxColor (double &r, double &g, double &b, double &a)
 Set/Get the color to be used for this box. More...
 
virtual void GetBoxColor (double c[4])
 Set/Get the color to be used for this box. More...
 
void SetTransferFunctionBox (vtkPVTransferFunction2DBox *b)
 Set/Get the internal transfer function control box. More...
 
vtkPVTransferFunction2DBoxGetTransferFunctionBox ()
 Set/Get the internal transfer function control box. More...
 
virtual void SetID (int)
 Set/Get an ID used to reference this item. More...
 
virtual int GetID ()
 Set/Get an ID used to reference this item. More...
 
- Public Member Functions inherited from vtkControlPointsItem
vtkControlPointsItemNewInstance () const
 
virtual void GetBounds (double bounds[4])
 
void SelectPoint (vtkIdType pointId)
 
void SelectPoint (double *currentPoint)
 
void SelectAllPoints ()
 
void DeselectPoint (vtkIdType pointId)
 
void DeselectPoint (double *currentPoint)
 
void DeselectAllPoints ()
 
void ToggleSelectPoint (vtkIdType pointId)
 
void ToggleSelectPoint (double *currentPoint)
 
virtual bool SelectPoints (const vtkVector2f &min, const vtkVector2f &max)
 
vtkIdType GetNumberOfSelectedPoints () const
 
vtkIdType FindPoint (double *pos)
 
bool IsOverPoint (double *pos, vtkIdType pointId)
 
vtkIdType GetControlPointId (double *pos)
 
vtkIdType RemovePoint (vtkIdType pointId)
 
void RemoveCurrentPoint ()
 
void MovePoints (const vtkVector2f &translation, vtkIdTypeArray *pointIds)
 
void MovePoints (const vtkVector2f &translation, bool dontMoveFirstAndLast=false)
 
void SpreadPoints (float factor, vtkIdTypeArray *pointIds)
 
void SpreadPoints (float factor, bool dontSpreadFirstAndLast=false)
 
vtkIdType GetCurrentPoint () const
 
void SetCurrentPoint (vtkIdType index)
 
void ResetBounds ()
 
virtual void SetUserBounds (double, double, double, double)
 
virtual void SetUserBounds (double[4])
 
virtual doubleGetUserBounds ()
 
virtual void GetUserBounds (double &, double &, double &, double &)
 
virtual void GetUserBounds (double[4])
 
virtual void SetValidBounds (double[4])
 
virtual doubleGetValidBounds ()
 
virtual void GetValidBounds (double &, double &, double &, double &)
 
virtual void GetValidBounds (double[4])
 
virtual float GetScreenPointRadius ()
 
virtual void SetScreenPointRadius (float)
 
void GetControlPointsIds (vtkIdTypeArray *ids, bool excludeFirstAndLast=false) const
 
virtual bool GetStrokeMode ()
 
virtual void SetSwitchPointsMode (bool)
 
virtual bool GetSwitchPointsMode ()
 
virtual void SetEndPointsXMovable (bool)
 
virtual bool GetEndPointsXMovable ()
 
virtual void SetEndPointsYMovable (bool)
 
virtual bool GetEndPointsYMovable ()
 
virtual bool GetEndPointsMovable ()
 
virtual void SetEndPointsRemovable (bool)
 
virtual bool GetEndPointsRemovable ()
 
virtual void SetShowLabels (bool)
 
virtual bool GetShowLabels ()
 
virtual void SetLabelFormat (const char *)
 
virtual char * GetLabelFormat ()
 
virtual vtkPenGetSelectedPointPen ()
 
virtual vtkBrushGetSelectedPointBrush ()
 
virtual void SetUserBounds (double, double, double, double)
 
virtual void SetUserBounds (double[4])
 
virtual doubleGetUserBounds ()
 
virtual void GetUserBounds (double &, double &, double &, double &)
 
virtual void GetUserBounds (double[4])
 
virtual void SetValidBounds (double[4])
 
virtual doubleGetValidBounds ()
 
virtual void GetValidBounds (double &, double &, double &, double &)
 
virtual void GetValidBounds (double[4])
 
virtual float GetScreenPointRadius ()
 
virtual void SetScreenPointRadius (float)
 
void GetControlPointsIds (vtkIdTypeArray *ids, bool excludeFirstAndLast=false) const
 
virtual bool GetStrokeMode ()
 
virtual void SetSwitchPointsMode (bool)
 
virtual bool GetSwitchPointsMode ()
 
virtual void SetEndPointsXMovable (bool)
 
virtual bool GetEndPointsXMovable ()
 
virtual void SetEndPointsYMovable (bool)
 
virtual bool GetEndPointsYMovable ()
 
virtual bool GetEndPointsMovable ()
 
virtual void SetEndPointsRemovable (bool)
 
virtual bool GetEndPointsRemovable ()
 
virtual void SetShowLabels (bool)
 
virtual bool GetShowLabels ()
 
virtual void SetLabelFormat (const char *)
 
virtual char * GetLabelFormat ()
 
virtual vtkPenGetSelectedPointPen ()
 
virtual vtkBrushGetSelectedPointBrush ()
 
- Public Member Functions inherited from vtkPlot
vtkPlotNewInstance () const
 
virtual bool SelectPointsInPolygon (const vtkContextPolygon &polygon)
 
virtual void SetWidth (float width)
 
virtual float GetWidth ()
 
virtual void SetLabel (const vtkStdString &label)
 
virtual vtkStdString GetLabel ()
 
virtual void SetLabels (vtkStringArray *labels)
 
virtual vtkStringArrayGetLabels ()
 
virtual int GetNumberOfLabels ()
 
vtkStdString GetLabel (vtkIdType index)
 
void SetIndexedLabels (vtkStringArray *labels)
 
virtual vtkStringArrayGetIndexedLabels ()
 
vtkContextMapper2DGetData ()
 
virtual vtkTableGetInput ()
 
virtual void SetInputArray (int index, const vtkStdString &name)
 
virtual void UpdateCache ()
 
virtual void SetLegendVisibility (bool)
 
virtual bool GetLegendVisibility ()
 
virtual void LegendVisibilityOn ()
 
virtual void LegendVisibilityOff ()
 
virtual bool PaintLegend (vtkContext2D *painter, const vtkRectf &rect, int legendIndex)
 
virtual void SetTooltipLabelFormat (const vtkStdString &label)
 
virtual vtkStdString GetTooltipLabelFormat ()
 
virtual void SetTooltipNotation (int notation)
 
virtual int GetTooltipNotation ()
 
virtual void SetTooltipPrecision (int precision)
 
virtual int GetTooltipPrecision ()
 
virtual vtkStdString GetTooltipLabel (const vtkVector2d &plotPos, vtkIdType seriesIndex, vtkIdType segmentIndex)
 
virtual vtkIdType GetNearestPoint (const vtkVector2f &point, const vtkVector2f &tolerance, vtkVector2f *location)
 
virtual void SetColor (unsigned char r, unsigned char g, unsigned char b, unsigned char a)
 
virtual void SetColor (double r, double g, double b)
 
virtual void GetColor (double rgb[3])
 
void GetColor (unsigned char rgb[3])
 
void SetPen (vtkPen *pen)
 
vtkPenGetPen ()
 
void SetBrush (vtkBrush *brush)
 
vtkBrushGetBrush ()
 
void SetSelectionPen (vtkPen *pen)
 
vtkPenGetSelectionPen ()
 
void SetSelectionBrush (vtkBrush *brush)
 
vtkBrushGetSelectionBrush ()
 
virtual bool GetUseIndexForXSeries ()
 
virtual void SetUseIndexForXSeries (bool)
 
virtual void SetInputData (vtkTable *table)
 
virtual void SetInputData (vtkTable *table, const vtkStdString &xColumn, const vtkStdString &yColumn)
 
void SetInputData (vtkTable *table, vtkIdType xColumn, vtkIdType yColumn)
 
virtual void SetSelectable (bool)
 
virtual bool GetSelectable ()
 
virtual void SelectableOn ()
 
virtual void SelectableOff ()
 
virtual void SetSelection (vtkIdTypeArray *id)
 
virtual vtkIdTypeArrayGetSelection ()
 
virtual vtkAxisGetXAxis ()
 
virtual void SetXAxis (vtkAxis *axis)
 
virtual vtkAxisGetYAxis ()
 
virtual void SetYAxis (vtkAxis *axis)
 
void SetShiftScale (const vtkRectd &scaling)
 
vtkRectd GetShiftScale ()
 
virtual void GetUnscaledInputBounds (double bounds[4])
 
virtual void SetProperty (const vtkStdString &property, const vtkVariant &var)
 
virtual vtkVariant GetProperty (const vtkStdString &property)
 
virtual void SetLegendVisibility (bool)
 
virtual bool GetLegendVisibility ()
 
virtual void LegendVisibilityOn ()
 
virtual void LegendVisibilityOff ()
 
virtual bool PaintLegend (vtkContext2D *painter, const vtkRectf &rect, int legendIndex)
 
virtual void SetTooltipLabelFormat (const vtkStdString &label)
 
virtual vtkStdString GetTooltipLabelFormat ()
 
virtual void SetTooltipNotation (int notation)
 
virtual int GetTooltipNotation ()
 
virtual void SetTooltipPrecision (int precision)
 
virtual int GetTooltipPrecision ()
 
virtual vtkStdString GetTooltipLabel (const vtkVector2d &plotPos, vtkIdType seriesIndex, vtkIdType segmentIndex)
 
virtual vtkIdType GetNearestPoint (const vtkVector2f &point, const vtkVector2f &tolerance, vtkVector2f *location)
 
virtual void SetColor (unsigned char r, unsigned char g, unsigned char b, unsigned char a)
 
virtual void SetColor (double r, double g, double b)
 
virtual void GetColor (double rgb[3])
 
void GetColor (unsigned char rgb[3])
 
void SetPen (vtkPen *pen)
 
vtkPenGetPen ()
 
void SetBrush (vtkBrush *brush)
 
vtkBrushGetBrush ()
 
void SetSelectionPen (vtkPen *pen)
 
vtkPenGetSelectionPen ()
 
void SetSelectionBrush (vtkBrush *brush)
 
vtkBrushGetSelectionBrush ()
 
virtual bool GetUseIndexForXSeries ()
 
virtual void SetUseIndexForXSeries (bool)
 
virtual void SetInputData (vtkTable *table)
 
virtual void SetInputData (vtkTable *table, const vtkStdString &xColumn, const vtkStdString &yColumn)
 
void SetInputData (vtkTable *table, vtkIdType xColumn, vtkIdType yColumn)
 
virtual void SetSelectable (bool)
 
virtual bool GetSelectable ()
 
virtual void SelectableOn ()
 
virtual void SelectableOff ()
 
virtual void SetSelection (vtkIdTypeArray *id)
 
virtual vtkIdTypeArrayGetSelection ()
 
virtual vtkAxisGetXAxis ()
 
virtual void SetXAxis (vtkAxis *axis)
 
virtual vtkAxisGetYAxis ()
 
virtual void SetYAxis (vtkAxis *axis)
 
void SetShiftScale (const vtkRectd &scaling)
 
vtkRectd GetShiftScale ()
 
virtual void GetUnscaledInputBounds (double bounds[4])
 
virtual void SetProperty (const vtkStdString &property, const vtkVariant &var)
 
virtual vtkVariant GetProperty (const vtkStdString &property)
 
- Public Member Functions inherited from vtkContextItem
vtkContextItemNewInstance () const
 
virtual double GetOpacity ()
 
virtual void SetOpacity (double)
 
virtual double GetOpacity ()
 
virtual void SetOpacity (double)
 
- Public Member Functions inherited from vtkAbstractContextItem
vtkAbstractContextItemNewInstance () const
 
virtual void Update ()
 
virtual bool PaintChildren (vtkContext2D *painter)
 
virtual void ReleaseGraphicsResources ()
 
unsigned int AddItem (vtkAbstractContextItem *item)
 
bool RemoveItem (vtkAbstractContextItem *item)
 
bool RemoveItem (unsigned int index)
 
vtkAbstractContextItemGetItem (unsigned int index)
 
unsigned int GetItemIndex (vtkAbstractContextItem *item)
 
unsigned int GetNumberOfItems ()
 
void ClearItems ()
 
unsigned int Raise (unsigned int index)
 
unsigned int Lower (unsigned int index)
 
virtual vtkAbstractContextItemGetPickedItem (const vtkContextMouseEvent &mouse)
 
virtual bool MouseEnterEvent (const vtkContextMouseEvent &mouse)
 
virtual bool MouseLeaveEvent (const vtkContextMouseEvent &mouse)
 
virtual bool MouseWheelEvent (const vtkContextMouseEvent &mouse, int delta)
 
virtual void SetScene (vtkContextScene *scene)
 
virtual void SetParent (vtkAbstractContextItem *parent)
 
virtual vtkVector2f MapToParent (const vtkVector2f &point)
 
virtual vtkVector2f MapFromParent (const vtkVector2f &point)
 
virtual vtkVector2f MapToScene (const vtkVector2f &point)
 
virtual vtkVector2f MapFromScene (const vtkVector2f &point)
 
virtual unsigned int StackAbove (unsigned int index, unsigned int under)
 
virtual unsigned int StackUnder (unsigned int child, unsigned int above)
 
vtkContextSceneGetScene ()
 
vtkAbstractContextItemGetParent ()
 
virtual bool GetVisible ()
 
virtual void SetVisible (bool)
 
virtual bool GetInteractive ()
 
virtual void SetInteractive (bool)
 
virtual unsigned int StackAbove (unsigned int index, unsigned int under)
 
virtual unsigned int StackUnder (unsigned int child, unsigned int above)
 
vtkContextSceneGetScene ()
 
vtkAbstractContextItemGetParent ()
 
virtual bool GetVisible ()
 
virtual void SetVisible (bool)
 
virtual bool GetInteractive ()
 
virtual void SetInteractive (bool)
 
- Public Member Functions inherited from vtkObject
 vtkBaseTypeMacro (vtkObject, vtkObjectBase)
 
virtual void DebugOn ()
 
virtual void DebugOff ()
 
bool GetDebug ()
 
void SetDebug (bool debugFlag)
 
virtual void Modified ()
 
virtual vtkMTimeType GetMTime ()
 
void RemoveObserver (unsigned long tag)
 
void RemoveObservers (unsigned long event)
 
void RemoveObservers (const char *event)
 
void RemoveAllObservers ()
 
int HasObserver (unsigned long event)
 
int HasObserver (const char *event)
 
int InvokeEvent (unsigned long event)
 
int InvokeEvent (const char *event)
 
unsigned long AddObserver (unsigned long event, vtkCommand *, float priority=0.0f)
 
unsigned long AddObserver (const char *event, vtkCommand *, float priority=0.0f)
 
vtkCommandGetCommand (unsigned long tag)
 
void RemoveObserver (vtkCommand *)
 
void RemoveObservers (unsigned long event, vtkCommand *)
 
void RemoveObservers (const char *event, vtkCommand *)
 
int HasObserver (unsigned long event, vtkCommand *)
 
int HasObserver (const char *event, vtkCommand *)
 
unsigned long AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f)
 
unsigned long AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f)
 
unsigned long AddObserver (unsigned long event, U observer, bool(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f)
 
int InvokeEvent (unsigned long event, void *callData)
 
int InvokeEvent (const char *event, void *callData)
 
unsigned long AddObserver (unsigned long event, vtkCommand *, float priority=0.0f)
 
unsigned long AddObserver (const char *event, vtkCommand *, float priority=0.0f)
 
vtkCommandGetCommand (unsigned long tag)
 
void RemoveObserver (vtkCommand *)
 
void RemoveObservers (unsigned long event, vtkCommand *)
 
void RemoveObservers (const char *event, vtkCommand *)
 
int HasObserver (unsigned long event, vtkCommand *)
 
int HasObserver (const char *event, vtkCommand *)
 
unsigned long AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f)
 
unsigned long AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f)
 
unsigned long AddObserver (unsigned long event, U observer, bool(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f)
 
int InvokeEvent (unsigned long event, void *callData)
 
int InvokeEvent (const char *event, void *callData)
 
- Public Member Functions inherited from vtkObjectBase
const char * GetClassName () const
 
virtual void Delete ()
 
virtual void FastDelete ()
 
void Print (ostream &os)
 
virtual void Register (vtkObjectBase *o)
 
virtual void UnRegister (vtkObjectBase *o)
 
void SetReferenceCount (int)
 
virtual void PrintHeader (ostream &os, vtkIndent indent)
 
virtual void PrintTrailer (ostream &os, vtkIndent indent)
 
int GetReferenceCount ()
 
void PrintRevisions (ostream &)
 
virtual void PrintHeader (ostream &os, vtkIndent indent)
 
virtual void PrintTrailer (ostream &os, vtkIndent indent)
 
int GetReferenceCount ()
 
void PrintRevisions (ostream &)
 

Static Public Member Functions

static vtkTransferFunctionBoxItemNew ()
 
static int IsTypeOf (const char *type)
 
static vtkTransferFunctionBoxItemSafeDownCast (vtkObject *o)
 
- Static Public Member Functions inherited from vtkControlPointsItem
static int IsTypeOf (const char *type)
 
static vtkControlPointsItemSafeDownCast (vtkObjectBase *o)
 
- Static Public Member Functions inherited from vtkPlot
static int IsTypeOf (const char *type)
 
static vtkPlotSafeDownCast (vtkObjectBase *o)
 
- Static Public Member Functions inherited from vtkContextItem
static int IsTypeOf (const char *type)
 
static vtkContextItemSafeDownCast (vtkObjectBase *o)
 
- Static Public Member Functions inherited from vtkAbstractContextItem
static int IsTypeOf (const char *type)
 
static vtkAbstractContextItemSafeDownCast (vtkObjectBase *o)
 
- Static Public Member Functions inherited from vtkObject
static vtkObjectNew ()
 
static void BreakOnError ()
 
static void SetGlobalWarningDisplay (int val)
 
static void GlobalWarningDisplayOn ()
 
static void GlobalWarningDisplayOff ()
 
static int GetGlobalWarningDisplay ()
 
static void SetGlobalWarningDisplay (int val)
 
static void GlobalWarningDisplayOn ()
 
static void GlobalWarningDisplayOff ()
 
static int GetGlobalWarningDisplay ()
 
- Static Public Member Functions inherited from vtkObjectBase
static vtkTypeBool IsTypeOf (const char *name)
 
static vtkObjectBaseNew ()
 
static vtkObjectBaseNew ()
 

Protected Types

enum  BoxCorners {
  BOTTOM_LEFT = 0, BOTTOM_RIGHT, TOP_RIGHT, TOP_LEFT,
  BOTTOM_LEFT_LOOP
}
 Box corners are ordered as follows: 3 --— 2 | | (4) 0 --— 1. More...
 

Protected Member Functions

 vtkTransferFunctionBoxItem ()
 
 ~vtkTransferFunctionBoxItem () override
 
vtkIdType AddPoint (double x, double y)
 
vtkIdType AddPoint (double *pos) override
 
vtkIdType RemovePoint (double *pos) override
 This method does nothing as this item has a fixed number of points (4). More...
 
vtkIdType GetNumberOfPoints () const override
 
void GetControlPoint (vtkIdType index, double *point) const override
 
vtkMTimeType GetControlPointsMTime () override
 
void SetControlPoint (vtkIdType index, double *point) override
 
void emitEvent (unsigned long event, void *params=nullptr) override
 
void MovePoint (vtkIdType pointId, double deltaX, double deltaY)
 
void DragBox (double deltaX, double deltaY)
 
void DragCorner (vtkIdType cornerId, const double *delta)
 
bool Paint (vtkContext2D *painter) override
 
bool Hit (const vtkContextMouseEvent &mouse) override
 Returns true if the supplied x, y coordinate is within the bounds of the box or any of the control points. More...
 
virtual void SelectBox ()
 Highlight this box. More...
 
bool MouseButtonPressEvent (const vtkContextMouseEvent &mouse) override
 Interaction overrides. More...
 
bool MouseButtonReleaseEvent (const vtkContextMouseEvent &mouse) override
 Interaction overrides. More...
 
bool MouseDoubleClickEvent (const vtkContextMouseEvent &mouse) override
 Interaction overrides. More...
 
bool MouseMoveEvent (const vtkContextMouseEvent &mouse) override
 Interaction overrides. More...
 
bool KeyPressEvent (const vtkContextKeyEvent &key) override
 Interaction overrides. More...
 
bool KeyReleaseEvent (const vtkContextKeyEvent &key) override
 Interaction overrides. More...
 
- Protected Member Functions inherited from vtkControlPointsItem
virtual vtkObjectBaseNewInstanceInternal () const
 
 vtkControlPointsItem ()
 
virtual ~vtkControlPointsItem ()
 
void StartChanges ()
 
void EndChanges ()
 
void StartInteraction ()
 
void StartInteractionIfNotStarted ()
 
void Interaction ()
 
void EndInteraction ()
 
int GetInteractionsCount () const
 
void SetCurrentPointPos (const vtkVector2f &newPos)
 
vtkIdType SetPointPos (vtkIdType point, const vtkVector2f &newPos)
 
void MoveCurrentPoint (const vtkVector2f &translation)
 
vtkIdType MovePoint (vtkIdType point, const vtkVector2f &translation)
 
vtkVector2f GetSelectionCenterOfMass () const
 
vtkVector2f GetCenterOfMass (vtkIdTypeArray *pointIDs) const
 
void Stroke (const vtkVector2f &newPos)
 
virtual void EditPoint (float vtkNotUsed(tX), float vtkNotUsed(tY))
 
virtual vtkStdString GetControlPointLabel (vtkIdType index)
 
void AddPointId (vtkIdType addedPointId)
 
bool IsEndPointPicked ()
 
bool IsPointRemovable (vtkIdType pointId)
 
virtual void ComputeBounds (double *bounds)
 
virtual bool UsingLogScale ()
 
virtual void ComputePoints ()
 
virtual void TransformScreenToData (const vtkVector2f &in, vtkVector2f &out)
 
virtual void TransformDataToScreen (const vtkVector2f &in, vtkVector2f &out)
 
virtual bool ClampPos (double pos[2], double bounds[4])
 
bool ClampValidPos (double pos[2])
 
void DrawUnselectedPoints (vtkContext2D *painter)
 
void DrawSelectedPoints (vtkContext2D *painter)
 
virtual void DrawPoint (vtkContext2D *painter, vtkIdType index)
 
virtual void ComputePoints ()
 
virtual void TransformScreenToData (const vtkVector2f &in, vtkVector2f &out)
 
virtual void TransformDataToScreen (const vtkVector2f &in, vtkVector2f &out)
 
virtual bool ClampPos (double pos[2], double bounds[4])
 
bool ClampValidPos (double pos[2])
 
void DrawUnselectedPoints (vtkContext2D *painter)
 
void DrawSelectedPoints (vtkContext2D *painter)
 
virtual void DrawPoint (vtkContext2D *painter, vtkIdType index)
 
- Protected Member Functions inherited from vtkPlot
 vtkPlot ()
 
 ~vtkPlot ()
 
vtkStdString GetNumber (double position, vtkAxis *axis)
 
- Protected Member Functions inherited from vtkContextItem
 vtkContextItem ()
 
 ~vtkContextItem ()
 
- Protected Member Functions inherited from vtkAbstractContextItem
 vtkAbstractContextItem ()
 
 ~vtkAbstractContextItem ()
 
- Protected Member Functions inherited from vtkObject
 vtkObject ()
 
virtual ~vtkObject ()
 
void RegisterInternal (vtkObjectBase *, vtkTypeBool check) VTK_OVERRIDE
 
void UnRegisterInternal (vtkObjectBase *, vtkTypeBool check) VTK_OVERRIDE
 
void InternalGrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=NULL)
 
void InternalReleaseFocus ()
 
void InternalGrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=NULL)
 
void InternalReleaseFocus ()
 
- Protected Member Functions inherited from vtkObjectBase
 vtkObjectBase ()
 
virtual ~vtkObjectBase ()
 
virtual void CollectRevisions (ostream &)
 
virtual void ReportReferences (vtkGarbageCollector *)
 
 vtkObjectBase (const vtkObjectBase &)
 
void operator= (const vtkObjectBase &)
 

Additional Inherited Members

- Public Attributes inherited from vtkControlPointsItem
 CurrentPointChangedEvent
 
 CurrentPointEditEvent
 
- Static Protected Member Functions inherited from vtkControlPointsItem
static void CallComputePoints (vtkObject *sender, unsigned long event, void *receiver, void *params)
 
- Protected Attributes inherited from vtkControlPointsItem
vtkCallbackCommandCallback
 
vtkPenSelectedPointPen
 
vtkBrushSelectedPointBrush
 
int BlockUpdates
 
int StartedInteractions
 
int StartedChanges
 
vtkIdType CurrentPoint
 
double Bounds [4]
 
double UserBounds [4]
 
double ValidBounds [4]
 
vtkTransform2DTransform
 
float ScreenPointRadius
 
bool StrokeMode
 
bool SwitchPointsMode
 
bool MouseMoved
 
bool EnforceValidFunction
 
vtkIdType PointToDelete
 
bool PointAboutToBeDeleted
 
vtkIdType PointToToggle
 
bool PointAboutToBeToggled
 
bool InvertShadow
 
bool EndPointsXMovable
 
bool EndPointsYMovable
 
bool EndPointsRemovable
 
bool ShowLabels
 
char * LabelFormat
 
- Protected Attributes inherited from vtkPlot
vtkSmartPointer< vtkPenPen
 
vtkSmartPointer< vtkBrushBrush
 
vtkSmartPointer< vtkPenSelectionPen
 
vtkSmartPointer< vtkBrushSelectionBrush
 
vtkSmartPointer< vtkStringArrayLabels
 
vtkSmartPointer< vtkStringArrayAutoLabels
 
vtkSmartPointer< vtkStringArrayIndexedLabels
 
bool UseIndexForXSeries
 
vtkSmartPointer< vtkContextMapper2DData
 
bool Selectable
 
vtkIdTypeArraySelection
 
vtkAxisXAxis
 
vtkAxisYAxis
 
vtkStdString TooltipLabelFormat
 
vtkStdString TooltipDefaultLabelFormat
 
int TooltipNotation
 
int TooltipPrecision
 
vtkRectd ShiftScale
 
bool LegendVisibility
 
- Protected Attributes inherited from vtkContextItem
double Opacity
 
- Protected Attributes inherited from vtkAbstractContextItem
vtkContextSceneScene
 
vtkAbstractContextItemParent
 
vtkContextScenePrivateChildren
 
bool Visible
 
bool Interactive
 
- Protected Attributes inherited from vtkObject
bool Debug
 
vtkTimeStamp MTime
 
vtkSubjectHelper * SubjectHelper
 
- Protected Attributes inherited from vtkObjectBase
vtkAtomicInt32 ReferenceCount
 
vtkWeakPointerBase ** WeakPointers
 

Detailed Description

Definition at line 18 of file vtkTransferFunctionBoxItem.h.

Member Typedef Documentation

◆ Superclass

Definition at line 22 of file vtkTransferFunctionBoxItem.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
BoxAddEvent 
BoxEditEvent 
BoxSelectEvent 
BoxDeleteEvent 

Definition at line 29 of file vtkTransferFunctionBoxItem.h.

◆ BoxCorners

Box corners are ordered as follows: 3 --— 2 | | (4) 0 --— 1.

Point 0 is repeated for rendering purposes (vtkContext2D::DrawPoly requires it to close the outline). This point is not registered with vtkControlPointsItem.

Enumerator
BOTTOM_LEFT 
BOTTOM_RIGHT 
TOP_RIGHT 
TOP_LEFT 
BOTTOM_LEFT_LOOP 

Definition at line 111 of file vtkTransferFunctionBoxItem.h.

Constructor & Destructor Documentation

◆ vtkTransferFunctionBoxItem()

vtkTransferFunctionBoxItem::vtkTransferFunctionBoxItem ( )
protected

◆ ~vtkTransferFunctionBoxItem()

vtkTransferFunctionBoxItem::~vtkTransferFunctionBoxItem ( )
overrideprotected

Member Function Documentation

◆ New()

static vtkTransferFunctionBoxItem* vtkTransferFunctionBoxItem::New ( )
static

◆ GetClassName()

virtual const char* vtkTransferFunctionBoxItem::GetClassName ( )
virtual

◆ IsTypeOf()

static int vtkTransferFunctionBoxItem::IsTypeOf ( const char *  type)
static

◆ IsA()

virtual int vtkTransferFunctionBoxItem::IsA ( const char *  type)
virtual

Reimplemented from vtkControlPointsItem.

◆ SafeDownCast()

static vtkTransferFunctionBoxItem* vtkTransferFunctionBoxItem::SafeDownCast ( vtkObject o)
static

◆ PrintSelf()

void vtkTransferFunctionBoxItem::PrintSelf ( ostream &  os,
vtkIndent  indent 
)
overridevirtual

Reimplemented from vtkControlPointsItem.

◆ GetBox()

const vtkRectd& vtkTransferFunctionBoxItem::GetBox ( )

Returns the current box as [x0, y0, width, height].

◆ SetBox()

void vtkTransferFunctionBoxItem::SetBox ( double  x,
double  y,
double  width,
double  height 
)

Set position and width with respect to corner 0 (BOTTOM_LEFT).

◆ GetTexture()

vtkSmartPointer<vtkImageData> vtkTransferFunctionBoxItem::GetTexture ( ) const

Get access to the texture of this box item.

◆ SetValidBounds()

void vtkTransferFunctionBoxItem::SetValidBounds ( double  x0,
double  x1,
double  y0,
double  y1 
)
overridevirtual

Reimplemented from vtkControlPointsItem.

◆ SetSelected()

virtual void vtkTransferFunctionBoxItem::SetSelected ( bool  )
virtual

Set/Get whether the box should be drawn selected.

◆ GetSelected()

virtual bool vtkTransferFunctionBoxItem::GetSelected ( )
virtual

Set/Get whether the box should be drawn selected.

◆ SelectedOn()

virtual void vtkTransferFunctionBoxItem::SelectedOn ( )
virtual

Set/Get whether the box should be drawn selected.

◆ SelectedOff()

virtual void vtkTransferFunctionBoxItem::SelectedOff ( )
virtual

Set/Get whether the box should be drawn selected.

◆ SetBoxColor() [1/2]

virtual void vtkTransferFunctionBoxItem::SetBoxColor ( double  r,
double  g,
double  b,
double  a 
)
virtual

Set/Get the color to be used for this box.

◆ SetBoxColor() [2/2]

virtual void vtkTransferFunctionBoxItem::SetBoxColor ( const double  c[4])
inlinevirtual

Set/Get the color to be used for this box.

Definition at line 71 of file vtkTransferFunctionBoxItem.h.

◆ GetBoxColor() [1/3]

double* vtkTransferFunctionBoxItem::GetBoxColor ( )

Set/Get the color to be used for this box.

◆ GetBoxColor() [2/3]

virtual void vtkTransferFunctionBoxItem::GetBoxColor ( double r,
double g,
double b,
double a 
)
virtual

Set/Get the color to be used for this box.

◆ GetBoxColor() [3/3]

virtual void vtkTransferFunctionBoxItem::GetBoxColor ( double  c[4])
inlinevirtual

Set/Get the color to be used for this box.

Definition at line 74 of file vtkTransferFunctionBoxItem.h.

◆ SetTransferFunctionBox()

void vtkTransferFunctionBoxItem::SetTransferFunctionBox ( vtkPVTransferFunction2DBox b)

Set/Get the internal transfer function control box.

◆ GetTransferFunctionBox()

vtkPVTransferFunction2DBox* vtkTransferFunctionBoxItem::GetTransferFunctionBox ( )

Set/Get the internal transfer function control box.

◆ SetID()

virtual void vtkTransferFunctionBoxItem::SetID ( int  )
virtual

Set/Get an ID used to reference this item.

This identifier is used by ParaView to update client/server proxy for the 2D transfer function.

◆ GetID()

virtual int vtkTransferFunctionBoxItem::GetID ( )
virtual

Set/Get an ID used to reference this item.

This identifier is used by ParaView to update client/server proxy for the 2D transfer function.

◆ AddPoint() [1/2]

vtkIdType vtkTransferFunctionBoxItem::AddPoint ( double  x,
double  y 
)
protected

◆ AddPoint() [2/2]

vtkIdType vtkTransferFunctionBoxItem::AddPoint ( double pos)
overrideprotectedvirtual

Implements vtkControlPointsItem.

◆ RemovePoint()

vtkIdType vtkTransferFunctionBoxItem::RemovePoint ( double pos)
overrideprotectedvirtual

This method does nothing as this item has a fixed number of points (4).

Implements vtkControlPointsItem.

◆ GetNumberOfPoints()

vtkIdType vtkTransferFunctionBoxItem::GetNumberOfPoints ( ) const
overrideprotectedvirtual

Implements vtkControlPointsItem.

◆ GetControlPoint()

void vtkTransferFunctionBoxItem::GetControlPoint ( vtkIdType  index,
double point 
) const
overrideprotectedvirtual

Implements vtkControlPointsItem.

◆ GetControlPointsMTime()

vtkMTimeType vtkTransferFunctionBoxItem::GetControlPointsMTime ( )
overrideprotectedvirtual

Implements vtkControlPointsItem.

◆ SetControlPoint()

void vtkTransferFunctionBoxItem::SetControlPoint ( vtkIdType  index,
double point 
)
overrideprotectedvirtual

Implements vtkControlPointsItem.

◆ emitEvent()

void vtkTransferFunctionBoxItem::emitEvent ( unsigned long  event,
void *  params = nullptr 
)
overrideprotectedvirtual

Implements vtkControlPointsItem.

◆ MovePoint()

void vtkTransferFunctionBoxItem::MovePoint ( vtkIdType  pointId,
double  deltaX,
double  deltaY 
)
protected

◆ DragBox()

void vtkTransferFunctionBoxItem::DragBox ( double  deltaX,
double  deltaY 
)
protected

◆ DragCorner()

void vtkTransferFunctionBoxItem::DragCorner ( vtkIdType  cornerId,
const double delta 
)
protected

◆ Paint()

bool vtkTransferFunctionBoxItem::Paint ( vtkContext2D painter)
overrideprotectedvirtual

Reimplemented from vtkControlPointsItem.

◆ Hit()

bool vtkTransferFunctionBoxItem::Hit ( const vtkContextMouseEvent mouse)
overrideprotectedvirtual

Returns true if the supplied x, y coordinate is within the bounds of the box or any of the control points.

Reimplemented from vtkControlPointsItem.

◆ MouseButtonPressEvent()

bool vtkTransferFunctionBoxItem::MouseButtonPressEvent ( const vtkContextMouseEvent mouse)
overrideprotectedvirtual

Interaction overrides.

The box item can be dragged around the chart area by clicking within the box and moving the cursor. The size of the box can be manipulated by clicking on the control points and moving them. No key events are currently reimplemented.

Reimplemented from vtkControlPointsItem.

◆ MouseButtonReleaseEvent()

bool vtkTransferFunctionBoxItem::MouseButtonReleaseEvent ( const vtkContextMouseEvent mouse)
overrideprotectedvirtual

Interaction overrides.

The box item can be dragged around the chart area by clicking within the box and moving the cursor. The size of the box can be manipulated by clicking on the control points and moving them. No key events are currently reimplemented.

Reimplemented from vtkControlPointsItem.

◆ MouseDoubleClickEvent()

bool vtkTransferFunctionBoxItem::MouseDoubleClickEvent ( const vtkContextMouseEvent mouse)
overrideprotectedvirtual

Interaction overrides.

The box item can be dragged around the chart area by clicking within the box and moving the cursor. The size of the box can be manipulated by clicking on the control points and moving them. No key events are currently reimplemented.

Reimplemented from vtkControlPointsItem.

◆ MouseMoveEvent()

bool vtkTransferFunctionBoxItem::MouseMoveEvent ( const vtkContextMouseEvent mouse)
overrideprotectedvirtual

Interaction overrides.

The box item can be dragged around the chart area by clicking within the box and moving the cursor. The size of the box can be manipulated by clicking on the control points and moving them. No key events are currently reimplemented.

Reimplemented from vtkControlPointsItem.

◆ KeyPressEvent()

bool vtkTransferFunctionBoxItem::KeyPressEvent ( const vtkContextKeyEvent key)
overrideprotectedvirtual

Interaction overrides.

The box item can be dragged around the chart area by clicking within the box and moving the cursor. The size of the box can be manipulated by clicking on the control points and moving them. No key events are currently reimplemented.

Reimplemented from vtkControlPointsItem.

◆ KeyReleaseEvent()

bool vtkTransferFunctionBoxItem::KeyReleaseEvent ( const vtkContextKeyEvent key)
overrideprotectedvirtual

Interaction overrides.

The box item can be dragged around the chart area by clicking within the box and moving the cursor. The size of the box can be manipulated by clicking on the control points and moving them. No key events are currently reimplemented.

Reimplemented from vtkControlPointsItem.

◆ SelectBox()

virtual void vtkTransferFunctionBoxItem::SelectBox ( )
protectedvirtual

Highlight this box.


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