ArtificialHorizon

Search for usage in LXR

ArtificialHorizon Class Reference

#include <artificialhorizoncomponent.h>

Public Member Functions

void addRegion (const QString &regionName, bool enabled, const std::shared_ptr< LineList > &list, bool ceiling)
 
double altitudeConstraint (double azimuthDegrees) const
 
bool altitudeConstraintsExist () const
 
void drawPolygons (SkyPainter *painter, QList< LineList > *regions=nullptr)
 
bool enabled (int i) const
 
ArtificialHorizonEntity * findRegion (const QString &regionName)
 
const ArtificialHorizonEntity * getConstraintAbove (double azimuthDegrees, double altitudeDegrees, const ArtificialHorizonEntity *ignore=nullptr) const
 
const ArtificialHorizonEntity * getConstraintBelow (double azimuthDegrees, double altitudeDegrees, const ArtificialHorizonEntity *ignore=nullptr) const
 
const QList< ArtificialHorizonEntity * > * horizonList () const
 
bool isAltitudeOK (double azimuthDegrees, double altitudeDegrees, QString *reason) const
 
bool isVisible (double azimuthDegrees, double altitudeDegrees, QString *reason=nullptr) const
 
void load (const QList< ArtificialHorizonEntity * > &list)
 
void removeRegion (const QString &regionName, bool lineOnly=false)
 

Detailed Description

Represents custom area from the horizon upwards which represent blocked views from the vantage point of the user.

Such blocked views could stem for example from tall trees or buildings. The user can define a series of line segments to represent the blocked areas.

Author
Jasem Mutlaq
Version
0.1

Definition at line 61 of file artificialhorizoncomponent.h.

Constructor & Destructor Documentation

◆ ArtificialHorizon()

ArtificialHorizon::ArtificialHorizon ( )
inline

Definition at line 64 of file artificialhorizoncomponent.h.

◆ ~ArtificialHorizon()

ArtificialHorizon::~ArtificialHorizon ( )

Definition at line 151 of file artificialhorizoncomponent.cpp.

Member Function Documentation

◆ addRegion()

void ArtificialHorizon::addRegion ( const QString & regionName,
bool enabled,
const std::shared_ptr< LineList > & list,
bool ceiling )

Definition at line 701 of file artificialhorizoncomponent.cpp.

◆ altitudeConstraint()

double ArtificialHorizon::altitudeConstraint ( double azimuthDegrees) const

Definition at line 762 of file artificialhorizoncomponent.cpp.

◆ altitudeConstraintsExist()

bool ArtificialHorizon::altitudeConstraintsExist ( ) const

Definition at line 723 of file artificialhorizoncomponent.cpp.

◆ drawPolygons()

void ArtificialHorizon::drawPolygons ( SkyPainter * painter,
QList< LineList > * regions = nullptr )

Definition at line 556 of file artificialhorizoncomponent.cpp.

◆ enabled()

bool ArtificialHorizon::enabled ( int i) const

Definition at line 641 of file artificialhorizoncomponent.cpp.

◆ findRegion()

ArtificialHorizonEntity * ArtificialHorizon::findRegion ( const QString & regionName)

Definition at line 646 of file artificialhorizoncomponent.cpp.

◆ getConstraintAbove()

const ArtificialHorizonEntity * ArtificialHorizon::getConstraintAbove ( double azimuthDegrees,
double altitudeDegrees,
const ArtificialHorizonEntity * ignore = nullptr ) const

Definition at line 733 of file artificialhorizoncomponent.cpp.

◆ getConstraintBelow()

const ArtificialHorizonEntity * ArtificialHorizon::getConstraintBelow ( double azimuthDegrees,
double altitudeDegrees,
const ArtificialHorizonEntity * ignore = nullptr ) const

Definition at line 807 of file artificialhorizoncomponent.cpp.

◆ horizonList()

const QList< ArtificialHorizonEntity * > * ArtificialHorizon::horizonList ( ) const
inline

Definition at line 73 of file artificialhorizoncomponent.h.

◆ isAltitudeOK()

bool ArtificialHorizon::isAltitudeOK ( double azimuthDegrees,
double altitudeDegrees,
QString * reason ) const

Definition at line 832 of file artificialhorizoncomponent.cpp.

◆ isVisible()

bool ArtificialHorizon::isVisible ( double azimuthDegrees,
double altitudeDegrees,
QString * reason = nullptr ) const

Definition at line 850 of file artificialhorizoncomponent.cpp.

◆ load()

void ArtificialHorizon::load ( const QList< ArtificialHorizonEntity * > & list)

Definition at line 157 of file artificialhorizoncomponent.cpp.

◆ removeRegion()

void ArtificialHorizon::removeRegion ( const QString & regionName,
bool lineOnly = false )

Definition at line 662 of file artificialhorizoncomponent.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:01 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.