TypedDataTreeBuilder Class Reference

#include <RobotAPI/libraries/armem_gui/instance/tree_builders/TypedDataTreeBuilder.h>

+ Inheritance diagram for TypedDataTreeBuilder:

Public Member Functions

 TypedDataTreeBuilder ()
 
void updateTree (QTreeWidgetItem *parent, const aron::type::AnyObject &type, const aron::data::Dict &data)
 
void updateTree (QTreeWidgetItem *parent, const aron::type::Dict &type, const aron::data::Dict &data)
 
void updateTree (QTreeWidgetItem *parent, const aron::type::List &type, const aron::data::List &data)
 
void updateTree (QTreeWidgetItem *parent, const aron::type::Object &type, const aron::data::Dict &data)
 
void updateTree (QTreeWidgetItem *parent, const aron::type::Pair &type, const aron::data::List &data)
 
void updateTree (QTreeWidgetItem *parent, const aron::type::Tuple &type, const aron::data::List &data)
 
- Public Member Functions inherited from DataTreeBuilderBase
 DataTreeBuilderBase ()
 
void setColumns (int key, int value, int type)
 
virtual ~DataTreeBuilderBase ()
 

Protected Member Functions

template<class DataT , class TypeT >
void _updateTree (QTreeWidgetItem *item, TypeT &type, DataT &data)
 
void update (QTreeWidgetItem *item, const std::string &key, const aron::data::VariantPtr &data)
 
void update (QTreeWidgetItem *item, const std::string &key, const aron::type::VariantPtr &type, const aron::data::VariantPtr &data)
 
void updateDispatch (QTreeWidgetItem *item, const std::string &key, const aron::type::VariantPtr &type, const aron::data::VariantPtr &data)
 
- Protected Member Functions inherited from DataTreeBuilderBase
DictBuilder getDictBuilder () const
 
std::vector< size_t > getIndex (size_t size) const
 
ListBuilder getListBuilder () const
 
QTreeWidgetItem * makeItem (const std::string &key) const
 
QTreeWidgetItem * makeItem (size_t key) const
 
void setRowTexts (QTreeWidgetItem *item, const std::string &key, const aron::data::VariantPtr &data)
 
void setRowTexts (QTreeWidgetItem *item, const std::string &key, const std::string &value, const std::string &typeName="") const
 

Additional Inherited Members

- Public Attributes inherited from DataTreeBuilderBase
int columnKey = 0
 
int columnType = 2
 
int columnValue = 1
 
- Protected Types inherited from DataTreeBuilderBase
using DictBuilder = armarx::TreeWidgetBuilder< std::string >
 
using ListBuilder = armarx::TreeWidgetBuilder< size_t >
 

Detailed Description

Definition at line 25 of file TypedDataTreeBuilder.h.

Constructor & Destructor Documentation

◆ TypedDataTreeBuilder()

Definition at line 19 of file TypedDataTreeBuilder.cpp.

Member Function Documentation

◆ _updateTree()

void _updateTree ( QTreeWidgetItem *  item,
TypeT &  type,
DataT &  data 
)
protected

Definition at line 315 of file TypedDataTreeBuilder.cpp.

◆ update() [1/2]

void update ( QTreeWidgetItem *  item,
const std::string &  key,
const aron::data::VariantPtr data 
)
protected

Definition at line 284 of file TypedDataTreeBuilder.cpp.

+ Here is the call graph for this function:

◆ update() [2/2]

void update ( QTreeWidgetItem *  item,
const std::string &  key,
const aron::type::VariantPtr type,
const aron::data::VariantPtr data 
)
protected

Definition at line 196 of file TypedDataTreeBuilder.cpp.

+ Here is the call graph for this function:

◆ updateDispatch()

void updateDispatch ( QTreeWidgetItem *  item,
const std::string &  key,
const aron::type::VariantPtr type,
const aron::data::VariantPtr data 
)
protected

Used so that elements in the data that don't appear in the type can still be shown in the GUI if type information is enabled (otherwise, they would be hidden).

Definition at line 180 of file TypedDataTreeBuilder.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ updateTree() [1/6]

void updateTree ( QTreeWidgetItem *  parent,
const aron::type::AnyObject type,
const aron::data::Dict data 
)

Definition at line 45 of file TypedDataTreeBuilder.cpp.

+ Here is the call graph for this function:

◆ updateTree() [2/6]

void updateTree ( QTreeWidgetItem *  parent,
const aron::type::Dict type,
const aron::data::Dict data 
)

Definition at line 24 of file TypedDataTreeBuilder.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ updateTree() [3/6]

void updateTree ( QTreeWidgetItem *  parent,
const aron::type::List type,
const aron::data::List data 
)

Definition at line 108 of file TypedDataTreeBuilder.cpp.

+ Here is the call graph for this function:

◆ updateTree() [4/6]

void updateTree ( QTreeWidgetItem *  parent,
const aron::type::Object type,
const aron::data::Dict data 
)

Definition at line 65 of file TypedDataTreeBuilder.cpp.

+ Here is the call graph for this function:

◆ updateTree() [5/6]

void updateTree ( QTreeWidgetItem *  parent,
const aron::type::Pair type,
const aron::data::List data 
)

Definition at line 130 of file TypedDataTreeBuilder.cpp.

+ Here is the call graph for this function:

◆ updateTree() [6/6]

void updateTree ( QTreeWidgetItem *  parent,
const aron::type::Tuple type,
const aron::data::List data 
)

Definition at line 152 of file TypedDataTreeBuilder.cpp.

+ Here is the call graph for this function:

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