ObjectExplorerModel Class Reference

This class provides a model for storing classes from memoryxcontroller::PriorKnowledgeController and allows to filter them. More...

#include <MemoryX/gui-plugins/SceneEditor/gui/ObjectExplorerModel.h>

+ Inheritance diagram for ObjectExplorerModel:

Signals

void reload ()
 

Public Member Functions

std::pair< std::string, std::string > getItemInformation (const QModelIndex &index)
 Returns a tupel containing information about the class at the given index. More...
 
QPixmap getItemPixmap (const QModelIndex &index) const
 Returns the Icon of the class at index. More...
 
 ObjectExplorerModel (const controller::ControllerPtr &control, QObject *parent=0)
 Creates a new instance of this class. More...
 
void onConnect ()
 Reloads the model. More...
 
void setFilterFixedString (QString searchPattern)
 Sets the string to filter all classes. More...
 

Detailed Description

This class provides a model for storing classes from memoryxcontroller::PriorKnowledgeController and allows to filter them.

See also
memoryxcontroller::PriorKnowledgeController

Definition at line 44 of file ObjectExplorerModel.h.

Constructor & Destructor Documentation

◆ ObjectExplorerModel()

ObjectExplorerModel ( const controller::ControllerPtr control,
QObject *  parent = 0 
)
explicit

Creates a new instance of this class.

Parameters
controlThe main controller of the whole plugin.
See also
controller::Controller

Definition at line 30 of file ObjectExplorerModel.cpp.

Member Function Documentation

◆ getItemInformation()

std::pair< std::string, std::string > getItemInformation ( const QModelIndex &  index)

Returns a tupel containing information about the class at the given index.

The tupel contains the class name at first and class collection at second position.

Parameters
indexThe index in this model of the class.
Returns
The tupel containing the informations.

Definition at line 56 of file ObjectExplorerModel.cpp.

◆ getItemPixmap()

QPixmap getItemPixmap ( const QModelIndex &  index) const

Returns the Icon of the class at index.

Parameters
indexThe index in this model of the class.
Returns
The pixmap containing the image.

Definition at line 109 of file ObjectExplorerModel.cpp.

+ Here is the caller graph for this function:

◆ onConnect()

void onConnect ( )

Reloads the model.

Should be called after the plugin is connected.

Definition at line 40 of file ObjectExplorerModel.cpp.

◆ reload

void reload ( )
signal
+ Here is the caller graph for this function:

◆ setFilterFixedString()

void setFilterFixedString ( QString  searchPattern)

Sets the string to filter all classes.

Only the classes, which contain this string are shown after this. The string is caseinsensitive.

Parameters
searchPatternThe string to filter with.

Definition at line 50 of file ObjectExplorerModel.cpp.


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