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

#include <vtkTransferFunctionChartHistogram2D.h>

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

Public Types

enum  { TransferFunctionModified = vtkCommand::UserEvent + 1000 }
 
typedef vtkChartHistogram2D Superclass
 
- Public Types inherited from vtkChartHistogram2D
typedef vtkChartXY Superclass
 
- Public Types inherited from vtkChartXY
typedef vtkChart Superclass
 
- Public Types inherited from vtkChart
enum  EventIds
 
enum  EventIds
 
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)
 
bool IsInitialized ()
 Get whether the chart has been initialized with a histogram. More...
 
virtual void RemoveBox (vtkSmartPointer< vtkTransferFunctionBoxItem > box)
 Remove box item from the chart. More...
 
bool MouseDoubleClickEvent (const vtkContextMouseEvent &mouse) override
 Override to add new box item to the chart when double clicked. More...
 
bool KeyPressEvent (const vtkContextKeyEvent &key) override
 Override to delete the active box item. More...
 
void SetInputData (vtkImageData *, vtkIdType z=0) override
 Set the input image data for the 2D histogram. More...
 
bool Paint (vtkContext2D *painter) override
 Paint event for the chart, called whenever the chart needs to be drawn. More...
 
vtkSmartPointer< vtkTransferFunctionBoxItemAddNewBox ()
 Add a new box item to the chart. More...
 
vtkSmartPointer< vtkTransferFunctionBoxItemAddNewBox (const vtkRectd &r, double *color, double alpha, bool addToTF2D=true)
 Add a new box item to the chart. More...
 
void AddBox (vtkSmartPointer< vtkTransferFunctionBoxItem > box, bool addToTF2D=true)
 Add a new box item to the chart. More...
 
virtual void SetTransferFunction2D (vtkPVTransferFunction2D *transfer2D)
 Set/Get the 2D transfer function. More...
 
virtual vtkPVTransferFunction2DGetTransferFunction2D ()
 Set/Get the 2D transfer function. More...
 
vtkSmartPointer< vtkTransferFunctionBoxItemGetActiveBox () const
 Set/Get the actively selected box. More...
 
void SetActiveBox (vtkSmartPointer< vtkTransferFunctionBoxItem > box)
 Set/Get the actively selected box. More...
 
void SetActiveBoxColorAlpha (double r, double g, double b, double a)
 Set active box color and alpha. More...
 
void SetActiveBoxColorAlpha (double color[3], double alpha)
 Set active box color and alpha. More...
 
- Public Member Functions inherited from vtkChartHistogram2D
vtkChartHistogram2DNewInstance () const
 
virtual void PrintSelf (ostream &os, vtkIndent indent)
 
virtual void Update ()
 
virtual void SetTransferFunction (vtkScalarsToColors *function)
 
virtual bool Hit (const vtkContextMouseEvent &mouse)
 
virtual vtkPlotGetPlot (vtkIdType index)
 
- Public Member Functions inherited from vtkChartXY
vtkChartXYNewInstance () const
 
virtual vtkPlotAddPlot (int type)
 
virtual vtkIdType AddPlot (vtkPlot *plot)
 
virtual bool RemovePlot (vtkIdType index)
 
virtual void ClearPlots ()
 
virtual vtkIdType GetPlotIndex (vtkPlot *)
 
vtkIdType RaisePlot (vtkPlot *plot)
 
virtual vtkIdType StackPlotAbove (vtkPlot *plot, vtkPlot *under)
 
vtkIdType LowerPlot (vtkPlot *plot)
 
virtual vtkIdType StackPlotUnder (vtkPlot *plot, vtkPlot *above)
 
virtual vtkIdType GetNumberOfPlots ()
 
int GetPlotCorner (vtkPlot *plot)
 
void SetPlotCorner (vtkPlot *plot, int corner)
 
virtual vtkAxisGetAxis (int axisIndex)
 
virtual void SetShowLegend (bool visible)
 
