Stellarium  0.19.3
Static Public Member Functions | Data Fields | Static Public Attributes
StoredView Struct Reference

A structure which stores a specific view position, view direction and FOV, together with a textual description.

#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. More...
 

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
 

Member Function Documentation

◆ getGlobalViewsForScene()

static StoredViewList StoredView::getGlobalViewsForScene ( const SceneInfo scene)
static

If the scene is invalid, an empty list is returned.

◆ getUserViewsForScene()

static StoredViewList StoredView::getUserViewsForScene ( const SceneInfo scene)
static

If the scene is invalid, an empty list is returned.

◆ saveUserViews()

static void StoredView::saveUserViews ( const SceneInfo scene,
const StoredViewList &  list 
)
static