19 #ifndef _CUSTOMOBJECTMGR_HPP_ 20 #define _CUSTOMOBJECTMGR_HPP_ 22 #include "StelObjectModule.hpp" 23 #include "StelObject.hpp" 25 #include "CustomObject.hpp" 33 typedef QSharedPointer<CustomObject> CustomObjectP;
74 virtual QStringList
listMatchingObjects(
const QString& objPrefix,
int maxNbItem=5,
bool useStartOfWords=
false,
bool inEnglish=
false)
const;
76 virtual QString getName()
const {
return "Custom Objects"; }
104 void addCustomObject(QString designation,
const QString& ra,
const QString& dec,
bool isVisible=
false);
114 void addCustomObjectRaDec(QString designation,
const QString& ra,
const QString& dec,
bool isVisible=
false);
124 void addCustomObjectAltAzi(QString designation,
const QString& alt,
const QString& azi,
bool isVisible=
false);
159 QList<CustomObjectP> customObjects;
165 void setSelected(
const QString& englishName);
167 void setSelected(CustomObjectP obj);
169 CustomObjectP getSelected(
void)
const {
return selected;}
171 CustomObjectP selected;
virtual QStringList listAllObjects(bool inEnglish) const
List all StelObjects.
virtual StelObjectP searchByNameI18n(const QString &nameI18n) const
Return the matching satellite object's pointer if exists or NULL.
virtual StelObjectP searchByName(const QString &name) const
Return the matching satellite if exists or NULL.
virtual void deinit()
Called before the module will be delete, and before the openGL context is suppressed.
virtual void handleMouseClicks(class QMouseEvent *e)
Handle mouse clicks.
Define the StelTextureSP type.
void addCustomObjectAltAzi(QString designation, const QString &alt, const QString &azi, bool isVisible=false)
Add custom object on the sky.
Main class for Stellarium core processing.
Specialization of StelModule which manages a collection of StelObject.
const Vec3f & getMarkersColor(void) const
Get the current color used to draw custom object markers.
void addCustomObjectRaDec(QString designation, const QString &ra, const QString &dec, bool isVisible=false)
Add custom object on the sky.
void addCustomObject(QString designation, Vec3d coordinates, bool isVisible=false)
Add custom object on the sky.
void removeCustomObjects()
Remove all custom objects.
Provides functions for performing openGL drawing operations.
CustomObjectP searchByEnglishName(QString customObjectEnglishName) const
Get a pointer to a custom object.
StelModuleActionName
Define the possible action for which an order is defined.
void setMarkersColor(const Vec3f &c)
Set the color used to draw custom object markers.
virtual QStringList listMatchingObjects(const QString &objPrefix, int maxNbItem=5, bool useStartOfWords=false, bool inEnglish=false) const
Find and return the list of at most maxNbItem objects auto-completing the passed object name...
virtual void init()
Initialize itself.
StelModuleSelectAction
Enum used when selecting objects to define whether to add to, replace, or remove from the existing se...
void setMarkersSize(const float size)
Set the size of custom object markers.
QSharedPointer< StelTexture > StelTextureSP
Use shared pointer to simplify memory managment.
virtual QList< StelObjectP > searchAround(const Vec3d &v, double limitFov, const StelCore *core) const
Used to get a list of objects which are near to some position.
float getMarkersSize(void) const
Get the current size used to custom object markers.
virtual void update(double)
Update the module with respect to the time.
virtual void draw(StelCore *core)
Execute all the drawing functions for this module.
virtual double getCallOrder(StelModuleActionName actionName) const
Return the value defining the order of call for the given action For example if stars.callOrder[ActionDraw] == 10 and constellation.callOrder[ActionDraw] == 11, the stars module will be drawn before the constellations.