virtual vtkChartLegendGetLegend ()
 
virtual void SetTooltip (vtkTooltipItem *tooltip)
 
virtual vtkTooltipItemGetTooltip ()
 
virtual vtkIdType GetNumberOfAxes ()
 
virtual void RecalculateBounds ()
 
virtual void SetSelectionMethod (int method)
 
virtual bool MouseEnterEvent (const vtkContextMouseEvent &mouse)
 
virtual bool MouseMoveEvent (const vtkContextMouseEvent &mouse)
 
virtual bool MouseLeaveEvent (const vtkContextMouseEvent &mouse)
 
virtual bool MouseButtonPressEvent (const vtkContextMouseEvent &mouse)
 
virtual bool MouseButtonReleaseEvent (const vtkContextMouseEvent &mouse)
 
virtual bool MouseWheelEvent (const vtkContextMouseEvent &mouse, int delta)
 
virtual void SetDrawAxesAtOrigin (bool)
 
virtual bool GetDrawAxesAtOrigin ()
 
virtual void DrawAxesAtOriginOn ()
 
virtual void DrawAxesAtOriginOff ()
 
virtual void SetAutoAxes (bool)
 
virtual bool GetAutoAxes ()
 
virtual void AutoAxesOn ()
 
virtual void AutoAxesOff ()
 
virtual void SetHiddenAxisBorder (int)
 
virtual int GetHiddenAxisBorder ()
 
virtual void SetForceAxesToBounds (bool)
 
virtual bool GetForceAxesToBounds ()
 
virtual void ForceAxesToBoundsOn ()
 
virtual void ForceAxesToBoundsOff ()
 
virtual void SetBarWidthFraction (float)
 
virtual float GetBarWidthFraction ()
 
virtual void SetZoomWithMouseWheel (bool)
 
virtual bool GetZoomWithMouseWheel ()
 
virtual void ZoomWithMouseWheelOn ()
 
virtual void ZoomWithMouseWheelOff ()
 
virtual void SetAdjustLowerBoundForLogPlot (bool)
 
virtual bool GetAdjustLowerBoundForLogPlot ()
 
virtual void AdjustLowerBoundForLogPlotOn ()
 
virtual void AdjustLowerBoundForLogPlotOff ()
 
virtual void SetTooltipInfo (const vtkContextMouseEvent &, const vtkVector2d &, vtkIdType, vtkPlot *, vtkIdType segmentIndex=-1)
 
virtual void SetDrawAxesAtOrigin (bool)
 
virtual bool GetDrawAxesAtOrigin ()
 
virtual void DrawAxesAtOriginOn ()
 
virtual void DrawAxesAtOriginOff ()
 
virtual void SetAutoAxes (bool)
 
virtual bool GetAutoAxes ()
 
virtual void AutoAxesOn ()
 
virtual void AutoAxesOff ()
 
virtual void SetHiddenAxisBorder (int)
 
virtual int GetHiddenAxisBorder ()
 
virtual void SetForceAxesToBounds (bool)
 
virtual bool GetForceAxesToBounds ()
 
virtual void ForceAxesToBoundsOn ()
 
virtual void ForceAxesToBoundsOff ()
 
virtual void SetBarWidthFraction (float)
 
virtual float GetBarWidthFraction ()
 
virtual void SetZoomWithMouseWheel (bool)
 
virtual bool GetZoomWithMouseWheel ()
 
virtual void ZoomWithMouseWheelOn ()
 
virtual void ZoomWithMouseWheelOff ()
 
virtual void SetAdjustLowerBoundForLogPlot (bool)
 
virtual bool GetAdjustLowerBoundForLogPlot ()
 
virtual void AdjustLowerBoundForLogPlotOn ()
 
virtual void AdjustLowerBoundForLogPlotOff ()
 
virtual void SetTooltipInfo (const vtkContextMouseEvent &, const vtkVector2d &, vtkIdType, vtkPlot *, vtkIdType segmentIndex=-1)
 
