NebulaMgr.hpp   NebulaMgr.hpp 
/* /*
* Stellarium * Stellarium
* Copyright (C) 2002 Fabien Chereau * Copyright (C) 2002 Fabien Chereau
* Copyright (C) 2011 Alexander Wolf * Copyright (C) 2011 Alexander Wolf
* Copyright (C) 2015 Georg Zotti
* *
* This program is free software; you can redistribute it and/or * This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License * modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2 * as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version. * of the License, or (at your option) any later version.
* *
* This program is distributed in the hope that it will be useful, * This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details. * GNU General Public License for more details.
skipping to change at line 143 skipping to change at line 144
//! Set how long it takes for nebula hints to fade in and out when t urned on and off. //! Set how long it takes for nebula hints to fade in and out when t urned on and off.
//! @param duration given in seconds //! @param duration given in seconds
void setHintsFadeDuration(float duration) {hintsFader.setDuration((i nt) (duration * 1000.f));} void setHintsFadeDuration(float duration) {hintsFader.setDuration((i nt) (duration * 1000.f));}
//! Set flag for displaying Nebulae Hints. //! Set flag for displaying Nebulae Hints.
void setFlagHints(bool b) {hintsFader=b;} void setFlagHints(bool b) {hintsFader=b;}
//! Get flag for displaying Nebulae Hints. //! Get flag for displaying Nebulae Hints.
bool getFlagHints(void) const {return hintsFader;} bool getFlagHints(void) const {return hintsFader;}
//! Set whether hints (symbols) should be scaled according to nebula
size.
void setHintsProportional(const bool proportional);
//! Get whether hints (symbols) are scaled according to nebula size.
bool getHintsProportional(void) const;
//! Set flag used to turn on and off Nebula rendering. //! Set flag used to turn on and off Nebula rendering.
void setFlagShow(bool b) { flagShow = b; } void setFlagShow(bool b) { flagShow = b; }
//! Get value of flag used to turn on and off Nebula rendering. //! Get value of flag used to turn on and off Nebula rendering.
bool getFlagShow(void) const { return flagShow; } bool getFlagShow(void) const { return flagShow; }
//! Set the color used to draw nebula labels. //! Set the color used to draw nebula labels.
//! @param c The color of the nebula labels //! @param c The color of the nebula labels
//! @code //! @code
//! // example of usage in scripts //! // example of usage in scripts
//! NebulaMgr.setLabelsColor(Vec3f(1.0,0.0,0.0)); //! NebulaMgr.setLabelsColor(Vec3f(1.0,0.0,0.0));
skipping to change at line 207 skipping to change at line 213
//! @param setName a string which corresponds to the directory where the set resides //! @param setName a string which corresponds to the directory where the set resides
void loadNebulaSet(const QString& setName); void loadNebulaSet(const QString& setName);
//! Draw a nice animated pointer around the object //! Draw a nice animated pointer around the object
void drawPointer(const StelCore* core, StelPainter& sPainter); void drawPointer(const StelCore* core, StelPainter& sPainter);
NebulaP searchM(unsigned int M); NebulaP searchM(unsigned int M);
NebulaP searchNGC(unsigned int NGC); NebulaP searchNGC(unsigned int NGC);
NebulaP searchIC(unsigned int IC); NebulaP searchIC(unsigned int IC);
NebulaP searchC(unsigned int C); NebulaP searchC(unsigned int C);
NebulaP searchB(unsigned int B);
NebulaP searchSh2(unsigned int Sh2);
NebulaP searchVdB(unsigned int VdB);
NebulaP searchRCW(unsigned int RCW);
NebulaP searchLDN(unsigned int LDN);
NebulaP searchLBN(unsigned int LBN);
NebulaP searchCr(unsigned int Cr);
NebulaP searchMel(unsigned int Mel);
bool loadNGC(const QString& fileName); bool loadNGC(const QString& fileName);
bool loadNGCOld(const QString& catNGC); bool loadNGCOld(const QString& catNGC);
bool loadNGCNames(const QString& fileName); bool loadNGCNames(const QString& fileName);
bool loadBarnard(const QString& filename);
bool loadSharpless(const QString& filename);
bool loadVandenBergh(const QString& filename);
bool loadRCW(const QString& filename);
bool loadLDN(const QString& filename);
bool loadLBN(const QString& filename);
QVector<NebulaP> nebArray; // The nebulas list QVector<NebulaP> nebArray; // The nebulas list
QHash<unsigned int, NebulaP> ngcIndex; QHash<unsigned int, NebulaP> ngcIndex;
LinearFader hintsFader; LinearFader hintsFader;
LinearFader flagShow; LinearFader flagShow;
//! The internal grid for fast positional lookup //! The internal grid for fast positional lookup
StelSphericalIndex nebGrid; StelSphericalIndex nebGrid;
//! The amount of hints (between 0 and 10) //! The amount of hints (between 0 and 10)
 End of changes. 4 change blocks. 
0 lines changed or deleted 21 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/