ScenarioItem Class Reference

TreeItem representing data contained in a Scenario or an Application. More...

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

+ Inheritance diagram for ScenarioItem:

Public Member Functions

ScenarioManager::Data_Structure::ApplicationInstancePtr getApplicationInstance ()
 If this item represents an Application, it is returned. More...
 
ScenarioManager::Data_Structure::ApplicationInstanceVectorPtr getApplicationInstances ()
 
std::string getPackageName ()
 
ScenarioManager::Data_Structure::ScenarioPtr getScenario ()
 If this item represents a Scenario, it is returned. More...
 
 ScenarioItem (QList< QVariant > rootData)
 Constructor that sets the data contained in this item. More...
 
 ScenarioItem (ScenarioManager::Data_Structure::ApplicationInstancePtr application)
 Constructor that sets the application-data contained in this item. More...
 
 ScenarioItem (ScenarioManager::Data_Structure::ScenarioPtr scenario)
 Constructor that sets the scenario-data contained in this item. More...
 
 ScenarioItem (std::string name, std::vector< ScenarioManager::Data_Structure::ApplicationInstancePtr > applications)
 
void update ()
 Clears the item_data and parses the Scenario or Application for new 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

TreeItem representing data contained in a Scenario or an Application.

Definition at line 38 of file scenarioitem.h.

Constructor & Destructor Documentation

◆ ScenarioItem() [1/4]

ScenarioItem ( QList< QVariant >  rootData)

Constructor that sets the data contained in this item.

Parameters
rootDatadata

Definition at line 35 of file scenarioitem.cpp.

◆ ScenarioItem() [2/4]

Constructor that sets the scenario-data contained in this item.

Parameters
scenarioScenario to read out the data

◆ ScenarioItem() [3/4]

Constructor that sets the application-data contained in this item.

Parameters
applicationApplication to read out the data

◆ ScenarioItem() [4/4]

ScenarioItem ( std::string  name,
std::vector< ScenarioManager::Data_Structure::ApplicationInstancePtr applications 
)

Member Function Documentation

◆ getApplicationInstance()

ApplicationInstancePtr getApplicationInstance ( )

If this item represents an Application, it is returned.

Returns
the Application represented by this item

Definition at line 190 of file scenarioitem.cpp.

+ Here is the caller graph for this function:

◆ getApplicationInstances()

ApplicationInstanceVectorPtr getApplicationInstances ( )

Definition at line 195 of file scenarioitem.cpp.

+ Here is the caller graph for this function:

◆ getPackageName()

std::string getPackageName ( )

Definition at line 180 of file scenarioitem.cpp.

+ Here is the caller graph for this function:

◆ getScenario()

ScenarioPtr getScenario ( )

If this item represents a Scenario, it is returned.

Returns
the Scenario represented by this item

Definition at line 185 of file scenarioitem.cpp.

+ Here is the caller graph for this function:

◆ update()

void update ( )

Clears the item_data and parses the Scenario or Application for new data.

Definition at line 71 of file scenarioitem.cpp.

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

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