- Public Member Functions inherited from vtkChart
vtkChartNewInstance () const
 
virtual bool RemovePlotInstance (vtkPlot *plot)
 
virtual void SetAnnotationLink (vtkAnnotationLink *link)
 
void SetBorders (int left, int bottom, int right, int top)
 
void SetSize (const vtkRectf &rect)
 
vtkRectf GetSize ()
 
virtual void SetActionToButton (int action, int button)
 
virtual int GetActionToButton (int action)
 
virtual void SetClickActionToButton (int action, int button)
 
virtual int GetClickActionToButton (int action)
 
virtual int GetSelectionMethod ()
 
virtual vtkAnnotationLinkGetAnnotationLink ()
 
virtual void SetGeometry (int, int)
 
void SetGeometry (int[2])
 
virtual intGetGeometry ()
 
virtual void GetGeometry (int &, int &)
 
virtual void GetGeometry (int[2])
 
virtual void SetPoint1 (int, int)
 
void SetPoint1 (int[2])
 
virtual intGetPoint1 ()
 
virtual void GetPoint1 (int &, int &)
 
virtual void GetPoint1 (int[2])
 
virtual void SetPoint2 (int, int)
 
void SetPoint2 (int[2])
 
virtual intGetPoint2 ()
 
virtual void GetPoint2 (int &, int &)
 
virtual void GetPoint2 (int[2])
 
virtual bool GetShowLegend ()
 
virtual void SetTitle (const vtkStdString &title)
 
virtual vtkStdString GetTitle ()
 
virtual vtkTextPropertyGetTitleProperties ()
 
void SetBottomBorder (int border)
 
void SetTopBorder (int border)
 
void SetLeftBorder (int border)
 
void SetRightBorder (int border)
 
virtual void SetLayoutStrategy (int)
 
virtual int GetLayoutStrategy ()
 
virtual void SetAutoSize (bool isAutoSized)
 
virtual bool GetAutoSize ()
 
virtual void SetRenderEmpty (bool)
 
virtual bool GetRenderEmpty ()
 
void SetBackgroundBrush (vtkBrush *brush)
 
vtkBrushGetBackgroundBrush ()
 
virtual void SetSelectionMode (int)
 
virtual int GetSelectionMode ()
 
virtual int GetSelectionMethod ()
 
virtual vtkAnnotationLinkGetAnnotationLink ()
 
virtual void SetGeometry (int, int)
 
void SetGeometry (int[2])
 
virtual intGetGeometry ()
 
virtual void GetGeometry (int &, int &)
 
virtual void GetGeometry (int[2])
 
virtual void SetPoint1 (int, int)
 
void SetPoint1 (int[2])
 
virtual intGetPoint1 ()
 
virtual void GetPoint1 (int &, int &)
 
virtual void GetPoint1 (int[2])
 
virtual void SetPoint2 (int, int)
 
void SetPoint2 (int[2])
 
virtual intGetPoint2 ()
 
virtual void GetPoint2 (int &, int &)
 
virtual void GetPoint2 (int[2])
 
virtual bool GetShowLegend ()
 
virtual void SetTitle (const vtkStdString &title)
 
virtual vtkStdString GetTitle ()
 
virtual vtkTextPropertyGetTitleProperties ()
 
void SetBottomBorder (int border)
 
void SetTopBorder (int border)
 
void SetLeftBorder (int border)
 
void SetRightBorder (int border)
 
virtual void SetLayoutStrategy (int)
 
virtual int GetLayoutStrategy ()
 
virtual void SetAutoSize (bool isAutoSized)
 
virtual bool GetAutoSize ()
 
virtual void SetRenderEmpty (bool)
 
virtual bool GetRenderEmpty ()
 
void SetBackgroundBrush (vtkBrush *brush)
 
vtkBrushGetBackgroundBrush ()
 
virtual void SetSelectionMode (int)
 
virtual int GetSelectionMode ()
 
