Add frozen TikZRefinery demo baseline and build pipeline
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
#pragma once
|
||||
|
||||
#include "model/EditorTypes.h"
|
||||
|
||||
namespace TikzRefinery {
|
||||
|
||||
// Scene units are independent of viewport pixels, zoom and pan.
|
||||
class tkrCoordinateMapper final
|
||||
{
|
||||
public:
|
||||
OperationResult configure(const QPointF &ptSceneOrigin, qreal rSceneUnitsPerCentimeter);
|
||||
QPointF mapToScene(const QPointF &ptTikzPosition) const;
|
||||
QPointF mapToTikz(const QPointF &ptScenePosition) const;
|
||||
|
||||
private:
|
||||
QPointF m_ptSceneOrigin = QPointF(200.0, 300.0);
|
||||
qreal m_rSceneUnitsPerCentimeter = 100.0;
|
||||
};
|
||||
|
||||
} // namespace TikzRefinery
|
||||
Reference in New Issue
Block a user