git-svn-id: svn://db.shs.com.ru/libs@651 a8b55f48-bf90-11e4-a774-851b48703e85
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user