Stellarium 0.15.2
List of all members | Static Public Member Functions | Public Attributes | Static Public Attributes
StoredView Struct Reference

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

#include <SceneInfo.hpp>

+ Collaboration diagram for StoredView:

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

Public Attributes

QString label
 A descriptive label. More...
 
QString description
 A description of the view. More...
 
Vec4d position
 Stored grid position + current eye height in 4th component. More...
 
Vec3f view_fov
 Alt/Az angles in degrees + field of view. More...
 
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). More...
 
double jd
 Julian Date of interest. More...
 
bool jdIsRelevant
 Indicate if stored date is potentially relevant. More...
 

Static Public Attributes

static QSettings * userviews
 
static const QString USERVIEWS_FILE
 

Detailed Description

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

Definition at line 152 of file SceneInfo.hpp.

Member Function Documentation

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

Returns a list of all global views of a scene.

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

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

Returns a list of all user-generated views of a scene.

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

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

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.

Member Data Documentation

QString StoredView::description

A description of the view.

Definition at line 160 of file SceneInfo.hpp.

bool StoredView::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).

Definition at line 166 of file SceneInfo.hpp.

double StoredView::jd

Julian Date of interest.

Definition at line 168 of file SceneInfo.hpp.

bool StoredView::jdIsRelevant

Indicate if stored date is potentially relevant.

Definition at line 170 of file SceneInfo.hpp.

QString StoredView::label

A descriptive label.

Definition at line 158 of file SceneInfo.hpp.

Vec4d StoredView::position

Stored grid position + current eye height in 4th component.

Definition at line 162 of file SceneInfo.hpp.

Vec3f StoredView::view_fov

Alt/Az angles in degrees + field of view.

Definition at line 164 of file SceneInfo.hpp.


The documentation for this struct was generated from the following file: