22 #ifndef TITANIC_CAMERA_H 23 #define TITANIC_CAMERA_H 25 #include "titanic/star_control/fmatrix.h" 26 #include "titanic/star_control/base_stars.h" 27 #include "titanic/star_control/viewport.h" 33 struct CNavigationInfo;
37 enum StarLockLevel { ZERO_LOCKED=0, ONE_LOCKED=1, TWO_LOCKED=2, THREE_LOCKED=3 };
44 static FMatrix *_priorOrientation;
45 static FMatrix *_newOrientation;
47 StarLockLevel _lockLevel;
52 bool _isInLockingProcess;
64 void deleteMotionController();
120 virtual void setCenterYAngle(
int v);
121 virtual void setCenterZAngle(
int v);
122 virtual void randomizeOrientation();
123 virtual void setFields(StarMode mode,
double val);
155 virtual void reposition(
double factor);
162 virtual void changeOrientation(
FMatrix &m);
169 virtual FPose getRawPose();
182 virtual StarColor getStarColor()
const;
189 virtual FVector getRelativePosNoCentering(
int index,
const FVector &src);
190 virtual FVector getRelativePosCentering(
int index,
const FVector &v);
191 virtual FVector getRelativePosCenteringRaw(
int index,
const FVector &v);
virtual void updatePosition(CErrorCode *errorCode)
virtual void setMotion(const CNavigationInfo *src)
virtual bool addLockedStar(const FVector v)
Definition: error_code.h:27
Definition: viewport.h:44
bool isNotInLockingProcess()
virtual StarLockLevel getLockLevel() const
Definition: camera.h:201
bool lockMarker3(CViewport *viewport, const FVector &v)
void clearIsMoved()
Definition: camera.h:257
virtual bool removeLockedStar()
virtual void setFrontClip(double n)
Definition: simple_file.h:49
virtual void setRoleAngle(double angle)
virtual void SetBackClip(double f)
void setIsMoved()
Definition: camera.h:252
virtual void setPosition(const FVector &v)
float calcAngleForMinDist(FVector &x, FVector &y, float &minDistance)
virtual void setViewport(const CViewport *src)
virtual void setViewportAngle(const FPoint &angles)
bool lockMarker1(FVector v1, FVector v2, FVector v3)
virtual void save(SimpleFile *file, int indent)
bool lockMarker2(CViewport *viewport, const FVector &v)
virtual void getRelativeXCenterPixels(double *v1, double *v2, double *v3, double *v4)
virtual double getFrontClip() const
virtual void setOrientation(const FVector &v)
bool isMoved() const
Definition: camera.h:247
virtual void load(SimpleFile *file, int param)
Definition: motion_control.h:63
Definition: motion_control.h:35
virtual void deccelerate()
virtual void accelerate()
virtual FVector getRelativePos(int index, const FVector &src)
virtual double getBackClip() const
virtual void setDestination(const FVector &v)