git-svn-id: svn://db.shs.com.ru/libs@651 a8b55f48-bf90-11e4-a774-851b48703e85

This commit is contained in:
2019-12-04 17:04:06 +00:00
parent d7797e2278
commit 888f970f44
20 changed files with 224 additions and 329 deletions

View File

@@ -247,11 +247,24 @@ public:
QVector3D worldDirection() const {return (itransform_ * QVector4D(QVector3D(0,0,-1), 0.)).toVector3D().normalized();}
void setDirection(const QVector3D & d);
void setDirection(double x, double y, double z) {setDirection(QVector3D(x, y, z));}
double distance() const {return aim_dist;}
void setDistance(double d) {aim_dist = d;}
void flyCloser(double s);
void flyFarer(double s);
void flyToDistance(double d);
void moveForward(const float & x, bool withZ = true);
void moveBackward(const float & x, bool withZ = true) {moveForward(-x, withZ);}
void moveLeft(const float & x, bool withZ = true);
void moveRight(const float & x, bool withZ = true) {moveLeft(-x, withZ);}
void moveUp(const float & x, bool onlyZ = false);
void moveDown(const float & x, bool onlyZ = false) {moveUp(-x, onlyZ);}
void rotateRoll(const float & a) {rotateY(a);}
void orbitZ(const float & a);
void orbitXY(const float & a);
protected:
void transformChanged() override;
double aim_dist;