Stellarium 0.13.3
StelObjectModule.hpp
1 /*
2  * Stellarium
3  * Copyright (C) 2006 Fabien Chereau
4  *
5  * This program is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU General Public License
7  * as published by the Free Software Foundation; either version 2
8  * of the License, or (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA.
18  */
19 
20 #ifndef _STELOBJECTMODULE_HPP_
21 #define _STELOBJECTMODULE_HPP_
22 
23 #include "StelModule.hpp"
24 #include "StelObjectType.hpp"
25 #include "VecMath.hpp"
26 
27 #include <QList>
28 #include <QString>
29 #include <QStringList>
30 
36 {
37 public:
40 
48  virtual QList<StelObjectP> searchAround(const Vec3d& v, double limitFov, const StelCore* core) const = 0;
49 
53  virtual StelObjectP searchByNameI18n(const QString& nameI18n) const = 0;
54 
57  virtual StelObjectP searchByName(const QString& name) const = 0;
58 
64  virtual QStringList listMatchingObjectsI18n(const QString& objPrefix, int maxNbItem=5, bool useStartOfWords=false) const = 0;
65 
71  virtual QStringList listMatchingObjects(const QString& objPrefix, int maxNbItem=5, bool useStartOfWords=false) const = 0;
72 
73  virtual QStringList listAllObjects(bool inEnglish) const = 0;
74 
75  virtual QStringList listAllObjectsByType(const QString& objType, bool inEnglish) const = 0;
76 
77  virtual QString getName() const = 0;
78 };
79 
80 #endif // _STELOBJECTMODULE_HPP_
Main class for Stellarium core processing.
Definition: StelCore.hpp:46
Specialization of StelModule which manages a collection of StelObject.
virtual StelObjectP searchByName(const QString &name) const =0
Return the matching StelObject if exists or the empty StelObject if not found.
Define the StelObjectP type.
virtual StelObjectP searchByNameI18n(const QString &nameI18n) const =0
Find a StelObject by name.
virtual QStringList listMatchingObjectsI18n(const QString &objPrefix, int maxNbItem=5, bool useStartOfWords=false) const =0
Find and return the list of at most maxNbItem objects auto-completing passed object I18 name...
virtual QList< StelObjectP > searchAround(const Vec3d &v, double limitFov, const StelCore *core) const =0
Search for StelObject in an area around a specifid point.
virtual QStringList listMatchingObjects(const QString &objPrefix, int maxNbItem=5, bool useStartOfWords=false) const =0
Find and return the list of at most maxNbItem objects auto-completing passed object English name...
This is the common base class for all the main components of stellarium.
Definition: StelModule.hpp:49