Envision
A visual programming IDE for object-oriented languages
List of all members | Public Member Functions | Private Member Functions | Private Attributes
Visualization::VisualizationGroupsManager Class Reference

Public Member Functions

 VisualizationGroupsManager ()
 
void addGroup (int nodeTypeId, int purpose, int semanticZoomLevel, VisualizationGroup *group)
 Adds a visualization group to the managed pool. More...
 
void addVisualization (int nodeTypeId, int purpose, int semanticZoomLevel, VisualizationGroup::ItemConstructor visualization, int itemTypeId)
 Adds a visualization to the managed pool. More...
 
void clear ()
 Clears all managed visualization groups. More...
 
QVector< VisualizationGroup * > getByTypeId (int typeId)
 Returns a list of visualization groups with matching type id. More...
 
QVector< VisualizationGroup * > getByTypeIdAndPurpose (int typeId, int purpose)
 Returns a list of visualization groups with matching type id and purpose. More...
 
QVector< VisualizationGroup * > getByTypeIdAndSemanticZoomLevel (int typeId, int semanticZoomLevel)
 Returns a list of visualization groups with matching type id and semantic zoom level. More...
 
VisualizationGroupgetExactMatch (int typeId, int purpose, int semanticZoomLevel)
 Returns a visualization group for the exact matching type id, purpose and semantic zoom level. More...
 
bool hasVisualization (int nodeTypeId, int purpose, int semanticZoomLevel)
 Returns whether there exists a visualization for the provided parameters. More...
 

Private Member Functions

void prepareAddingVisualizationGroupOrVisualization (int nodeTypeId, int purpose, int semanticZoomLevel)
 

Private Attributes

QVector< QVector< QVector< VisualizationGroup * > > > groupsTypePurposeSz_
 
QVector< QVector< QVector< VisualizationGroup * > > > groupsTypeSzPurpose_
 

Constructor & Destructor Documentation

◆ VisualizationGroupsManager()

Visualization::VisualizationGroupsManager::VisualizationGroupsManager ( )

Member Function Documentation

◆ addGroup()

void Visualization::VisualizationGroupsManager::addGroup ( int  nodeTypeId,
int  purpose,
int  semanticZoomLevel,
VisualizationGroup group 
)

Adds a visualization group to the managed pool.

◆ addVisualization()

void Visualization::VisualizationGroupsManager::addVisualization ( int  nodeTypeId,
int  purpose,
int  semanticZoomLevel,
VisualizationGroup::ItemConstructor  visualization,
int  itemTypeId 
)

Adds a visualization to the managed pool.

◆ clear()

void Visualization::VisualizationGroupsManager::clear ( )

Clears all managed visualization groups.

◆ getByTypeId()

QVector< VisualizationGroup * > Visualization::VisualizationGroupsManager::getByTypeId ( int  typeId)

Returns a list of visualization groups with matching type id.

◆ getByTypeIdAndPurpose()

QVector< VisualizationGroup * > Visualization::VisualizationGroupsManager::getByTypeIdAndPurpose ( int  typeId,
int  purpose 
)

Returns a list of visualization groups with matching type id and purpose.

◆ getByTypeIdAndSemanticZoomLevel()

QVector< VisualizationGroup * > Visualization::VisualizationGroupsManager::getByTypeIdAndSemanticZoomLevel ( int  typeId,
int  semanticZoomLevel 
)

Returns a list of visualization groups with matching type id and semantic zoom level.

◆ getExactMatch()

VisualizationGroup * Visualization::VisualizationGroupsManager::getExactMatch ( int  typeId,
int  purpose,
int  semanticZoomLevel 
)

Returns a visualization group for the exact matching type id, purpose and semantic zoom level.

Returns nullptr if no visualization matches the criteria.

◆ hasVisualization()

bool Visualization::VisualizationGroupsManager::hasVisualization ( int  nodeTypeId,
int  purpose,
int  semanticZoomLevel 
)

Returns whether there exists a visualization for the provided parameters.

◆ prepareAddingVisualizationGroupOrVisualization()

void Visualization::VisualizationGroupsManager::prepareAddingVisualizationGroupOrVisualization ( int  nodeTypeId,
int  purpose,
int  semanticZoomLevel 
)
private

Member Data Documentation

◆ groupsTypePurposeSz_

QVector<QVector<QVector<VisualizationGroup*> > > Visualization::VisualizationGroupsManager::groupsTypePurposeSz_
private

◆ groupsTypeSzPurpose_

QVector<QVector<QVector<VisualizationGroup*> > > Visualization::VisualizationGroupsManager::groupsTypeSzPurpose_
private