QBarDataItem Class

The QBarDataItem class provides a container for resolved data to be added to bar graphs. 更多...

头文件: #include <QBarDataItem>
开始支持版本: QtDataVisualization 1.0

公有函数

QBarDataItem()
QBarDataItem(float value)
QBarDataItem(float value, float angle)
QBarDataItem(const QBarDataItem &other)
~QBarDataItem()
float rotation() const
void setRotation(float angle)
void setValue(float val)
float value() const
QBarDataItem &operator=(const QBarDataItem &other)

详细描述

The QBarDataItem class provides a container for resolved data to be added to bar graphs.

A bar data item holds the data for a single rendered bar in a graph. Bar data proxies parse data into QBarDataItem instances for visualization.

参见 QBarDataProxy and Qt Data Visualization C++ Classes.

成员函数

QBarDataItem::QBarDataItem()

Constructs a bar data item.

QBarDataItem::QBarDataItem(float value)

Constructs a bar data item with the value value.

QBarDataItem::QBarDataItem(float value, float angle)

Constructs a bar data item with the value value and angle angle.

QBarDataItem::QBarDataItem(const QBarDataItem &other)

Constructs a copy of other.

QBarDataItem::~QBarDataItem()

Deletes a bar data item.

float QBarDataItem::rotation() const

Returns the rotation angle in degrees for this data item.

参见 setRotation().

void QBarDataItem::setRotation(float angle)

Sets the rotation angle angle in degrees for this data item.

参见 rotation().

void QBarDataItem::setValue(float val)

Sets the value val to this data item.

参见 value().

float QBarDataItem::value() const

Returns the value of this data item.

参见 setValue().

QBarDataItem &QBarDataItem::operator=(const QBarDataItem &other)

Assigns a copy of other to this object.