Stellarium
HEAD
|
A structure which stores a specific view position, view direction and FOV, together with a textual description. More...
#include <SceneInfo.hpp>
Static Public Member Functions | |
static StoredViewList | getGlobalViewsForScene (const SceneInfo &scene) |
Returns a list of all global views of a scene. More... | |
static StoredViewList | getUserViewsForScene (const SceneInfo &scene) |
Returns a list of all user-generated views of a scene. More... | |
static void | saveUserViews (const SceneInfo &scene, const StoredViewList &list) |
Saves the given user views to userviews.ini, replacing all views existing for this scene The scene MUST be valid, will throw an assertion if not. | |
Data Fields | |
QString | label |
A descriptive label. | |
QString | description |
A description of the view. | |
Vec4d | position |
Stored grid position + current eye height in 4th component. | |
Vec3f | view_fov |
Alt/Az angles in degrees + field of view. | |
bool | isGlobal |
True if this is a position stored next to the scene definition (viewpoints.ini). If false, this is a user-defined view (from userdir\stellarium\scenery3d\userviews.ini). | |
double | jd |
Julian Date of interest. | |
bool | jdIsRelevant |
Indicate if stored date is potentially relevant. | |
Static Public Attributes | |
static QSettings * | userviews |
static const QString | USERVIEWS_FILE |
A structure which stores a specific view position, view direction and FOV, together with a textual description.
|
static |
Returns a list of all global views of a scene.
If the scene is invalid, an empty list is returned.
|
static |
Returns a list of all user-generated views of a scene.
If the scene is invalid, an empty list is returned.