- 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 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 KeyReleaseEvent (const vtkContextKeyEvent &key)
 
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 PrintSelf (ostream &os, vtkIndent indent) VTK_OVERRIDE
 
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 vtkTransferFunctionChartHistogram2DNew ()
 
static int IsTypeOf (const char *type)
 
static vtkTransferFunctionChartHistogram2DSafeDownCast (vtkObject *o)
 
- Static Public Member Functions inherited from vtkChartHistogram2D
static int IsTypeOf (const char *type)
 
static vtkChartHistogram2DSafeDownCast (vtkObjectBase *o)
 
static vtkChartHistogram2DNew ()
 
- Static Public Member Functions inherited from vtkChartXY
static int IsTypeOf (const char *type)
 
static vtkChartXYSafeDownCast (vtkObjectBase *o)
 
static vtkChartXYNew ()
 
- Static Public Member Functions inherited from vtkChart
static int IsTypeOf (const char *type)
 
static vtkChartSafeDownCast (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 Member Functions

 vtkTransferFunctionChartHistogram2D ()=default
 
 ~vtkTransferFunctionChartHistogram2D () override=default
 
void UpdateItemsBounds (double xMin, double xMax, double yMin, double yMax)
 Update individual item bounds based on the chart range. More...
 
virtual void GenerateTransfer2D ()
 Generate the 2D transfer function from the box items. More...
 
void OnTransferFunctionBoxItemModified (vtkObject *caller, unsigned long eid, void *callData)
 Callback listening to the SelectionChangedEvent of box items to indicate that the 2D transfer function was modified. More...
 
- Protected Member Functions inherited from vtkChartHistogram2D
virtual vtkObjectBaseNewInstanceInternal () const
 
 vtkChartHistogram2D ()
 
 ~vtkChartHistogram2D ()
 
virtual bool UpdateLayout (vtkContext2D *painter)
 
- Protected Member Functions inherited from vtkChartXY
 vtkChartXY ()
 
 ~vtkChartXY ()
 
void RecalculatePlotTransforms ()
 
void RecalculatePlotBounds ()
 
virtual int GetLegendBorder (vtkContext2D *painter, int axisPosition)
 
virtual void SetLegendPosition (const vtkRectf &rect)
 
- Protected Member Functions inherited from vtkChart
 vtkChart ()
 
 ~vtkChart ()
 
void AttachAxisRangeListener (vtkAxis *)
 
void AxisRangeForwarderCallback (vtkObject *, unsigned long, void *)
 
bool CalculatePlotTransform (vtkAxis *x, vtkAxis *y, vtkTransform2D *transform)
 
bool CalculateUnscaledPlotTransform (vtkAxis *x, vtkAxis *y, vtkTransform2D *transform)
 
bool CalculatePlotTransform (vtkAxis *x, vtkAxis *y, vtkTransform2D *transform)
 
bool CalculateUnscaledPlotTransform (vtkAxis *x, vtkAxis *y, vtkTransform2D *transform)
 
- 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 &)
 

Protected Attributes

vtkWeakPointer< vtkPVTransferFunction2DTransferFunction2D
 
vtkSmartPointer< vtkTransferFunctionBoxItemActiveBox
 
std::vector< intBoxesToRemove
 
- Protected Attributes inherited from vtkChartHistogram2D
vtkSmartPointer< vtkPlotHistogram2DHistogram
 
vtkTimeStamp BuildTime
 
Private * Storage
 
- Protected Attributes inherited from vtkChartXY
vtkSmartPointer< vtkChartLegendLegend
 
vtkSmartPointer< vtkTooltipItemTooltip
 
bool PlotTransformValid
 
vtkRectf MouseBox
 
bool DrawBox
 
vtkContextPolygon SelectionPolygon
 
bool DrawSelectionPolygon
 
bool DrawNearestPoint
 
bool DrawAxesAtOrigin
 
bool AutoAxes
 
int HiddenAxisBorder
 
float BarWidthFraction
 
