A class that represents a grouping of a layer in a LayerTreeModel.
More...
#include <GroupingItem.h>
A class that represents a grouping of a layer in a LayerTreeModel.
- Note
- The type of the item is "GROUPING".
Definition at line 50 of file GroupingItem.h.
Constructor.
- Parameters
-
g | The grouping to be used. |
te::qt::widgets::GroupingItem::~GroupingItem |
( |
| ) |
|
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::GroupingItem::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::GroupingItem::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.
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.
std::string te::qt::widgets::TreeItem::getToolTip |
( |
| ) |
const |
|
inherited |
Returns the item tooltip (for information purposes).
- Returns
- The item tooltip.
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
-
VISIBLE te::qt::widgets::GroupingItem::isVisible |
( |
| ) |
const |
|
virtual |
Returns the visibilty state of the item.
- Returns
- The state of visibilty of the item.
Reimplemented from te::qt::widgets::TreeItem.
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
-
void te::qt::widgets::GroupingItem::setVisible |
( |
const VISIBLE & |
visible, |
|
|
const bool & |
updateAncestors = false , |
|
|
const bool & |
updateDescendents = false |
|
) |
| |
|
virtual |
Updates the visibilty state of the item.
- Parameters
-
visible | The new visibility state. |
updateAncestors | Updates also ancestors states. |
updateDescendents | Updates also descendents states. |
Reimplemented from te::qt::widgets::TreeItem.
std::auto_ptr<Queue> te::qt::widgets::TreeItem::m_children |
|
protectedinherited |
Queue of items (children).
Definition at line 237 of file TreeItem.h.
std::string te::qt::widgets::GroupingItem::m_label |
|
protected |
Label to be presented on the Qt view.
Definition at line 90 of file GroupingItem.h.
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_toolTip |
|
protectedinherited |
Tooltip (for information purposes).
Definition at line 239 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/terralib5/src/terralib/qt/widgets/layer/explorer/GroupingItem.h