#include <camera.h>
Public Member Functions | |
CCamera (const CNavigationInfo *data) | |
CCamera (CViewport *src) | |
virtual void | setViewport (const CViewport *src) |
virtual void | setMotion (const CNavigationInfo *src) |
bool | isNotInLockingProcess () |
virtual void | setPosition (const FVector &v) |
virtual void | setOrientation (const FVector &v) |
virtual void | setRoleAngle (double angle) |
virtual void | setFrontClip (double n) |
virtual void | SetBackClip (double f) |
virtual void | setCenterYAngle (int v) |
virtual void | setCenterZAngle (int v) |
virtual void | randomizeOrientation () |
virtual void | setFields (StarMode mode, double val) |
virtual void | setDestination (const FVector &v) |
virtual void | updatePosition (CErrorCode *errorCode) |
virtual void | accelerate () |
virtual void | deccelerate () |
virtual void | fullSpeed () |
virtual void | stop () |
virtual void | reposition (double factor) |
virtual void | setPosition (const FPose &pose) |
virtual void | changeOrientation (FMatrix &m) |
virtual FPose | getPose () |
virtual FPose | getRawPose () |
virtual double | getFrontClip () const |
virtual double | getBackClip () const |
virtual StarColor | getStarColor () const |
virtual FVector | getRelativePos (int index, const FVector &src) |
virtual FVector | getRelativePosNoCentering (int index, const FVector &src) |
virtual FVector | getRelativePosCentering (int index, const FVector &v) |
virtual FVector | getRelativePosCenteringRaw (int index, const FVector &v) |
virtual void | setViewportAngle (const FPoint &angles) |
virtual StarLockLevel | getLockLevel () const |
virtual bool | addLockedStar (const FVector v) |
virtual bool | removeLockedStar () |
virtual void | getRelativeXCenterPixels (double *v1, double *v2, double *v3, double *v4) |
virtual void | load (SimpleFile *file, int param) |
virtual void | save (SimpleFile *file, int indent) |
float | calcAngleForMinDist (FVector &x, FVector &y, float &minDistance) |
bool | isMoved () const |
void | setIsMoved () |
void | clearIsMoved () |
bool | lockMarker1 (FVector v1, FVector v2, FVector v3) |
bool | lockMarker2 (CViewport *viewport, const FVector &v) |
bool | lockMarker3 (CViewport *viewport, const FVector &v) |
Static Public Member Functions | |
static void | init () |
static void | deinit () |
Implements a reference point from which the starmap can be viewed
|
virtual |
Copy the state from a specified viewport
|
virtual |
Set motion from the passed navigation info
bool Titanic::CCamera::isNotInLockingProcess | ( | ) |
The mover/view is not currently homing in on a new star This can mean it is unmarked, or that it is fully locked onto one star or more (but not in the process of doing so)
|
virtual |
Set the camera position
|
virtual |
Sets the camera orientation
|
virtual |
Assigns a roll angle about the view direction
|
virtual |
Assign a near clip plane distance
|
virtual |
Assign a far clipping plane distance
|
virtual |
Sets the destination to move the camera to
|
virtual |
Updates the camera position
|
virtual |
Increases movement speed in forward direction
|
virtual |
Increases movement speed in backward direction
|
virtual |
Increase to full speed
|
virtual |
Completely stop
|
virtual |
Set the camera position
|
virtual |
Get the position and direction of the camera
|
virtual |
Get the front clipping distance
|
virtual |
Get the back clipping distance
Return the passed vector relative to the center of the viewpoint
|
virtual |
Sets the viewport position within the starfield
|
inlinevirtual |
How many stars are currently locked onto
|
virtual |
Adds the row for a locked in marker/star
|
virtual |
Removes the most recent locked in marker/star
|
virtual |
All arguments are return values First is the x center coordinate relative to y Second is the x center coordinate relative to z Third is the first x center pixel offset Fourth is the second x center pixel offset
|
virtual |
Load the data for the class from file
|
virtual |
Save the data for the class to file
Calculates the angle of rotation of y that achieves the minimum distance to x. The angle is in degrees. Also returns the minimum distance calculated
|
inline |
Returns true for whether the camera has been moved
|
inline |
Sets the camera as having been moved
|
inline |
Resets the flag for whether the camera has moved
Lock in the first matched star marker
Lock in the second matched star marker
Lock in the third and final matched star marker