VTK
Public Member Functions
vtkQtChartQuad Class Reference

The vtkQtChartQuad class defines a quad used by the chart shape locator. More...

#include <vtkQtChartQuad.h>

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

List of all members.

Public Member Functions

 vtkQtChartQuad ()
 vtkQtChartQuad (int series, int index)
 Creates a quad instance.
 vtkQtChartQuad (const vtkQtChartQuad &other)
virtual ~vtkQtChartQuad ()
vtkQtChartQuadoperator= (const vtkQtChartQuad &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 setPolygon (const QPolygonF &polygon)
 Sets the quad shape.
const QPolygonF & getPoints () const
 Gets the list of quad points.
void setPoints (const QPolygonF &points)
 Sets the quad shape.
void setPoint (int index, const QPointF &point)
 Sets the point for the given index.
- 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 setRectangle (const QRectF &rectangle)
 Sets the shape for rectangular 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 vtkQtChartQuad class defines a quad used by the chart shape locator.

Definition at line 37 of file vtkQtChartQuad.h.


Constructor & Destructor Documentation

vtkQtChartQuad::vtkQtChartQuad ( )
vtkQtChartQuad::vtkQtChartQuad ( int  series,
int  index 
)

Creates a quad instance.

Parameters:
seriesThe chart series.
indexThe chart series index.
vtkQtChartQuad::vtkQtChartQuad ( const vtkQtChartQuad other)
virtual vtkQtChartQuad::~vtkQtChartQuad ( )
virtual

Member Function Documentation

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

Gets the bounding box for the shape.

Parameters:
boundsUsed to return the bounding box.

Implements vtkQtChartShape.

virtual bool vtkQtChartQuad::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 vtkQtChartQuad::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 vtkQtChartQuad::setPolygon ( const QPolygonF &  polygon)
inlinevirtual

Sets the quad shape.

The polygon should be a list of four points. The points should form a convex, clock-wise loop.

Parameters:
polygonThe list of points to define the quad.

Reimplemented from vtkQtChartShape.

Definition at line 63 of file vtkQtChartQuad.h.

const QPolygonF& vtkQtChartQuad::getPoints ( ) const

Gets the list of quad points.

Returns:
The list of quad points.
void vtkQtChartQuad::setPoints ( const QPolygonF &  points)

Sets the quad shape.

Parameters:
pointsThe list of points to define the quad.
void vtkQtChartQuad::setPoint ( int  index,
const QPointF &  point 
)

Sets the point for the given index.

Parameters:
indexThe index of the quad point.
pointThe new point.

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