A class that represents a chart slice in a LayerItemModel.
More...
#include <ChartSliceItem.h>
A class that represents a chart slice in a LayerItemModel.
- Note
- The type of the item is "CHARTSLICE".
Definition at line 48 of file ChartSliceItem.h.
te::qt::widgets::ChartSliceItem::ChartSliceItem |
( |
const QString & |
propertyName, |
|
|
const QColor & |
color, |
|
|
const QColor & |
contourColor, |
|
|
const int & |
contourWidth |
|
) |
| |
Constructor.
- Parameters
-
propertyName | Name of the property(to present as the label of the item). |
color | Fill color. |
contourColor | Contour color. |
contourWidth | Contour width. |
te::qt::widgets::ChartSliceItem::~ChartSliceItem |
( |
| ) |
|
void te::qt::widgets::TreeItem::addChild |
( |
TreeItem * |
item | ) |
|
|
inherited |
Adds a child to the item. The child is added to the end of the list.
- Parameters
-
item | The child to be inserted. |
Qt::ItemFlags te::qt::widgets::ChartSliceItem::flags |
( |
| ) |
|
|
virtual |
Returns the flags to be used by the model.
- Returns
- Qt flags. By default itens are enabled, editable and selectable. If you want to change the flags reimplement this method in a subclass.
Reimplemented from te::qt::widgets::TreeItem.
std::string te::qt::widgets::ChartSliceItem::getAsString |
( |
| ) |
const |
|
virtual |
Returns the label of the item to be presented in a Qt view.
- Returns
- The item label, to be presented in a Qt view.
Implements te::qt::widgets::TreeItem.
Returns the child located at pos.
- Parameters
-
pos | The position of the desired child at the children list. |
- Returns
- The child item located at pos.
- Exceptions
-
void te::qt::widgets::TreeItem::getChildren |
( |
std::vector< TreeItem * > & |
items, |
|
|
const std::string & |
type |
|
) |
| const |
|
inherited |
Returns all children of a certain type.
- Parameters
-
[out] | items | The set of items founded. |
| type | The type of items that we are searching for. |
size_t te::qt::widgets::TreeItem::getChildrenCount |
( |
const std::string & |
type | ) |
const |
|
inherited |
Returns the number of children.
The type, defines the type of children we want to considere in the operation. If an empty string is given as argument, all kinds of children will be considered.
- Parameters
-
type | The type of children we want to calculate the number. |
- Returns
- Number of children of type type.
QIcon te::qt::widgets::ChartSliceItem::getIcon |
( |
| ) |
const |
Returns the icon to be presented in the tree.
- Returns
- Icon to be presented.
TreeItem* te::qt::widgets::TreeItem::getParent |
( |
| ) |
const |
|
inherited |
Returns the item parent.
- Returns
- A pointer to the parent.
int te::qt::widgets::TreeItem::getPosition |
( |
| ) |
|
|
inherited |
Returns the position of item in its parent's list of children.
- Returns
- The position of item in its parent's list of children.
virtual std::string te::qt::widgets::TreeItem::getToolTip |
( |
| ) |
const |
|
virtualinherited |
std::string te::qt::widgets::TreeItem::getType |
( |
| ) |
const |
|
inherited |
Returns the type of the item.
- Returns
- Type of the item.
bool te::qt::widgets::TreeItem::hasChildren |
( |
| ) |
const |
|
inherited |
Tells us if the item has children or not.
- Returns
- True if children list is not empty and false otherwise.
Inserts a child item at the desired position.
- Parameters
-
item | The child to be inserted. |
pos | The position of the child in the children list. |
- Exceptions
-
virtual VISIBLE te::qt::widgets::TreeItem::isVisible |
( |
| ) |
const |
|
virtualinherited |
void te::qt::widgets::TreeItem::removeAllChilds |
( |
| ) |
|
|
inherited |
Removes the child located at pos from the children list.
- Parameters
-
pos | The position of the desired child at the children list. |
- Returns
- The removed item.
- Exceptions
-
void te::qt::widgets::TreeItem::setParent |
( |
TreeItem * |
item | ) |
|
|
inherited |
Updates the item parent.
- Parameters
-
virtual void te::qt::widgets::TreeItem::setVisible |
( |
const VISIBLE & |
visible, |
|
|
const bool & |
updateAncestors = false , |
|
|
const bool & |
updateDescendents = false |
|
) |
| |
|
virtualinherited |
std::auto_ptr<Queue> te::qt::widgets::TreeItem::m_children |
|
protectedinherited |
Queue of items (children).
Definition at line 237 of file TreeItem.h.
QIcon te::qt::widgets::ChartSliceItem::m_icon |
|
protected |
std::string te::qt::widgets::ChartSliceItem::m_label |
|
protected |
TreeItem* te::qt::widgets::TreeItem::m_parent |
|
protectedinherited |
Pointer to the parent.
Definition at line 238 of file TreeItem.h.
std::string te::qt::widgets::TreeItem::m_type |
|
protectedinherited |
The documentation for this class was generated from the following file:
- /home/castejon/castejon_files/develop/terralib5/git_master/src/terralib/qt/widgets/layer/explorer/ChartSliceItem.h