8#include <klocalizedcontext.h>
12#include "mosaictilesmodel.h"
14#include "ekos_scheduler_debug.h"
19MosaicTilesModel::MosaicTilesModel(
QObject *parent) :
QObject(parent)
21 m_FocalLength = Options::telescopeFocalLength();
22 m_CameraSize.setWidth(Options::cameraWidth());
23 m_CameraSize.setHeight(Options::cameraHeight());
24 m_PixelSize.setWidth(Options::cameraPixelWidth());
25 m_PixelSize.setHeight(Options::cameraPixelHeight());
26 m_PositionAngle = Options::cameraRotation();
29void MosaicTilesModel::setPositionAngle(
double value)
31 m_PositionAngle = std::fmod(value * -1 + 360.0, 360.0);
34void MosaicTilesModel::setOverlap(
double value)
36 m_Overlap = (value < 0) ? 0 : (1 < value) ? 1 : value;
39MosaicTilesModel::~MosaicTilesModel()
43std::shared_ptr<MosaicTilesModel::OneTile> MosaicTilesModel::oneTile(
int row,
int col)
45 int offset = row * m_GridSize.width() + col;
47 if (offset < 0 || offset >= m_Tiles.size())
50 return m_Tiles[offset];
59bool MosaicTilesModel::fromXML(XMLEle *root)
77void MosaicTilesModel::appendTile(
const OneTile &value)
79 m_Tiles.append(std::make_shared<OneTile>(value));
82void MosaicTilesModel::appendEmptyTile()
84 m_Tiles.append(std::make_shared<OneTile>());
87void MosaicTilesModel::clearTiles()
Ekos is an advanced Astrophotography tool for Linux.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:16:41 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.