OpenScenarioItem Class Reference

Item in the TreeItemView. Every item represents a Scenario. More...

#include <ArmarXGui/gui-plugins/ScenarioManager/gui/openscenarioitem.h>

+ Inheritance diagram for OpenScenarioItem:

Public Member Functions

std::string getScenarioName ()
 Returns the Name of the scenario represented by this item. More...
 
std::string getScenarioPackage ()
 Returns the Name of the scenario package represented by this item. More...
 
 OpenScenarioItem (QList< QVariant > rootItem)
 Constructor that sets up the data based on the given data. More...
 
 OpenScenarioItem (QVariant scenarioName, QVariant scenarioPackage)
 Sets up this item based on the given data. More...
 
- Public Member Functions inherited from TreeItem
void appendChild (TreeItem *child)
 
TreeItemchild (int row)
 
int childCount () const
 
int columnCount () const
 
virtual QVariant data (int column) const
 
bool insertChild (int position, TreeItem *child)
 
bool insertColumn (int position, QVariant data)
 
bool isEnabled ()
 
TreeItemparent ()
 
bool removeChild (int position)
 
bool removeColumn (int position)
 
int row () const
 
bool setData (int column, const QVariant &value)
 
void setEnabled (bool enabled)
 
 TreeItem ()
 
virtual ~TreeItem ()
 

Additional Inherited Members

- Protected Attributes inherited from TreeItem
bool enabled
 
QVector< QVariant > m_itemData
 

Detailed Description

Item in the TreeItemView. Every item represents a Scenario.

Definition at line 36 of file openscenarioitem.h.

Constructor & Destructor Documentation

◆ OpenScenarioItem() [1/2]

OpenScenarioItem ( QList< QVariant >  rootItem)

Constructor that sets up the data based on the given data.

Parameters
rootItemthat replaces the current data

Definition at line 32 of file openscenarioitem.cpp.

◆ OpenScenarioItem() [2/2]

OpenScenarioItem ( QVariant  scenarioName,
QVariant  scenarioPackage 
)

Sets up this item based on the given data.

Parameters
scenarioPathcontains the path of the scenario to be displayed

Definition at line 37 of file openscenarioitem.cpp.

Member Function Documentation

◆ getScenarioName()

std::string getScenarioName ( )

Returns the Name of the scenario represented by this item.

Returns
path of the scenario

Definition at line 51 of file openscenarioitem.cpp.

+ Here is the caller graph for this function:

◆ getScenarioPackage()

std::string getScenarioPackage ( )

Returns the Name of the scenario package represented by this item.

Returns
path of the scenario

Definition at line 45 of file openscenarioitem.cpp.

+ Here is the caller graph for this function:

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