kstars
#include <modelmanager.h>
Public Types | |
| enum | ModelType {  Planet_Model, Star_Model, Constellation_Model, Galaxy_Model, Cluster_Model, Nebula_Model }  | 
Public Member Functions | |
| ModelManager (ObsConditions *obs) | |
| ~ModelManager () | |
| void | resetModels () | 
| SkyObjListModel * | returnModel (int type) | 
| void | updateModels (ObsConditions *obs) | 
Detailed Description
Manages models for QML listviews of different types of sky-objects.
Definition at line 30 of file modelmanager.h.
Member Enumeration Documentation
Model type for different types of sky-objects.
| Enumerator | |
|---|---|
| Planet_Model | |
| Star_Model | |
| Constellation_Model | |
| Galaxy_Model | |
| Cluster_Model | |
| Nebula_Model | |
Definition at line 37 of file modelmanager.h.
Constructor & Destructor Documentation
| ModelManager::ModelManager | ( | ObsConditions * | obs | ) | 
Constructor - Creates models for different sky-object types.
- Parameters
 - 
  
obs Pointer to an ObsConditions object.  
Definition at line 24 of file modelmanager.cpp.
| ModelManager::~ModelManager | ( | ) | 
Destructor.
Definition at line 42 of file modelmanager.cpp.
Member Function Documentation
| void ModelManager::resetModels | ( | ) | 
Clears all sky-objects list models.
Definition at line 153 of file modelmanager.cpp.
| SkyObjListModel * ModelManager::returnModel | ( | int | type | ) | 
Returns model of given type.
- Returns
 - Pointer to SkyObjListModel of given type.
 
- Parameters
 - 
  
type Type of sky-object model to be returned.  
Definition at line 163 of file modelmanager.cpp.
| void ModelManager::updateModels | ( | ObsConditions * | obs | ) | 
Updates sky-object list models.
Definition at line 52 of file modelmanager.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:36:23 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.
    KDE API Reference