bool LayoutChanged
 
bool ForceAxesToBounds
 
bool ZoomWithMouseWheel
 
bool AdjustLowerBoundForLogPlot
 
- Protected Attributes inherited from vtkChart
vtkAnnotationLinkAnnotationLink
 
int Geometry [2]
 
int Point1 [2]
 
int Point2 [2]
 
bool ShowLegend
 
vtkStdString Title
 
vtkTextPropertyTitleProperties
 
vtkRectf Size
 
int LayoutStrategy
 
bool RenderEmpty
 
vtkSmartPointer< vtkBrushBackgroundBrush
 
int SelectionMode
 
int SelectionMethod
 
MouseActions Actions
 
MouseClickActions ActionsClick
 
- 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
 

Additional Inherited Members

- Public Attributes inherited from vtkChart
 LINE
 
 POINTS
 
 BAR
 
 STACKED
 
 BAG
 
 FUNCTIONALBAG
 
 AREA
 
 PAN
 
 ZOOM
 
 ZOOM_AXIS
 
 SELECT
 
 SELECT_RECTANGLE
 
 SELECT_POLYGON
 
 NOTIFY
 
 UpdateRange
 
 SELECTION_ROWS
 
 SELECTION_PLOTS
 
 SELECTION_COLUMNS
 
 FILL_SCENE
 
 FILL_RECT
 
 AXES_TO_RECT
 

Detailed Description

Definition at line 20 of file vtkTransferFunctionChartHistogram2D.h.

Member Typedef Documentation

◆ Superclass

Definition at line 24 of file vtkTransferFunctionChartHistogram2D.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
TransferFunctionModified 

Definition at line 28 of file vtkTransferFunctionChartHistogram2D.h.

Constructor & Destructor Documentation

◆ vtkTransferFunctionChartHistogram2D()

vtkTransferFunctionChartHistogram2D::vtkTransferFunctionChartHistogram2D ( )
protecteddefault

◆ ~vtkTransferFunctionChartHistogram2D()

vtkTransferFunctionChartHistogram2D::~vtkTransferFunctionChartHistogram2D ( )
overrideprotecteddefault

Member Function Documentation

◆ New()

static vtkTransferFunctionChartHistogram2D* vtkTransferFunctionChartHistogram2D::New ( )
static

◆ GetClassName()

virtual const char* vtkTransferFunctionChartHistogram2D::GetClassName ( )
virtual

◆ IsTypeOf()

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

◆ IsA()

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

Reimplemented from vtkChartHistogram2D.

◆ SafeDownCast()

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

◆ IsInitialized()

bool vtkTransferFunctionChartHistogram2D::IsInitialized ( )

Get whether the chart has been initialized with a histogram.

◆ AddNewBox() [1/2]

vtkSmartPointer<vtkTransferFunctionBoxItem> vtkTransferFunctionChartHistogram2D::AddNewBox ( )

Add a new box item to the chart.

If addToTF2D is set to true (default), the box is also added to the client transfer function. This flag is set to false when adding box items corresponding to the boxes already existing in the transfer function.

◆ AddNewBox() [2/2]

vtkSmartPointer<vtkTransferFunctionBoxItem> vtkTransferFunctionChartHistogram2D::AddNewBox ( const vtkRectd r,
double color,
double  alpha,
bool  addToTF2D = true 
)

Add a new box item to the chart.

If addToTF2D is set to true (default), the box is also added to the client transfer function. This flag is set to false when adding box items corresponding to the boxes already existing in the transfer function.

◆ AddBox()

void vtkTransferFunctionChartHistogram2D::AddBox ( vtkSmartPointer< vtkTransferFunctionBoxItem box,
bool  addToTF2D = true 
)

Add a new box item to the chart.

If addToTF2D is set to true (default), the box is also added to the client transfer function. This flag is set to false when adding box items corresponding to the boxes already existing in the transfer function.

◆ RemoveBox()

