VTK
Public Member Functions
vtkQtChartBar Class Reference

The vtkQtChartBar class defines a bar used by the chart bar locator. More...

#include <vtkQtChartBar.h>

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

List of all members.

Public Member Functions

 vtkQtChartBar ()
 vtkQtChartBar (int series, int index)
 Constructs a chart bar shape.
 vtkQtChartBar (const vtkQtChartBar &other)
virtual ~vtkQtChartBar ()
vtkQtChartBaroperator= (const vtkQtChartBar &other)
virtual void getBounds (QRectF &bounds) const
 Gets the bounding box for the shape.
virtual bool contains (const QPointF &point) const
 Gets whether or not the shape contains the given point.
virtual bool intersects (const QRectF &area) const
 Gets whether or not the shape intersects the given area.
virtual void setRectangle (const QRectF &rectangle)
 Sets the bar shape.
QRectF & getBar ()
 Gets the bar shape.
const QRectF & getBar () const
 Gets the bar shape.
void setBar (const QRectF &bar)
 Sets the bar shape.
- Public Member Functions inherited from vtkQtChartShape
 vtkQtChartShape ()
 vtkQtChartShape (int series, int index)
 Constructs a chart shape.
 vtkQtChartShape (const vtkQtChartShape &other)
virtual ~vtkQtChartShape ()
vtkQtChartShapeoperator= (const vtkQtChartShape &other)
virtual void setPolygon (const QPolygonF &polygon)
 Sets the shape for polygonal types.
int getSeries () const
 Gets the series number.
void setSeries (int series)
 Sets the series number.
int getIndex () const
 Gets the index in the series.
void setIndex (int index)
 Sets the index in the series.

Additional Inherited Members

- Public Types inherited from vtkQtChartShape
enum  BoundingBoxCode { Left = 0x01000000, Top = 0x00010000, Right = 0x00000100, Bottom = 0x00000001 }
- Static Public Member Functions inherited from vtkQtChartShape
static int getBoundingBoxCode (const QPointF &point, const QRectF &bounds)
 Gets the bounding box code for the given point and rectangle.
static int getXBoundingBoxCode (float x, const QRectF &bounds)
 Gets the bounding box code for the given coordinate and rectangle.
static int getYBoundingBoxCode (float y, const QRectF &bounds)
 Gets the bounding box code for the given coordinate and rectangle.

Detailed Description

The vtkQtChartBar class defines a bar used by the chart bar locator.

Definition at line 35 of file vtkQtChartBar.h.


Constructor & Destructor Documentation

vtkQtChartBar::vtkQtChartBar ( )
vtkQtChartBar::vtkQtChartBar ( int  series,
int  index 
)

Constructs a chart bar shape.

Parameters:
seriesThe series index.
indexThe index in the given series.
vtkQtChartBar::vtkQtChartBar ( const vtkQtChartBar other)
virtual vtkQtChartBar::~vtkQtChartBar ( )
virtual

Member Function Documentation

vtkQtChartBar& vtkQtChartBar::operator= ( const vtkQtChartBar other)
virtual void vtkQtChartBar::getBounds ( QRectF &  bounds) const
virtual

Gets the bounding box for the shape.

Parameters:
boundsUsed to return the bounding box.

Implements vtkQtChartShape.

virtual bool vtkQtChartBar::contains ( const QPointF &  point) const
virtual

Gets whether or not the shape contains the given point.

Parameters:
pointThe position to evaluate.
Returns:
True if the shape contains the given point.

Implements vtkQtChartShape.

virtual bool vtkQtChartBar::intersects ( const QRectF &  area) const
virtual

Gets whether or not the shape intersects the given area.

Parameters:
areaThe area to evaluate.
Returns:
True if the shape intersects the given area.

Implements vtkQtChartShape.

virtual void vtkQtChartBar::setRectangle ( const QRectF &  rectangle)
inlinevirtual

Sets the bar shape.

Parameters:
rectangleThe new bar shape.

Reimplemented from vtkQtChartShape.

Definition at line 57 of file vtkQtChartBar.h.

QRectF& vtkQtChartBar::getBar ( )
inline

Gets the bar shape.

Returns:
The bar rectangle.

Definition at line 63 of file vtkQtChartBar.h.

const QRectF& vtkQtChartBar::getBar ( ) const
inline

Gets the bar shape.

Returns:
The bar rectangle.

Definition at line 69 of file vtkQtChartBar.h.

void vtkQtChartBar::setBar ( const QRectF &  bar)

Sets the bar shape.

Parameters:
barThe new bar rectangle.

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