Reverse spacing control direction effect

This commit is contained in:
manongjohn 2021-11-06 18:11:23 -04:00
parent 853011a9a9
commit 0c08976b4e
2 changed files with 7 additions and 4 deletions

View file

@ -913,7 +913,7 @@ void PerspectiveTool::leftButtonDrag(const TPointD &pos, const TMouseEvent &e) {
std::pow(centerPoint.y - m_firstPos.y, 2));
double db = std::sqrt(std::pow(centerPoint.x - pos.x, 2) +
std::pow(centerPoint.y - pos.y, 2));
dSpace = da - db;
dSpace = db - da;
if (e.isAltPressed()) {
m_totalSpacing += dSpace;

View file

@ -369,8 +369,9 @@ public:
class VanishingPointPerspective final : public PerspectiveObject {
public:
VanishingPointPerspective()
: PerspectiveObject(PerspectiveType::VanishingPoint, TPointD(0, 0), 0.0,
10, false, 30, TPixel::Magenta, false) {
: PerspectiveObject(PerspectiveType::VanishingPoint) {
setSpacing(10);
setParallel(false);
setMaxSpacing(180);
setRotationPos(TPointD(40, -20));
};
@ -395,7 +396,9 @@ public:
class LinePerspective final : public PerspectiveObject {
public:
LinePerspective() : PerspectiveObject(PerspectiveType::Line){};
LinePerspective() : PerspectiveObject(PerspectiveType::Line) {
setSpacing(30);
};
~LinePerspective(){};
void draw(SceneViewer *viewer, TRectD cameraRect) override;