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 149 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 642 of file artificialhorizoncomponent.cpp.

◆ altitudeConstraint()

double ArtificialHorizon::altitudeConstraint ( double azimuthDegrees) const

Definition at line 703 of file artificialhorizoncomponent.cpp.

◆ altitudeConstraintsExist()

bool ArtificialHorizon::altitudeConstraintsExist ( ) const

Definition at line 664 of file artificialhorizoncomponent.cpp.

◆ drawPolygons()

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

Definition at line 547 of file artificialhorizoncomponent.cpp.

◆ enabled()

bool ArtificialHorizon::enabled ( int i) const

Definition at line 582 of file artificialhorizoncomponent.cpp.

◆ findRegion()

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

Definition at line 587 of file artificialhorizoncomponent.cpp.

◆ getConstraintAbove()

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

Definition at line 674 of file artificialhorizoncomponent.cpp.

◆ getConstraintBelow()

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

Definition at line 748 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 773 of file artificialhorizoncomponent.cpp.

◆ isVisible()

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

Definition at line 791 of file artificialhorizoncomponent.cpp.

◆ load()

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

Definition at line 155 of file artificialhorizoncomponent.cpp.

◆ removeRegion()

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

Definition at line 603 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 May 17 2024 11:48:27 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.