VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
vtkPlotLine Class Reference

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

#include <vtkPlotLine.h>

Inheritance diagram for vtkPlotLine:
[legend]
Collaboration diagram for vtkPlotLine:
[legend]

Public Types

typedef vtkPlotPoints Superclass
 
- Public Types inherited from vtkPlotPoints
typedef vtkPlot Superclass
 
enum  {
  NONE = VTK_MARKER_NONE, CROSS = VTK_MARKER_CROSS, PLUS = VTK_MARKER_PLUS, SQUARE = VTK_MARKER_SQUARE,
  CIRCLE = VTK_MARKER_CIRCLE, DIAMOND = VTK_MARKER_DIAMOND
}
 
- Public Types inherited from vtkPlot
typedef vtkContextItem Superclass
 

Public Member Functions

virtual int IsA (const char *type)
 
vtkPlotLineNewInstance () const
 
virtual void PrintSelf (ostream &os, vtkIndent indent)
 
virtual bool Paint (vtkContext2D *painter)
 
virtual bool PaintLegend (vtkContext2D *painter, const vtkRectf &rect, int legendIndex)
 
- Public Member Functions inherited from vtkPlotPoints
vtkPlotPointsNewInstance () const
 
virtual void Update ()
 
virtual void GetBounds (double bounds[4])
 
virtual void GetUnscaledInputBounds (double bounds[4])
 
virtual void CreateDefaultLookupTable ()
 
vtkStdString GetColorArrayName ()
 
virtual bool SelectPoints (const vtkVector2f &min, const vtkVector2f &max)
 
virtual bool SelectPointsInPolygon (const vtkContextPolygon &polygon)
 
void SetLookupTable (vtkScalarsToColors *lut)
 
vtkScalarsToColorsGetLookupTable ()
 
virtual void SetScalarVisibility (int)
 
virtual int GetScalarVisibility ()
 
virtual void ScalarVisibilityOn ()
 
virtual void ScalarVisibilityOff ()
 
void SelectColorArray (vtkIdType arrayNum)
 
void SelectColorArray (const vtkStdString &arrayName)
 
virtual vtkIdType GetNearestPoint (const vtkVector2f &point, const vtkVector2f &tolerance, vtkVector2f *location)
 
virtual int GetMarkerStyle ()
 
virtual void SetMarkerStyle (int)
 
virtual float GetMarkerSize ()
 
virtual void SetMarkerSize (float)
 
virtual vtkStdString GetValidPointMaskName ()
 
virtual void SetValidPointMaskName (vtkStdString)
 
- Public Member Functions inherited from vtkPlot
vtkPlotNewInstance () const
 
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 ()
 
vtkContextMapper2D * GetData ()
 
virtual vtkTable * GetInput ()
 
virtual void SetInputArray (int index, const vtkStdString &name)
 
virtual void SetSelection (vtkIdTypeArray *id)
 
virtual vtkIdTypeArrayGetSelection ()
 
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 vtkVector2f &plotPos, vtkIdType seriesIndex, vtkIdType segmentIndex)
 
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)
 
vtkPen * GetPen ()
 
void SetBrush (vtkBrush *brush)
 
vtkBrush * GetBrush ()
 
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 vtkAxisGetXAxis ()
 
virtual void SetXAxis (vtkAxis *axis)
 
virtual vtkAxisGetYAxis ()
 
virtual void SetYAxis (vtkAxis *axis)
 
virtual void SetProperty (const vtkStdString &property, const vtkVariant &var)
 
virtual vtkVariant GetProperty (const vtkStdString &property)
 

Static Public Member Functions

static int IsTypeOf (const char *type)
 
static vtkPlotLineSafeDownCast (vtkObjectBase *o)
 
static vtkPlotLineNew ()
 
- Static Public Member Functions inherited from vtkPlotPoints
static int IsTypeOf (const char *type)
 
static vtkPlotPointsSafeDownCast (vtkObjectBase *o)
 
static vtkPlotPointsNew ()
 
- Static Public Member Functions inherited from vtkPlot
static int IsTypeOf (const char *type)
 
static vtkPlotSafeDownCast (vtkObjectBase *o)
 

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 
 vtkPlotLine ()
 
 ~vtkPlotLine ()
 
- Protected Member Functions inherited from vtkPlotPoints
 vtkPlotPoints ()
 
 ~vtkPlotPoints ()
 
bool UpdateTableCache (vtkTable *table)
 
void CalculateLogSeries ()
 
void FindBadPoints ()
 
void CalculateBounds (double bounds[4])
 
void CreateSortedPoints ()
 
- Protected Member Functions inherited from vtkPlot
 vtkPlot ()
 
 ~vtkPlot ()
 
vtkStdString GetNumber (double position, vtkAxis *axis)
 

Additional Inherited Members

- Protected Attributes inherited from vtkPlotPoints
vtkIdTypeArrayBadPoints
 
vtkCharArrayValidPointMask
 
vtkStdString ValidPointMaskName
 
vtkTimeStamp BuildTime
 
bool LogX
 
bool LogY
 
double UnscaledInputBounds [4]
 
vtkPoints2DPoints
 
vtkNew< vtkFloatArraySelectedPoints
 
VectorPIMPL * Sorted
 
int MarkerStyle
 
float MarkerSize
 
vtkScalarsToColorsLookupTable
 
vtkUnsignedCharArrayColors
 
int ScalarVisibility
 
vtkStdString ColorArrayName
 
- Protected Attributes inherited from vtkPlot
vtkSmartPointer< vtkPen > Pen
 
vtkSmartPointer< vtkBrush > Brush
 
vtkSmartPointer< vtkStringArrayLabels
 
vtkSmartPointer< vtkStringArrayAutoLabels
 
vtkSmartPointer< vtkStringArrayIndexedLabels
 
bool UseIndexForXSeries
 
vtkSmartPointer
< vtkContextMapper2D > 
Data
 
vtkIdTypeArraySelection
 
vtkAxisXAxis
 
vtkAxisYAxis
 
vtkStdString TooltipLabelFormat
 
vtkStdString TooltipDefaultLabelFormat
 
int TooltipNotation
 
int TooltipPrecision
 

Detailed Description

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

Definition at line 30 of file vtkPlotLine.h.

Member Typedef Documentation

Definition at line 33 of file vtkPlotLine.h.

Constructor & Destructor Documentation

vtkPlotLine::vtkPlotLine ( )
protected
vtkPlotLine::~vtkPlotLine ( )
protected

Member Function Documentation

static int vtkPlotLine::IsTypeOf ( const char *  type)
static
virtual int vtkPlotLine::IsA ( const char *  type)
virtual

Reimplemented from vtkPlotPoints.

static vtkPlotLine* vtkPlotLine::SafeDownCast ( vtkObjectBase o)
static
virtual vtkObjectBase* vtkPlotLine::NewInstanceInternal ( ) const
protectedvirtual

Reimplemented from vtkPlotPoints.

vtkPlotLine* vtkPlotLine::NewInstance ( ) const
virtual void vtkPlotLine::PrintSelf ( ostream &  os,
vtkIndent  indent 
)
virtual

Reimplemented from vtkPlotPoints.

static vtkPlotLine* vtkPlotLine::New ( )
static

Creates a 2D Chart object.

virtual bool vtkPlotLine::Paint ( vtkContext2D *  painter)
virtual

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

Reimplemented from vtkPlotPoints.

virtual bool vtkPlotLine::PaintLegend ( vtkContext2D *  painter,
const vtkRectf &  rect,
int  legendIndex 
)
virtual

Paint legend event for the XY 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 vtkPlotPoints.


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