Commit fe69ba4f authored by Artem Fedoskin's avatar Artem Fedoskin

Fix issue with lines not extended to horizon in KStars Lite

parent 94b829b2
......@@ -35,6 +35,7 @@
#include "indi/indistd.h"
#include "indi/driverinfo.h"
#endif
#include <QImage>
#define ZOOM_DEFAULT 100.0
#define ZOOM_MIN 10
......
......@@ -26,6 +26,9 @@
#include "skyobjects/ksasteroid.h"
#include "skyobjects/supernova.h"
#include "deepskyobject.h"
#include "starobject.h"
#include <QTemporaryFile>
#include <QDesktopServices>
......
......@@ -23,6 +23,7 @@
#include "skycomponents/skymapcomposite.h"
#include "skymaplite.h"
#include "kstarslite.h"
#include"deepskyobject.h"
#include "solarsystemcomposite.h"
//Resolver
......
......@@ -23,6 +23,7 @@
#include "deepstaritem.h"
#include "skynodes/dsosymbolnode.h"
#include "deepskyobject.h"
#include "starcomponent.h"
#include "starblockfactory.h"
#include "skymesh.h"
......
......@@ -23,7 +23,7 @@
#include "nodes/pointnode.h"
#include "dsosymbolnode.h"
#include "trixelnode.h"
#include "deepskyobject.h"
#include "../rootnode.h"
#include "../labelsitem.h"
#include "labelnode.h"
......
......@@ -36,6 +36,7 @@ class DSOSymbolNode;
*/
class RootNode;
class DeepSkyObject;
class DeepSkyNode : public SkyNode {
public:
......
......@@ -20,6 +20,7 @@
#include "dsosymbolnode.h"
#include "nodes/ellipsenode.h"
#include "deepskyobject.h"
#include "../rootnode.h"
#include "../labelsitem.h"
......
......@@ -25,6 +25,7 @@ class LabelNode;
class QSGSimpleTextureNode;
class EllipseNode;
class LineNode;
class DeepSkyObject;
class RootNode;
......
......@@ -96,8 +96,16 @@ void LineNode::updateGeometry() {
doSkip = m_skipList->skip(j);
}
bool pointsVisible = false;
//Temporary solution to avoid random lines in Gnomonic projection and draw lines up to horizon
if(SkyMapLite::Instance()->projector()->type() == Projector::Gnomonic) {
if ( isVisible && isVisibleLast ) pointsVisible = true;
} else {
if ( isVisible || isVisibleLast ) pointsVisible = true;
}
if ( !doSkip ) {
if ( (isVisible ) ) {
if(pointsVisible) {
newPoints.append(oLast);
newPoints.append(oThis);
}
......
......@@ -5,6 +5,9 @@
#include "skynodes/deepskynode.h"
#include "skynodes/dsosymbolnode.h"
#include "deepskyobject.h"
#include "starobject.h"
SyncedCatalogItem::SyncedCatalogItem(SyncedCatalogComponent *parent, RootNode *rootNode)
:SkyItem(LabelsItem::label_t::NO_LABEL, rootNode), m_parent(parent), //It has NO_LABEL type because it handles two types of labels (CATALOG_STAR_LABEL and CATALOG_DSO_LABEL)
stars(new QSGNode), dsoSymbols(new QSGNode), dsoNodes(new QSGNode)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment