vtkPlotBar Class Reference

#include <vtkPlotBar.h>

Inheritance diagram for vtkPlotBar:

Inheritance graph
[legend]
Collaboration diagram for vtkPlotBar:

Collaboration graph
[legend]

List of all members.


Detailed Description

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

Definition at line 34 of file vtkPlotBar.h.


Public Types

typedef vtkPlot Superclass

Public Member Functions

virtual const char * GetClassName ()
virtual int IsA (const char *type)
virtual void PrintSelf (ostream &os, vtkIndent indent)
virtual bool Paint (vtkContext2D *painter)
virtual bool PaintLegend (vtkContext2D *painter, float rect[4])
virtual void SetWidth (float width)
virtual float GetWidth ()
virtual void SetOffset (float)
virtual float GetOffset ()
virtual void GetBounds (double bounds[4])
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])
virtual bool GetNearestPoint (const vtkVector2f &point, const vtkVector2f &tolerance, vtkVector2f *location)

Static Public Member Functions

static int IsTypeOf (const char *type)
static vtkPlotBarSafeDownCast (vtkObject *o)
static vtkPlotBarNew ()

Protected Member Functions

 vtkPlotBar ()
 ~vtkPlotBar ()
bool UpdateTableCache (vtkTable *table)

Protected Attributes

vtkPoints2DPoints
bool Sorted
float Width
float Offset
vtkTimeStamp BuildTime

Member Typedef Documentation

Reimplemented from vtkPlot.

Definition at line 37 of file vtkPlotBar.h.


Constructor & Destructor Documentation

vtkPlotBar::vtkPlotBar (  )  [protected]

vtkPlotBar::~vtkPlotBar (  )  [protected]


Member Function Documentation

virtual const char* vtkPlotBar::GetClassName (  )  [virtual]

Reimplemented from vtkPlot.

static int vtkPlotBar::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 vtkPlotBar::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.

static vtkPlotBar* vtkPlotBar::SafeDownCast ( vtkObject o  )  [static]

Reimplemented from vtkPlot.

virtual void vtkPlotBar::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.

static vtkPlotBar* vtkPlotBar::New (  )  [static]

Creates a 2D Chart object.

Reimplemented from vtkObject.

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

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

Implements vtkContextItem.

virtual bool vtkPlotBar::PaintLegend ( vtkContext2D painter,
float  rect[4] 
) [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 vtkPlot.

virtual void vtkPlotBar::SetColor ( unsigned char  r,
unsigned char  g,
unsigned char  b,
unsigned char  a 
) [virtual]

Set the plot color

Reimplemented from vtkPlot.

virtual void vtkPlotBar::SetColor ( double  r,
double  g,
double  b 
) [virtual]

Set the plot color

Reimplemented from vtkPlot.

virtual void vtkPlotBar::GetColor ( double  rgb[3]  )  [virtual]

Set the plot color

Reimplemented from vtkPlot.

virtual void vtkPlotBar::SetWidth ( float  width  )  [virtual]

Set the width of the line.

Reimplemented from vtkPlot.

virtual float vtkPlotBar::GetWidth (  )  [virtual]

Get the width of the line.

Reimplemented from vtkPlot.

virtual void vtkPlotBar::SetOffset ( float   )  [virtual]

virtual float vtkPlotBar::GetOffset (  )  [virtual]

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

Get the bounds for this mapper as (Xmin,Xmax,Ymin,Ymax,Zmin,Zmax).

Reimplemented from vtkPlot.

virtual bool vtkPlotBar::GetNearestPoint ( const vtkVector2f point,
const vtkVector2f tolerance,
vtkVector2f location 
) [virtual]

Function to query a plot for the nearest point to the specified coordinate.

Reimplemented from vtkPlot.

bool vtkPlotBar::UpdateTableCache ( vtkTable table  )  [protected]

Update the table cache.


Member Data Documentation

Store a well packed set of XY coordinates for this data series.

Definition at line 93 of file vtkPlotBar.h.

bool vtkPlotBar::Sorted [protected]

Definition at line 95 of file vtkPlotBar.h.

float vtkPlotBar::Width [protected]

Definition at line 97 of file vtkPlotBar.h.

float vtkPlotBar::Offset [protected]

Definition at line 98 of file vtkPlotBar.h.

The point cache is marked dirty until it has been initialized.

Definition at line 101 of file vtkPlotBar.h.


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

Generated on Mon Sep 27 18:41:04 2010 for VTK by  doxygen 1.5.6