SkyLine

Search for usage in LXR

SkyLine Class Reference

#include <skyline.h>

Public Member Functions

dms angularSize (int i=0) const
 
void append (SkyPoint *p)
 
void clear ()
 
SkyPointpoint (int i) const
 
QList< SkyPoint * > & points ()
 
void setPoint (int i, SkyPoint *p)
 
void update (KStarsData *data, KSNumbers *num=nullptr)
 

Detailed Description

A series of connected line segments in the sky, composed of SkyPoints at its vertices.

SkyLines are used for constellation lines and boundaries, the coordinate grid, and the equator, ecliptic and horizon.

Note
the SkyLine segments are always straight lines, they are not Great Circle segments joining the two endpoints. Therefore, line segments that need to follow great circles must be approximated with many short SkyLine segments.

Definition at line 26 of file skyline.h.

Constructor & Destructor Documentation

◆ ~SkyLine()

SkyLine::~SkyLine ( )

Definition at line 14 of file skyline.cpp.

Member Function Documentation

◆ angularSize()

dms SkyLine::angularSize ( int i = 0) const
Returns
the angle subtended by any line segment along the SkyLine.
Parameters
ithe index of the line segment to be measured. If no argument is given, the first segment is assumed.

Definition at line 40 of file skyline.cpp.

◆ append()

void SkyLine::append ( SkyPoint * p)

Append a segment to the list by adding a new endpoint.

Parameters
pthe new endpoint to be added

Definition at line 25 of file skyline.cpp.

◆ clear()

void SkyLine::clear ( )

Remove all points from list.

Definition at line 19 of file skyline.cpp.

◆ point()

SkyPoint * SkyLine::point ( int i) const
inline
Returns
a const pointer to a point in the SkyLine param i the index position of the point

Definition at line 44 of file skyline.h.

◆ points()

QList< SkyPoint * > & SkyLine::points ( )
inline

Definition at line 46 of file skyline.h.

◆ setPoint()

void SkyLine::setPoint ( int i,
SkyPoint * p )

Set point i in the SkyLine.

Parameters
ithe index position of the point to modify
pthe new SkyPoint

Definition at line 30 of file skyline.cpp.

◆ update()

void SkyLine::update ( KStarsData * data,
KSNumbers * num = nullptr )

Definition at line 67 of file skyline.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 20 2024 11:53:02 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.