virtual void vtkTransferFunctionChartHistogram2D::RemoveBox ( vtkSmartPointer< vtkTransferFunctionBoxItem box)
virtual

Remove box item from the chart.

◆ MouseDoubleClickEvent()

bool vtkTransferFunctionChartHistogram2D::MouseDoubleClickEvent ( const vtkContextMouseEvent mouse)
overridevirtual

Override to add new box item to the chart when double clicked.

Reimplemented from vtkAbstractContextItem.

◆ KeyPressEvent()

bool vtkTransferFunctionChartHistogram2D::KeyPressEvent ( const vtkContextKeyEvent key)
overridevirtual

Override to delete the active box item.

Reimplemented from vtkChartXY.

◆ SetInputData()

void vtkTransferFunctionChartHistogram2D::SetInputData ( vtkImageData ,
vtkIdType  z = 0 
)
overridevirtual

Set the input image data for the 2D histogram.

Reimplemented from vtkChartHistogram2D.

◆ SetTransferFunction2D()

virtual void vtkTransferFunctionChartHistogram2D::SetTransferFunction2D ( vtkPVTransferFunction2D transfer2D)
virtual

Set/Get the 2D transfer function.

◆ GetTransferFunction2D()

virtual vtkPVTransferFunction2D* vtkTransferFunctionChartHistogram2D::GetTransferFunction2D ( )
virtual

Set/Get the 2D transfer function.

◆ GetActiveBox()

vtkSmartPointer<vtkTransferFunctionBoxItem> vtkTransferFunctionChartHistogram2D::GetActiveBox ( ) const

Set/Get the actively selected box.

◆ SetActiveBox()

void vtkTransferFunctionChartHistogram2D::SetActiveBox ( vtkSmartPointer< vtkTransferFunctionBoxItem box)

Set/Get the actively selected box.

◆ SetActiveBoxColorAlpha() [1/2]

void vtkTransferFunctionChartHistogram2D::SetActiveBoxColorAlpha ( double  r,
double  g,
double  b,
double  a 
)

Set active box color and alpha.

◆ SetActiveBoxColorAlpha() [2/2]

void vtkTransferFunctionChartHistogram2D::SetActiveBoxColorAlpha ( double  color[3],
double  alpha 
)

Set active box color and alpha.

◆ Paint()

bool vtkTransferFunctionChartHistogram2D::Paint ( vtkContext2D painter)
overridevirtual

Paint event for the chart, called whenever the chart needs to be drawn.

Reimplemented from vtkChartXY.

◆ UpdateItemsBounds()

void vtkTransferFunctionChartHistogram2D::UpdateItemsBounds ( double  xMin,
double  xMax,
double  yMin,
double  yMax 
)
protected

Update individual item bounds based on the chart range.

◆ GenerateTransfer2D()

virtual void vtkTransferFunctionChartHistogram2D::GenerateTransfer2D ( )
protectedvirtual

Generate the 2D transfer function from the box items.

◆ OnTransferFunctionBoxItemModified()

void vtkTransferFunctionChartHistogram2D::OnTransferFunctionBoxItemModified ( vtkObject caller,
unsigned long  eid,
void *  callData 
)
protected

Callback listening to the SelectionChangedEvent of box items to indicate that the 2D transfer function was modified.

Member Data Documentation

◆ TransferFunction2D

vtkWeakPointer<vtkPVTransferFunction2D> vtkTransferFunctionChartHistogram2D::TransferFunction2D
protected

Definition at line 121 of file vtkTransferFunctionChartHistogram2D.h.

◆ ActiveBox

vtkSmartPointer<vtkTransferFunctionBoxItem> vtkTransferFunctionChartHistogram2D::ActiveBox
protected

Definition at line 122 of file vtkTransferFunctionChartHistogram2D.h.

◆ BoxesToRemove

std::vector<int> vtkTransferFunctionChartHistogram2D::BoxesToRemove
protected

Definition at line 123 of file vtkTransferFunctionChartHistogram2D.h.


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