Telescope.hpp   Telescope.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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, U SA. * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, U SA.
*/ */
#ifndef _TELESCOPE_HPP_ #ifndef _TELESCOPE_HPP_
#define _TELESCOPE_HPP_ #define _TELESCOPE_HPP_
#include <list> #include <QList>
#include <QString> #include <QString>
#if defined (_MSC_VER) #if defined (_MSC_VER)
#include <winsock2.h> #include <winsock2.h>
#endif #endif
#include "StelObject.hpp" #include "StelObject.hpp"
#include "Navigator.hpp" #include "StelNavigator.hpp"
long long int GetNow(void); long long int GetNow(void);
#ifdef __MINGW32__ #ifdef __MINGW32__
struct fd_set; struct fd_set;
#endif #endif
class Telescope : public StelObject class Telescope : public StelObject
{ {
public: public:
skipping to change at line 58 skipping to change at line 58
//! Telescope supports the following InfoStringGroup flags: //! Telescope supports the following InfoStringGroup flags:
//! - Name //! - Name
//! - RaDecJ2000 //! - RaDecJ2000
//! - RaDec //! - RaDec
//! - PlainText //! - PlainText
//! @param core the StelCore object //! @param core the StelCore object
//! @param flags a set of InfoStringGroup items to include in the re turn value. //! @param flags a set of InfoStringGroup items to include in the re turn value.
//! @return a QString containing an HMTL encoded description of the Telescope. //! @return a QString containing an HMTL encoded description of the Telescope.
QString getInfoString(const StelCore* core, const InfoStringGroup& f lags) const; QString getInfoString(const StelCore* core, const InfoStringGroup& f lags) const;
QString getType(void) const {return "Telescope";} QString getType(void) const {return "Telescope";}
virtual double getAngularSize(const StelCore* core) const {assert(0) ; return 0;} // TODO virtual double getAngularSize(const StelCore* core) const {Q_ASSERT( 0); return 0;} // TODO
// Methods specific to telescope // Methods specific to telescope
virtual void telescopeGoto(const Vec3d &j2000Pos) = 0; virtual void telescopeGoto(const Vec3d &j2000Pos) = 0;
virtual bool isConnected(void) const = 0; virtual bool isConnected(void) const = 0;
virtual bool hasKnownPosition(void) const = 0; virtual bool hasKnownPosition(void) const = 0;
void addOcular(double fov) {if (fov>=0.0) oculars.push_back(fov);} void addOcular(double fov) {if (fov>=0.0) oculars.push_back(fov);}
const std::list<double> &getOculars(void) const {return oculars;} const QList<double> &getOculars(void) const {return oculars;}
// all TCP (and all possible other style) communication shall be don e in these functions: // all TCP (and all possible other style) communication shall be don e in these functions:
virtual void prepareSelectFds(fd_set &read_fds,fd_set &write_fds, in t &fdmax) = 0; virtual void prepareSelectFds(fd_set &read_fds,fd_set &write_fds, in t &fdmax) = 0;
virtual void handleSelectFds(const fd_set &read_fds, const fd_set &w rite_fds) {} virtual void handleSelectFds(const fd_set &read_fds, const fd_set &w rite_fds) {}
protected: protected:
Telescope(const QString &name); Telescope(const QString &name);
QString nameI18n; QString nameI18n;
const QString name; const QString name;
private: private:
bool isInitialized(void) const {return true;} bool isInitialized(void) const {return true;}
float getSelectPriority(const Navigator *nav) const {return -10.f;} float getSelectPriority(const StelNavigator *nav) const {return -10. f;}
private: private:
std::list<double> oculars; // fov of the oculars QList<double> oculars; // fov of the oculars
}; };
#endif // _TELESCOPE_HPP_ #endif // _TELESCOPE_HPP_
 End of changes. 6 change blocks. 
6 lines changed or deleted 6 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/