VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
vtkPlotFunctionalBag Class Reference

Class for drawing an XY line plot or bag given two columns from a vtkTable. More...

#include <vtkPlotFunctionalBag.h>

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

List of all members.

Public Types

typedef vtkPlot Superclass

Public Member Functions

virtual int IsA (const char *type)
vtkPlotFunctionalBagNewInstance () const
virtual void PrintSelf (ostream &os, vtkIndent indent)
virtual bool IsBag ()
virtual bool GetVisible ()
virtual void Update ()
virtual bool Paint (vtkContext2D *painter)
virtual void GetBounds (double bounds[4])
virtual void GetUnscaledInputBounds (double bounds[4])
virtual void CreateDefaultLookupTable ()
virtual bool SelectPoints (const vtkVector2f &min, const vtkVector2f &max)
virtual bool PaintLegend (vtkContext2D *painter, const vtkRectf &rect, int legendIndex)
void SetLookupTable (vtkScalarsToColors *lut)
vtkScalarsToColorsGetLookupTable ()
virtual vtkIdType GetNearestPoint (const vtkVector2f &point, const vtkVector2f &tolerance, vtkVector2f *location)

Static Public Member Functions

static int IsTypeOf (const char *type)
static vtkPlotFunctionalBagSafeDownCast (vtkObjectBase *o)
static vtkPlotFunctionalBagNew ()

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
bool GetDataArrays (vtkTable *table, vtkDataArray *array[2])
bool UpdateTableCache (vtkTable *)

Protected Attributes

vtkTimeStamp BuildTime
vtkScalarsToColorsLookupTable
vtkNew< vtkPlotLineLine
vtkNew< vtkPoints2DBagPoints
bool LogX
bool LogY
virtual bool SelectPointsInPolygon (const vtkContextPolygon &polygon)
 vtkPlotFunctionalBag ()
 ~vtkPlotFunctionalBag ()

Detailed Description

Class for drawing an XY line plot or bag given two columns from a vtkTable.

Depending on the number of components, this class will draw either a line plot (for 1 component column) or, for two components columns, a filled polygonal band (the bag) going from the first to the second component on the Y-axis along the X-axis. The filter vtkExtractFunctionalBagPlot is intended to create such "bag" columns.

See also:
vtkExtractFunctionalBagPlot
Tests:
vtkPlotFunctionalBag (Tests)

Definition at line 47 of file vtkPlotFunctionalBag.h.


Member Typedef Documentation

Reimplemented from vtkPlot.

Definition at line 50 of file vtkPlotFunctionalBag.h.


Constructor & Destructor Documentation

Select all points in the specified polygon.

Select all points in the specified polygon.


Member Function Documentation

static int vtkPlotFunctionalBag::IsTypeOf ( const char *  name) [static]

Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkPlot.

virtual int vtkPlotFunctionalBag::IsA ( const char *  name) [virtual]

Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkPlot.

Reimplemented from vtkPlot.

virtual vtkObjectBase* vtkPlotFunctionalBag::NewInstanceInternal ( ) const [protected, virtual]

Reimplemented from vtkPlot.

Reimplemented from vtkPlot.

virtual void vtkPlotFunctionalBag::PrintSelf ( ostream &  os,
vtkIndent  indent 
) [virtual]

Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.

Reimplemented from vtkPlot.

Creates a functional bag plot object.

Reimplemented from vtkObject.

virtual bool vtkPlotFunctionalBag::IsBag ( ) [virtual]

Returns true if the plot is a functional bag, false if it is a simple line.

virtual bool vtkPlotFunctionalBag::GetVisible ( ) [virtual]

Reimplemented to enforce visibility when selected.

Reimplemented from vtkAbstractContextItem.

virtual void vtkPlotFunctionalBag::Update ( ) [virtual]

Perform any updates to the item that may be necessary before rendering. The scene should take care of calling this on all items before their Paint function is invoked.

Reimplemented from vtkAbstractContextItem.

virtual bool vtkPlotFunctionalBag::Paint ( vtkContext2D painter) [virtual]

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

Reimplemented from vtkAbstractContextItem.

virtual bool vtkPlotFunctionalBag::PaintLegend ( vtkContext2D painter,
const vtkRectf rect,
int  legendIndex 
) [virtual]

Paint legend event for the plot, called whenever the legend needs the plot items symbol/mark/line drawn. A rect is supplied with the lower left corner of the rect (elements 0 and 1) and with width x height (elements 2 and 3). The plot can choose how to fill the space supplied.

Reimplemented from vtkPlot.

virtual void vtkPlotFunctionalBag::GetBounds ( double  bounds[4]) [virtual]

Get the bounds for this plot as (Xmin, Xmax, Ymin, Ymax).

Reimplemented from vtkPlot.

virtual void vtkPlotFunctionalBag::GetUnscaledInputBounds ( double  bounds[4]) [virtual]

Get the non-log-scaled bounds on chart inputs for this plot as (Xmin, Xmax, Ymin, Ymax).

Reimplemented from vtkPlot.

Specify a lookup table for the mapper to use.

Specify a lookup table for the mapper to use.

Create default lookup table. Generally used to create one when none is available with the scalar data.

virtual vtkIdType vtkPlotFunctionalBag::GetNearestPoint ( const vtkVector2f point,
const vtkVector2f tolerance,
vtkVector2f location 
) [virtual]

Function to query a plot for the nearest point to the specified coordinate. Returns the index of the data series with which the point is associated or -1.

Reimplemented from vtkPlot.

virtual bool vtkPlotFunctionalBag::SelectPoints ( const vtkVector2f min,
const vtkVector2f max 
) [virtual]

Select all points in the specified rectangle.

Reimplemented from vtkPlot.

virtual bool vtkPlotFunctionalBag::SelectPointsInPolygon ( const vtkContextPolygon polygon) [virtual]

Select all points in the specified polygon.

Reimplemented from vtkPlot.

bool vtkPlotFunctionalBag::GetDataArrays ( vtkTable table,
vtkDataArray array[2] 
) [protected]

Populate the data arrays ready to operate on input data.

Update the table cache.


Member Data Documentation

The cache is marked dirty until it has been initialized.

Definition at line 127 of file vtkPlotFunctionalBag.h.

Lookup Table for coloring points by scalar value

Definition at line 130 of file vtkPlotFunctionalBag.h.

The plot line delegate for line series

Definition at line 133 of file vtkPlotFunctionalBag.h.

The bag points ordered in quadstrip fashion

Definition at line 136 of file vtkPlotFunctionalBag.h.

bool vtkPlotFunctionalBag::LogX [protected]

Definition at line 138 of file vtkPlotFunctionalBag.h.

bool vtkPlotFunctionalBag::LogY [protected]

Definition at line 138 of file vtkPlotFunctionalBag.h.


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