StelObjectMgr.hpp   StelObjectMgr.hpp 
skipping to change at line 23 skipping to change at line 23
* GNU General Public License for more details. * GNU General Public License for more details.
* *
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA. * Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA.
*/ */
#ifndef _STELOBJECTMGR_HPP_ #ifndef _STELOBJECTMGR_HPP_
#define _STELOBJECTMGR_HPP_ #define _STELOBJECTMGR_HPP_
#include <QList>
#include <QString>
#include "VecMath.hpp" #include "VecMath.hpp"
#include "StelModule.hpp" #include "StelModule.hpp"
#include "StelObject.hpp" #include "StelObject.hpp"
#include <QList>
#include <QString>
class StelObjectModule; class StelObjectModule;
class StelCore; class StelCore;
//! @class StelObjectMgr //! @class StelObjectMgr
//! Manage the selection and queries on one or more StelObjects. //! Manage the selection and queries on one or more StelObjects.
//! Each module is then free to manage object selection as it wants. //! Each module is then free to manage object selection as it wants.
class StelObjectMgr : public StelModule class StelObjectMgr : public StelModule
{ {
Q_OBJECT Q_OBJECT
public: public:
StelObjectMgr(); StelObjectMgr();
virtual ~StelObjectMgr(); virtual ~StelObjectMgr();
//////////////////////////////////////////////////////////////////// /////// //////////////////////////////////////////////////////////////////// ///////
// Methods defined in the StelModule class // Methods defined in the StelModule class
virtual void init() {;} virtual void init() {;}
virtual void draw(StelCore*, class StelRenderer*) {;} virtual void draw(StelCore*) {;}
virtual void update(double) {;} virtual void update(double) {;}
//////////////////////////////////////////////////////////////////// /////// //////////////////////////////////////////////////////////////////// ///////
//! Add a new StelObject manager into the list of supported modules. //! Add a new StelObject manager into the list of supported modules.
//! Registered modules can have selected objects //! Registered modules can have selected objects
void registerStelObjectMgr(StelObjectModule* mgr); void registerStelObjectMgr(StelObjectModule* mgr);
//! Find and select an object near given equatorial J2000 position. //! Find and select an object near given equatorial J2000 position.
//! @param core the StelCore instance to use for computations //! @param core the StelCore instance to use for computations
//! @param pos the direction vector around which to search in equato rial J2000 //! @param pos the direction vector around which to search in equato rial J2000
skipping to change at line 143 skipping to change at line 144
//! Set the radius in pixel in which objects will be searched when c licking on a point in sky. //! Set the radius in pixel in which objects will be searched when c licking on a point in sky.
void setObjectSearchRadius(float radius) {searchRadiusPixel=radius;} void setObjectSearchRadius(float radius) {searchRadiusPixel=radius;}
//! Set the weight of the distance factor when choosing the best obj ect to select. //! Set the weight of the distance factor when choosing the best obj ect to select.
//! Default to 1. //! Default to 1.
void setDistanceWeight(float newDistanceWeight) {distanceWeight=newD istanceWeight;} void setDistanceWeight(float newDistanceWeight) {distanceWeight=newD istanceWeight;}
signals: signals:
//! Indicate that the selected StelObjects has changed. //! Indicate that the selected StelObjects has changed.
//! @param action define if the user requested that the objects are added to the selection or just replace it //! @param action define if the user requested that the objects are added to the selection or just replace it
void selectedObjectChanged(StelModule::StelModuleSelectAction action ); void selectedObjectChanged(StelModule::StelModuleSelectAction);
private: private:
// The list of StelObjectModule that are referenced in Stellarium // The list of StelObjectModule that are referenced in Stellarium
QList<StelObjectModule*> objectsModule; QList<StelObjectModule*> objectsModule;
// The last selected object in stellarium // The last selected object in stellarium
QList<StelObjectP> lastSelectedObjects; QList<StelObjectP> lastSelectedObjects;
// Should selected object pointer be drawn // Should selected object pointer be drawn
bool objectPointerVisibility; bool objectPointerVisibility;
//! Find in a "clever" way an object from its equatorial position. //! Find in a "clever" way an object from its equatorial position.
 End of changes. 4 change blocks. 
4 lines changed or deleted 5 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/