Envision
A visual programming IDE for object-oriented languages
|
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... | |
VisualizationGroup * | getExactMatch (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_ |
Visualization::VisualizationGroupsManager::VisualizationGroupsManager | ( | ) |
void Visualization::VisualizationGroupsManager::addGroup | ( | int | nodeTypeId, |
int | purpose, | ||
int | semanticZoomLevel, | ||
VisualizationGroup * | group | ||
) |
Adds a visualization group to the managed pool.
void Visualization::VisualizationGroupsManager::addVisualization | ( | int | nodeTypeId, |
int | purpose, | ||
int | semanticZoomLevel, | ||
VisualizationGroup::ItemConstructor | visualization, | ||
int | itemTypeId | ||
) |
Adds a visualization to the managed pool.
void Visualization::VisualizationGroupsManager::clear | ( | ) |
Clears all managed visualization groups.
QVector< VisualizationGroup * > Visualization::VisualizationGroupsManager::getByTypeId | ( | int | typeId | ) |
Returns a list of visualization groups with matching type id.
QVector< VisualizationGroup * > Visualization::VisualizationGroupsManager::getByTypeIdAndPurpose | ( | int | typeId, |
int | purpose | ||
) |
Returns a list of visualization groups with matching type id and purpose.
QVector< VisualizationGroup * > Visualization::VisualizationGroupsManager::getByTypeIdAndSemanticZoomLevel | ( | int | typeId, |
int | semanticZoomLevel | ||
) |
Returns a list of visualization groups with matching type id and semantic zoom level.
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.
bool Visualization::VisualizationGroupsManager::hasVisualization | ( | int | nodeTypeId, |
int | purpose, | ||
int | semanticZoomLevel | ||
) |
Returns whether there exists a visualization for the provided parameters.
|
private |
|
private |
|
private |