Related Links
Window and Camera Services

Overview

The window and camera services enables external applications to control basic camera functions as well as adding/removing post-process effects and sensor modes using window plug-ins.

Namespaces

 P3D::P3D
 

Classes

struct  PickResult
 
class  IWindowPluginSystemV400
 
class  IWindowPluginSystemV420
 
class  ICameraSystemV400
 
class  ICameraSystemV410
 
class  ICameraSystemV430
 
class  ICameraSystemV440
 
class  ICameraSystemV450
 
class  IWindowV400
 
class  IWindowV410
 
class  IWindowV420
 
class  IWindowV430
 
class  IMouseRectListenerCallback
 
class  IWindowPluginSystemV440
 
class  ICameraSystemV451
 
class  IWindowV440
 
class  WindowPlugin
 

Class Documentation

§ P3D::PickResult

struct P3D::PickResult

Public Member Functions

 PickResult () noexcept
 

Public Attributes

bool bWasHit
 
ScreenCoord Location
 
unsigned int uMessage
 
float fTextureU
 
float fTextureV
 
IWindowV400 * pWindow
 

Constructor & Destructor Documentation

§ PickResult()

PickResult ( )
inlinenoexcept

Member Data Documentation

§ bWasHit

bool bWasHit

§ fTextureU

float fTextureU

§ fTextureV

float fTextureV

§ Location

ScreenCoord Location

§ pWindow

IWindowV400* pWindow

§ uMessage

unsigned int uMessage

§ P3D::P3D::IWindowPluginSystemV400

class P3D::P3D::IWindowPluginSystemV400

Service for accessing windows and registering window plugins.

Inherits IUnknown.

Inherited by IWindowPluginSystemV420.

Private Member Functions

virtual HRESULT RegisterMouseRectListenerCallback (IMouseRectListenerCallback *callback) override
 
virtual HRESULT UnRegisterMouseRectListenerCallback (IMouseRectListenerCallback *callback) override
 
virtual HRESULT FireMouseRectClick (UINT id, MOUSE_CLICK_TYPE clickType) override
 
virtual BOOL HasWindow (LPCWSTR name) override
 
virtual HRESULT GetWindowList (IWindowList &windows) override
 
virtual HRESULT GetWindow (LPCWSTR name, IWindowV400 *&window) override
 
virtual HRESULT RegisterInternalWindow (LPCWSTR name, IWindowPluginV400 *plugin) override
 
virtual HRESULT UnRegisterInternalWindow (LPCWSTR name, IWindowPluginV400 *callback) override
 
virtual HRESULT CreateInternalWindow (LPCWSTR name, UINT32 x, UINT32 y, UINT32 width, UINT32 height, IWindowPluginV400 *pPlugin, bool bRTT=false) override
 
virtual HRESULT CloseInternalWindow (LPCWSTR name) override
 
virtual IWindowV400GetCurrentWindow () override
 

Member Function Documentation

§ CloseInternalWindow()

virtual HRESULT CloseInternalWindow ( LPCWSTR  name)
privatepure virtual

Close an existing window Return error if window does not exist

Parameters
[in]nameName of the window
Returns
HRESULT, S_OK if function succeeds or E_FAIL if it fails

Implemented in IWindowPluginSystemV440, and IWindowPluginSystemV420.

§ CreateInternalWindow()

virtual HRESULT CreateInternalWindow ( LPCWSTR  name,
UINT32  x,
UINT32  y,
UINT32  width,
UINT32  height,
IWindowPluginV400 *  pPlugin,
bool  bRTT = false 
)
privatepure virtual

Create a new window and register a callback. Return error if window already exist

Parameters
[in]name,Nameof the window
[in]x,yWindow position relative to parent window. (origin is top left corner)
[in]width,heightWindow dimensions in pixels
[in]pluginPlugin that will be registered at creation time
[in]bRTTDetermines if this window is a render-to-texture view.
Returns
HRESULT, S_OK if function succeeds or E_FAIL if it fails

Implemented in IWindowPluginSystemV440, and IWindowPluginSystemV420.

§ FireMouseRectClick()

virtual HRESULT FireMouseRectClick ( UINT  id,
MOUSE_CLICK_TYPE  clickType 
)
privatepure virtual

Used to fire a mouse rectangle with the given ID and click type.

Parameters
idid of the mouse rect hit
clickTypeclick type

Implemented in IWindowPluginSystemV440, and IWindowPluginSystemV420.

§ GetCurrentWindow()

virtual IWindowV400* GetCurrentWindow ( )
privatepure virtual

This will return the window currently being rendered or updated. If no windows are being rendered, or updated, this will return the active 3d window. If no 3d view windows are active, this will return the default 3d view.

Returns
Current window pointer. Will return nullptr if it request fails.

Implemented in IWindowPluginSystemV440, and IWindowPluginSystemV420.

§ GetWindow()

virtual HRESULT GetWindow ( LPCWSTR  name,
IWindowV400 *&  window 
)
privatepure virtual

Get a IWindowReaderPdk interface for a 3D view window with the inpute name

Parameters
[in]nameName of the window
[out]windowThe window with the requested name
Returns
HRESULT, S_OK if function succeeds or E_FAIL if it fails

Implemented in IWindowPluginSystemV420.

§ GetWindowList()

virtual HRESULT GetWindowList ( IWindowList windows)
privatepure virtual

Get list of windows containing a 3D view that are currently open

Parameters
[out]windowslist of windows
Returns
HRESULT, S_OK if function succeeds or E_FAIL if it fails

Implemented in IWindowPluginSystemV440, and IWindowPluginSystemV420.

§ HasWindow()

virtual BOOL HasWindow ( LPCWSTR  name)
privatepure virtual

Check if a window containing a 3d view exists

Returns
name Name of the window

Implemented in IWindowPluginSystemV440, and IWindowPluginSystemV420.

§ RegisterInternalWindow()

virtual HRESULT RegisterInternalWindow ( LPCWSTR  name,
IWindowPluginV400 *  plugin 
)
privatepure virtual

Register a callback to an existing window. Return error if window does not exist

Parameters
[in]nameName of the window
[in]pluginPlugin that will be registered to the window
Returns
HRESULT, S_OK if function succeeds or E_FAIL if it fails
Remarks
While the name is used to find the window, the plugin is added to the window and will continue to get called even if the camera changes or the window name changes.

Implemented in IWindowPluginSystemV440, and IWindowPluginSystemV420.

§ RegisterMouseRectListenerCallback()

virtual HRESULT RegisterMouseRectListenerCallback ( IMouseRectListenerCallback callback)
privatepure virtual

Register a callback to be hit when a mouse rectangle is clicked.

Parameters
callbackThe callback to register

Implemented in IWindowPluginSystemV440, and IWindowPluginSystemV420.

§ UnRegisterInternalWindow()

virtual HRESULT UnRegisterInternalWindow ( LPCWSTR  name,
IWindowPluginV400 *  callback 
)
privatepure virtual

Unregister a callback from an existing window. Return error if window does not exist

Parameters
[in]nameName of the window
[in]pluginPlugin that will be unregistered
Returns
HRESULT, S_OK if function succeeds or E_FAIL if it fails

Implemented in IWindowPluginSystemV440, and IWindowPluginSystemV420.

§ UnRegisterMouseRectListenerCallback()

virtual HRESULT UnRegisterMouseRectListenerCallback ( IMouseRectListenerCallback callback)
privatepure virtual

UnRegister a callback that would be hit when a mouse rectangle is clicked.

Parameters
callbackThe callback to unregister

Implemented in IWindowPluginSystemV440, and IWindowPluginSystemV420.

§ P3D::P3D::IWindowPluginSystemV420

class P3D::P3D::IWindowPluginSystemV420

Inherits IWindowPluginSystemV400.

Inherited by IWindowPluginSystemV440.

Private Member Functions

virtual HRESULT RegisterMouseRectListenerCallback (IMouseRectListenerCallback *callback) override
 
virtual HRESULT UnRegisterMouseRectListenerCallback (IMouseRectListenerCallback *callback) override
 
virtual HRESULT FireMouseRectClick (UINT id, MOUSE_CLICK_TYPE clickType) override
 
virtual BOOL HasWindow (LPCWSTR name) override
 
virtual HRESULT GetWindowList (IWindowList &windows) override
 
virtual HRESULT GetWindow (LPCWSTR name, IWindowV400 *&window) override
 
virtual HRESULT RegisterInternalWindow (LPCWSTR name, IWindowPluginV400 *plugin) override
 
virtual HRESULT UnRegisterInternalWindow (LPCWSTR name, IWindowPluginV400 *callback) override
 
virtual HRESULT CreateInternalWindow (LPCWSTR name, UINT32 x, UINT32 y, UINT32 width, UINT32 height, IWindowPluginV400 *pPlugin, bool bRTT=false) override
 
virtual HRESULT CloseInternalWindow (LPCWSTR name) override
 
virtual IWindowV400GetCurrentWindow () override
 
virtual HRESULT CreateCameraInstance (const GUID &guidCameraDefinition, LPCWSTR pszName, UINT uObjectId, UINT &uInstanceId) override
 
virtual HRESULT CreateCameraInstance (const GUID &guidCameraDefinition, LPCWSTR pszName, double dLatDegrees, double dLonDegrees, double dAltMeters, UINT &uInstanceId) override
 
virtual HRESULT DeleteCameraInstance (const GUID &guidCameraDefinition, UINT uInstanceId) override
 

Member Function Documentation

§ CloseInternalWindow()

virtual HRESULT CloseInternalWindow ( LPCWSTR  name)
privatepure virtual

Close an existing window Return error if window does not exist

Parameters
[in]nameName of the window
Returns
HRESULT, S_OK if function succeeds or E_FAIL if it fails

Implements IWindowPluginSystemV400.

Implemented in IWindowPluginSystemV440.

§ CreateCameraInstance() [1/2]

virtual HRESULT CreateCameraInstance ( const GUID &  guidCameraDefinition,
LPCWSTR  pszName,
UINT  uObjectId,
UINT &  uInstanceId 
)
privatepure virtual

This function is used to create a new camera instance on the given object based on the given camera definition.

Parameters
[in]guidCameraDefinitionThe guid of the camera definition to be used to create the camera.
[in]pszNameThe name of the camera.
[in]uObjectIdThe id of the object that this camera instance will be associated with.
[out]uInstanceIdThe instance id of the created camera.
Returns
HRESULT, S_OK if function succeeds or E_FAIL if it fails.

Implemented in IWindowPluginSystemV440.

§ CreateCameraInstance() [2/2]

virtual HRESULT CreateCameraInstance ( const GUID &  guidCameraDefinition,
LPCWSTR  pszName,
double  dLatDegrees,
double  dLonDegrees,
double  dAltMeters,
UINT &  uInstanceId 
)
privatepure virtual

This function is used to create a new camera instance at the given location based on the given camera definition.

Parameters
[in]guidCameraDefinitionThe guid of the camera definition to be used to create the camera.
[in]pszNameThe name of the camera.
[in]dLatDegreesThe latitude of the camera in degrees.
[in]dLonDegreesThe longitude of the camera in degrees.
[in]dAltMetersThe altitude of the camera in meters.
[out]uInstanceIdThe instance id of the created camera.
Returns
HRESULT, S_OK if function succeeds or E_FAIL if it fails.

Implemented in IWindowPluginSystemV440.

§ CreateInternalWindow()

virtual HRESULT CreateInternalWindow ( LPCWSTR  name,
UINT32  x,
UINT32  y,
UINT32  width,
UINT32  height,
IWindowPluginV400 *  pPlugin,
bool  bRTT = false 
)
privatepure virtual

Create a new window and register a callback. Return error if window already exist

Parameters
[in]name,Nameof the window
[in]x,yWindow position relative to parent window. (origin is top left corner)
[in]width,heightWindow dimensions in pixels
[in]pluginPlugin that will be registered at creation time
[in]bRTTDetermines if this window is a render-to-texture view.
Returns
HRESULT, S_OK if function succeeds or E_FAIL if it fails

Implements IWindowPluginSystemV400.

Implemented in IWindowPluginSystemV440.

§ DeleteCameraInstance()

virtual HRESULT DeleteCameraInstance ( const GUID &  guidCameraDefinition,
UINT  uInstanceId 
)
privatepure virtual

This function is used to delete a camera instance.

Parameters
[in]guidCameraDefinitionThe guid of the camera definition to be used to delete the camera instance.
[in]uInstanceIdThe instance id of the camera to be deleted.
Returns
HRESULT, S_OK if function succeeds or E_FAIL if it fails.

Implemented in IWindowPluginSystemV440.

§ FireMouseRectClick()

virtual HRESULT FireMouseRectClick ( UINT  id,
MOUSE_CLICK_TYPE  clickType 
)
privatepure virtual

Used to fire a mouse rectangle with the given ID and click type.

Parameters
idid of the mouse rect hit
clickTypeclick type

Implements IWindowPluginSystemV400.

Implemented in IWindowPluginSystemV440.

§ GetCurrentWindow()

virtual IWindowV400* GetCurrentWindow ( )
privatepure virtual

This will return the window currently being rendered or updated. If no windows are being rendered, or updated, this will return the active 3d window. If no 3d view windows are active, this will return the default 3d view.

Returns
Current window pointer. Will return nullptr if it request fails.

Implements IWindowPluginSystemV400.

Implemented in IWindowPluginSystemV440.

§ GetWindow()

virtual HRESULT GetWindow ( LPCWSTR  name,
IWindowV400 *&  window 
)
privatepure virtual

Get a IWindowReaderPdk interface for a 3D view window with the inpute name

Parameters
[in]nameName of the window
[out]windowThe window with the requested name
Returns
HRESULT, S_OK if function succeeds or E_FAIL if it fails

Implements IWindowPluginSystemV400.

§ GetWindowList()

virtual HRESULT GetWindowList ( IWindowList windows)
privatepure virtual

Get list of windows containing a 3D view that are currently open

Parameters
[out]windowslist of windows
Returns
HRESULT, S_OK if function succeeds or E_FAIL if it fails

Implements IWindowPluginSystemV400.

Implemented in IWindowPluginSystemV440.

§ HasWindow()

virtual BOOL HasWindow ( LPCWSTR  name)
privatepure virtual

Check if a window containing a 3d view exists

Returns
name Name of the window

Implements IWindowPluginSystemV400.

Implemented in IWindowPluginSystemV440.

§ RegisterInternalWindow()

virtual HRESULT RegisterInternalWindow ( LPCWSTR  name,
IWindowPluginV400 *  plugin 
)
privatepure virtual

Register a callback to an existing window. Return error if window does not exist

Parameters
[in]nameName of the window
[in]pluginPlugin that will be registered to the window
Returns
HRESULT, S_OK if function succeeds or E_FAIL if it fails
Remarks
While the name is used to find the window, the plugin is added to the window and will continue to get called even if the camera changes or the window name changes.

Implements IWindowPluginSystemV400.

Implemented in IWindowPluginSystemV440.

§ RegisterMouseRectListenerCallback()

virtual HRESULT RegisterMouseRectListenerCallback ( IMouseRectListenerCallback callback)
privatepure virtual

Register a callback to be hit when a mouse rectangle is clicked.

Parameters
callbackThe callback to register

Implements IWindowPluginSystemV400.

Implemented in IWindowPluginSystemV440.

§ UnRegisterInternalWindow()

virtual HRESULT UnRegisterInternalWindow ( LPCWSTR  name,
IWindowPluginV400 *  callback 
)
privatepure virtual

Unregister a callback from an existing window. Return error if window does not exist

Parameters
[in]nameName of the window
[in]pluginPlugin that will be unregistered
Returns
HRESULT, S_OK if function succeeds or E_FAIL if it fails

Implements IWindowPluginSystemV400.

Implemented in IWindowPluginSystemV440.

§ UnRegisterMouseRectListenerCallback()

virtual HRESULT UnRegisterMouseRectListenerCallback ( IMouseRectListenerCallback callback)
privatepure virtual

UnRegister a callback that would be hit when a mouse rectangle is clicked.

Parameters
callbackThe callback to unregister

Implements IWindowPluginSystemV400.

Implemented in IWindowPluginSystemV440.

§ P3D::P3D::ICameraSystemV400

class P3D::P3D::ICameraSystemV400

Inherits IUnknown.

Inherited by ICameraSystemV410.

Private Member Functions

virtual void GetCameraDefinition (WCHAR *cameraDefinition) override
 
virtual void SetRelative6DOF (float fDeltaX, float fDeltaY, float fDeltaZ, float fPitchDeg, float fBankDeg, float fHeadingDeg) override
 
virtual void SetSmoothRelative6DOF (float fDeltaX, float fDeltaY, float fDeltaZ, float fPitchDeg, float fBankDeg, float fHeadingDeg, float smoothPanTime=0) override
 
virtual void SetFov (float hFov, float vFov) override
 
virtual void SetZoomGoal (float zoomGoal) override
 
virtual void SetZoom (float zoom) override
 
virtual void PanToView (const WCHAR *name) override
 
virtual void AddPostProcess (const WCHAR *name) override
 
virtual void RemovePostProcess (const WCHAR *name) override
 
virtual void ResetPostProcess () override
 
virtual void ClearPostProcess () override
 
virtual void ZoomIn (void) override
 
virtual void ZoomOut (void) override
 
virtual void SetVirtualCockpitTransparentValue (unsigned int level) override
 
virtual void SetChaseDistance (float fDistance) override
 
virtual void SetSensorMode (unsigned int mode) override
 
virtual void SetExcludeVcPostProcess (bool exclude) override
 
virtual void SetExcludeVcPanelsSensor (bool exclude) override
 
virtual void SetFarClip (float far) override
 
virtual void SetNearClip (float near) override
 
virtual void SetTerrainLODOriginLLA (double lat, double lon, double alt) override
 
virtual void SetSceneryLODOriginLLA (double lat, double lon, double alt) override
 
virtual void SetAmbientBoostAndLightAmplificationLevel (const float ambientBoost, const float lightAmplificationLevel) override
 
virtual int AddPickRequest (int x, int y) override
 
virtual void ActivatePositionTracking () override
 
virtual void DeactivatePositionTracking () override
 
virtual void ActivateEntityTracking () override
 
virtual void DeactivateEntityTracking () override
 
virtual void SetTargetLatLonAltDegrees (double lat, double lon, double alt) override
 
virtual void SetTargetContainerId (UINT containerId) override
 
virtual void SetPBH (float fPitchDeg, float fBankDeg, float fHeadingDeg) override
 
virtual void SetOffsetXYZ (float fDeltaX, float fDeltaY, float fDeltaZ) override
 
virtual void SetGlobalRotate (bool bGlobalRotate) override
 
virtual void SetGlobalPBH (float fPitchDeg, float fBankDeg, float fHeadingDeg) override
 
virtual void TargetCameraLookAt () override
 
virtual void SetSideAngles (float fLeft, float fRight, float fTop, float fBottom) override
 
virtual void SetFrustumOffsetXYZ (float fOffsetX, float fOffsetY, float fOffsetZ) override
 
virtual void SetFrustumOffsetPBH (float fOffsetP, float fOffsetB, float fOffsetH) override
 
virtual void GetFov (float &hFov, float &vFov) const override
 
virtual void GetZoom (float &fZoom) const override
 
virtual void GetPBH (float &p, float &b, float &h) const override
 
virtual void GetBiasPBH (float &p, float &b, float &h) const override
 
virtual void GetLLA (double &lat, double &lon, double &alt) const override
 
virtual void GetCameraOffset (float &x, float &y, float &z) const override
 
virtual void GetViewMatrix (float output4x4[4][4]) const override
 
virtual void GetStandardProjectionMatrix (float output4x4[4][4]) const override
 
virtual void GetVirtualCockpitProjectionMatrix (float output4x4[4][4]) const override
 
virtual float GetNearClip () const override
 
virtual float GetFarClip () const override
 
virtual void GetPickResult (int ID, bool &wasHit, float &distanceToHit) const override
 
virtual int GetAvatarMode () const override
 
virtual void GetLLARadians (double &lat, double &lon, double &alt) const override
 
virtual void GetTargetLatLonAltDegrees (double &lat, double &lon, double &alt) const override
 
virtual void GetTargetContainerId (UINT32 &containerId) const override
 
virtual void GetSensorMode (UINT32 &sensorMode) const override
 
virtual bool GetCameraLookAtLLA (double &lat, double &lon, double &alt) const override
 
virtual bool IsGlobalRotate () const override
 
virtual void GetGlobalPBH (float &p, float &b, float &h) const override
 
virtual void GetTargetLatString (WCHAR *targetLat) const override
 
virtual void GetTargetLonString (WCHAR *targetLon) const override
 
virtual void GetPickTextureLocation (int ID, WCHAR *windowName, bool &wasHit, float &u, float &v, float &distanceToHit) const override
 
virtual void GetScreenCoord (const double lla[3], const float pbh[3], const float xyzOffset[][3], float xyOutput[][3], const int count) const override
 
virtual void GetScreenCoord (const float xyzOffset[][3], float xyOutput[][3], const int count) const override
 
virtual void GetScreenCoord (const LLADegreesMeters &lla, ScreenCoord &screenCoord) const override
 
virtual void GetWorldCoord (const ScreenCoord &screenCoord, LLADegreesMeters &lla) const override
 
virtual unsigned int GetVirtualCockpitTransparentValue () const override
 
virtual float GetChaseDistance () const override
 
virtual void GetPostProcesses (INameList &names) const override
 
virtual bool IsVirtualCockpit (void) const override
 
virtual void GetRequestedZoom (float &zoom) const override
 
virtual bool IsHMDView () const override
 

Member Function Documentation

§ ActivateEntityTracking()

virtual void ActivateEntityTracking ( )
privatepure virtual

Activate entity tracking enabling camera to look at a specified entity

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, ICameraSystemV410, and ICameraSystemV451.

§ ActivatePositionTracking()

virtual void ActivatePositionTracking ( )
privatepure virtual

Activate position tracking enabling camera to look at a specified LLA

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, ICameraSystemV410, and ICameraSystemV451.

§ AddPickRequest()

virtual int AddPickRequest ( int  x,
int  y 
)
privatepure virtual

Request a Pick test at a given screen coordinate. An ID is returned which can later be used to request the results of the test.

Parameters
xx screen coordinate
yy screen coordinate

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, ICameraSystemV410, and ICameraSystemV451.

§ AddPostProcess()

virtual void AddPostProcess ( const WCHAR *  name)
privatepure virtual

Add a post process effect to the window

Parameters
nameName of post process to add

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, ICameraSystemV410, and ICameraSystemV451.

§ ClearPostProcess()

virtual void ClearPostProcess ( )
privatepure virtual

Clear all post process effects from the camera

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, ICameraSystemV410, and ICameraSystemV451.

§ DeactivateEntityTracking()

virtual void DeactivateEntityTracking ( )
privatepure virtual

Deactivate entity tracking

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, ICameraSystemV410, and ICameraSystemV451.

§ DeactivatePositionTracking()

virtual void DeactivatePositionTracking ( )
privatepure virtual

Deactivate position tracking

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, ICameraSystemV410, and ICameraSystemV451.

§ GetAvatarMode()

virtual int GetAvatarMode ( ) const
privatepure virtual

Get the AvatarMode for the current window.

Returns
The AvatarMode of the current window. (0 = None, 1 = First, 2 = Third)

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, ICameraSystemV410, and ICameraSystemV451.

§ GetBiasPBH()

virtual void GetBiasPBH ( float &  p,
float &  b,
float &  h 
) const
privatepure virtual

Get the offset of the pbh relative to the origin

Parameters
[out]pPitch
[out]bBank
[out]hHeading

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, ICameraSystemV410, and ICameraSystemV451.

§ GetCameraDefinition()

virtual void GetCameraDefinition ( WCHAR *  cameraDefinition)
privatepure virtual

Get the window's camera definition

Remarks
camera definitions are defined in Cameras.cfg or in aircraft.cfg

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, ICameraSystemV410, and ICameraSystemV451.

§ GetCameraLookAtLLA()

virtual bool GetCameraLookAtLLA ( double &  lat,
double &  lon,
double &  alt 
) const
privatepure virtual

Gets the LLA the camera is looking at

Parameters
[out]latThe target latitude
[out]lonThe target longitude
[out]altThe target altitude
Returns
If the LLA is valid

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, ICameraSystemV410, and ICameraSystemV451.

§ GetCameraOffset()

virtual void GetCameraOffset ( float &  x,
float &  y,
float &  z 
) const
privatepure virtual

Get the camera offset from the origin

Parameters
[out]x,y,zcamera's 3d offset from origin

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, ICameraSystemV410, and ICameraSystemV451.

§ GetChaseDistance()

virtual float GetChaseDistance ( ) const
privatepure virtual

Gets the chase distance in meters

Returns
Chase distance in meters

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, ICameraSystemV410, and ICameraSystemV451.

§ GetFarClip()

virtual float GetFarClip ( ) const
privatepure virtual

Gets far clip distance in meters

Returns
far clip distance in meters

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, ICameraSystemV410, and ICameraSystemV451.

§ GetFov()

virtual void GetFov ( float &  hFov,
float &  vFov 
) const
privatepure virtual

Get the field of view of the camera

Parameters
[out]hFovHorizontal field of view
[out]vFovVertical field of view

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, ICameraSystemV410, and ICameraSystemV451.

§ GetGlobalPBH()

virtual void GetGlobalPBH ( float &  p,
float &  b,
float &  h 
) const
privatepure virtual

Gets the global rotation PBH of the camera

Parameters
[out]pThe pitch in degrees
[out]bThe bank in degrees
[out]hThe heading in degrees

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, ICameraSystemV410, and ICameraSystemV451.

§ GetLLA()

virtual void GetLLA ( double &  lat,
double &  lon,
double &  alt 
) const
privatepure virtual

Get the offset of the latitude longitude and altitude of the camera

Parameters
[out]latLatitude
[out]lonLongitude
[out]altAltitude

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, ICameraSystemV410, and ICameraSystemV451.

§ GetLLARadians()

virtual void GetLLARadians ( double &  lat,
double &  lon,
double &  alt 
) const
privatepure virtual

Get the offset of the latitude longitude and altitude of the camera in radians

Parameters
[out]latLatitude
[out]lonLongitude
[out]altAltitude

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, ICameraSystemV410, and ICameraSystemV451.

§ GetNearClip()

virtual float GetNearClip ( ) const
privatepure virtual

Gets near clip distance in meters

Returns
near clip distance in meters

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, ICameraSystemV410, and ICameraSystemV451.

§ GetPBH()

virtual void GetPBH ( float &  p,
float &  b,
float &  h 
) const
privatepure virtual

Get the orientation of the camera (Pitch, Bank, and Heading)

Parameters
[out]pPitch
[out]bBank
[out]hHeading

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, ICameraSystemV410, and ICameraSystemV451.

§ GetPickResult()

virtual void GetPickResult ( int  ID,
bool &  wasHit,
float &  distanceToHit 
) const
privatepure virtual

Get hit result. A pick request must first be requested using AddPickRequest on a WindowPdk interface from within a window callback. The ID passed in should be the ID that was returned from the AddPickRequest call.

Parameters
IDID of the hit request.
[out]wasHittrue if hit test passed
[out]distancedistance to hit test intersection

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, ICameraSystemV410, and ICameraSystemV451.

§ GetPickTextureLocation()

virtual void GetPickTextureLocation ( int  ID,
WCHAR *  windowName,
bool &  wasHit,
float &  u,
float &  v,
float &  distanceToHit 
) const
privatepure virtual

Get the texture coords that the pick hit on the texture in the specified window. A pick request must first be requested using AddPickRequest on a WindowPdk interface from within a window callback. The ID passed in should be the ID that was returned from the AddPickRequest call.

Parameters
IDID of the hit request.
windowNameName of window texture resides within.
[out]wasHittrue if hit test passed
[out]uu location in texture
[out]vv location in texture
[out]distanceToHitdistance to texture hit

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, ICameraSystemV410, and ICameraSystemV451.

§ GetPostProcesses()

virtual void GetPostProcesses ( INameList names) const
privatepure virtual

Gets list of the names of post processes assigned to this window

Parameters
[out]nameListarray of cstrings to hold the list of names (size should be 32)
[out]sizeof list returned (will not be larger than 32)

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, ICameraSystemV410, and ICameraSystemV451.

§ GetRequestedZoom()

virtual void GetRequestedZoom ( float &  zoom) const
privatepure virtual

§ GetScreenCoord() [1/3]

virtual void GetScreenCoord ( const double  lla[3],
const float  pbh[3],
const float  xyzOffset[][3],
float  xyOutput[][3],
const int  count 
) const
privatepure virtual

Get the screen coord of a point LLA + xyz offset in world space (meters)

Parameters
[in]llaLat lon alt origin of local coordinate system
[in]pbhOrientation of local coordinate system
[in]xyzOffsetList of 3d offsets in local coordinates.
[out]xyOutputList of screenspace position of the requested points
[in]countNumber of points to request. Must be at least as big as input array sizes.

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, ICameraSystemV410, and ICameraSystemV451.

§ GetScreenCoord() [2/3]

virtual void GetScreenCoord ( const float  xyzOffset[][3],
float  xyOutput[][3],
const int  count 
) const
privatepure virtual

Get the screen space coordinates of a list of points relative to user sim object

Parameters
[in]xyzOffsetlist of 3d offsets in local coordinates.
[out]xyOutputlist of screenspace position of the requested points
[in]countNumber of points to request. Must be at least as big as input array sizes.

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, ICameraSystemV410, and ICameraSystemV451.

§ GetScreenCoord() [3/3]

virtual void GetScreenCoord ( const LLADegreesMeters lla,
ScreenCoord screenCoord 
) const
privatepure virtual

Get the screen space coordinates of a point at the given LLA

Parameters
[in]llaworld point to query
[out]screenCoordScreenCoord of output

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, ICameraSystemV410, and ICameraSystemV451.

§ GetSensorMode()

virtual void GetSensorMode ( UINT32 sensorMode) const
privatepure virtual

Get the sensor mode of the camera.

Parameters
[out]sensorModeThe sensor mode of the camera

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, ICameraSystemV410, and ICameraSystemV451.

§ GetStandardProjectionMatrix()

virtual void GetStandardProjectionMatrix ( float  output4x4[4][4]) const
privatepure virtual

Get the standard projection matrix which is used by the Camera/Window for rendering everything but the virtual cockpit

Parameters
[out]output4x44x4 vidw matrix

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, ICameraSystemV410, and ICameraSystemV451.

§ GetTargetContainerId()

virtual void GetTargetContainerId ( UINT32 containerId) const
privatepure virtual

Get the target container ID for the camera to track.

Parameters
[out]containerIdThe ID of the container to track

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, ICameraSystemV410, and ICameraSystemV451.

§ GetTargetLatLonAltDegrees()

virtual void GetTargetLatLonAltDegrees ( double &  lat,
double &  lon,
double &  alt 
) const
privatepure virtual

Get the target location for the camera to track.

Parameters
[out]latTarget latitude in degrees
[out]lonTarget longitude in degrees
[out]altTarget altitude in feet

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, ICameraSystemV410, and ICameraSystemV451.

§ GetTargetLatString()

virtual void GetTargetLatString ( WCHAR *  targetLat) const
privatepure virtual

Gets the target latitude in string format

Parameters
[out]targetLatLatitude

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, ICameraSystemV410, and ICameraSystemV451.

§ GetTargetLonString()

virtual void GetTargetLonString ( WCHAR *  targetLon) const
privatepure virtual

Gets the target longitude in string format

Parameters
[out]targetLonLongitude

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, ICameraSystemV410, and ICameraSystemV451.

§ GetViewMatrix()

virtual void GetViewMatrix ( float  output4x4[4][4]) const
privatepure virtual

Get View Matrix for this Camera/Window

Parameters
[out]output4x44x4 vidw matrix

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, ICameraSystemV410, and ICameraSystemV451.

§ GetVirtualCockpitProjectionMatrix()

virtual void GetVirtualCockpitProjectionMatrix ( float  output4x4[4][4]) const
privatepure virtual

Get the standard projection matrix which is used by the Camera/Window for rendering the virtual cockpit. The VC projection has a different near and far clip to reduce z-fighting in the cockpit.

Parameters
[out]output4x44x4 vidw matrix

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, ICameraSystemV410, and ICameraSystemV451.

§ GetVirtualCockpitTransparentValue()

virtual unsigned int GetVirtualCockpitTransparentValue ( ) const
privatepure virtual

Get transparency level

Returns
value between [0-100] to indicate the transparency level. 100 is fully transparent

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, ICameraSystemV410, and ICameraSystemV451.

§ GetWorldCoord()

virtual void GetWorldCoord ( const ScreenCoord screenCoord,
LLADegreesMeters lla 
) const
privatepure virtual

Get the world lla coordinates of a point given a ScreenCoord

Parameters
[in]screenCoordScreenCoord point to query
[out]llaLLA output

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, ICameraSystemV410, and ICameraSystemV451.

§ GetZoom()

virtual void GetZoom ( float &  fZoom) const
privatepure virtual

Get the Zoom

Parameters
[out]fZoomzoom value

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, ICameraSystemV410, and ICameraSystemV451.

§ IsGlobalRotate()

virtual bool IsGlobalRotate ( ) const
privatepure virtual

Gets if the camera is rotating relative to the world or vehicle.

Returns
Whether or not the camera is globally rotating

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, ICameraSystemV410, and ICameraSystemV451.

§ IsHMDView()

virtual bool IsHMDView ( ) const
privatepure virtual

§ IsVirtualCockpit()

virtual bool IsVirtualCockpit ( void  ) const
privatepure virtual

Check if camera is a virtual cockpit

Returns
true if window's active camera is a virtual cockpit view

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, ICameraSystemV410, and ICameraSystemV451.

§ PanToView()

virtual void PanToView ( const WCHAR *  name)
privatepure virtual

Pan the camera to a saved location

Parameters
nameof saved custom camera to pan to

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, ICameraSystemV410, and ICameraSystemV451.

§ RemovePostProcess()

virtual void RemovePostProcess ( const WCHAR *  name)
privatepure virtual

Remove a post process effect to the window

Parameters
nameName of post process to remove

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, ICameraSystemV410, and ICameraSystemV451.

§ ResetPostProcess()

virtual void ResetPostProcess ( )
privatepure virtual

Reset all post process effects to those defined in camera defintion

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, ICameraSystemV410, and ICameraSystemV451.

§ SetAmbientBoostAndLightAmplificationLevel()

virtual void SetAmbientBoostAndLightAmplificationLevel ( const float  ambientBoost,
const float  lightAmplificationLevel 
)
privatepure virtual

Set the a scalar to amplify all light, and or a boost to the base ambient level. defaults are 1.0 and 0.0

Parameters
ambientBoostboost to base ambient level
lightAmplificationLevelscalar multiplied into all light sources

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, ICameraSystemV410, and ICameraSystemV451.

§ SetChaseDistance()

virtual void SetChaseDistance ( float  fDistance)
privatepure virtual

Sets the chase distance of a camera

Parameters
fDistanceChase distance in meters

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, ICameraSystemV410, and ICameraSystemV451.

§ SetExcludeVcPanelsSensor()

virtual void SetExcludeVcPanelsSensor ( bool  exclude)
privatepure virtual

Excludes VC panels from being sensorized

Parameters
excludeboolean value to set exclusion state

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, ICameraSystemV410, and ICameraSystemV451.

§ SetExcludeVcPostProcess()

virtual void SetExcludeVcPostProcess ( bool  exclude)
privatepure virtual

Excludes entire VC from being post processed (if post process has PreVC enabled)

Parameters
excludeboolean value to set exclusion state

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, ICameraSystemV410, and ICameraSystemV451.

§ SetFarClip()

virtual void SetFarClip ( float  far)
privatepure virtual

Set the far clip.

Parameters
farFar clip distance in meters

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, ICameraSystemV410, and ICameraSystemV451.

§ SetFov()

virtual void SetFov ( float  hFov,
float  vFov 
)
privatepure virtual

Set the field of view of the camera

Parameters
hFovHorizontal field of view
vFovVertical field of view

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, ICameraSystemV410, and ICameraSystemV451.

§ SetFrustumOffsetPBH()

virtual void SetFrustumOffsetPBH ( float  fOffsetP,
float  fOffsetB,
float  fOffsetH 
)
privatepure virtual

Set the offset PBH rotation relative to frustum group parent rotation

Parameters
fOffsetPOffset frustum Pitch relative to parent of group
fOffsetBOffset frustum Bank relative to parent of group
fOffsetHOffset frustum Heading relative to parent of group

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, ICameraSystemV410, and ICameraSystemV451.

§ SetFrustumOffsetXYZ()

virtual void SetFrustumOffsetXYZ ( float  fOffsetX,
float  fOffsetY,
float  fOffsetZ 
)
privatepure virtual

Set the offset from the camera group origin for this camera

Parameters
fOffsetXOffset frustum from group origin in x direction relative to origin
fOffsetYOffset frustum from group origin in y direction relative to origin
fOffsetZOffset frustum from group origin in z direction relative to origin

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, ICameraSystemV410, and ICameraSystemV451.

§ SetGlobalPBH()

virtual void SetGlobalPBH ( float  fPitchDeg,
float  fBankDeg,
float  fHeadingDeg 
)
privatepure virtual

Sets the global rotation value of the camera

Parameters
fPitchDegThe pitch
fBankDegThe bank
fHeadingDegThe heading

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, ICameraSystemV410, and ICameraSystemV451.

§ SetGlobalRotate()

virtual void SetGlobalRotate ( bool  bGlobalRotate)
privatepure virtual

Sets whether the camera will rotate independent of attached object

Parameters
bGlobalRotateWhether or not the camera will rotate independent of attached object

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, ICameraSystemV410, and ICameraSystemV451.

§ SetNearClip()

virtual void SetNearClip ( float  near)
privatepure virtual

Set the near clip.

Parameters
nearNear clip distance in meters

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, ICameraSystemV410, and ICameraSystemV451.

§ SetOffsetXYZ()

virtual void SetOffsetXYZ ( float  fDeltaX,
float  fDeltaY,
float  fDeltaZ 
)
privatepure virtual

Set the xyz offset of the camera.

Parameters
fDeltaXX offset in meters
fDeltaYY offset in meters
fDeltaZZ offset in meters

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, ICameraSystemV410, and ICameraSystemV451.

§ SetPBH()

virtual void SetPBH ( float  fPitchDeg,
float  fBankDeg,
float  fHeadingDeg 
)
privatepure virtual

Set the pbh of the camera.

Parameters
fPitchDegPitch in degrees
fPitchDegBank, in degrees
fPitchDegHeading in degrees

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, ICameraSystemV410, and ICameraSystemV451.

§ SetRelative6DOF()

virtual void SetRelative6DOF ( float  fDeltaX,
float  fDeltaY,
float  fDeltaZ,
float  fPitchDeg,
float  fBankDeg,
float  fHeadingDeg 
)
privatepure virtual

Set the camera position and orientation relative to its origin in 3D space

Parameters
fDeltaX,fDeltaY,fDeltaZ3D position relative to origin
fPitchDeg,fBankDeg,fHeadingDegRelative orientation pitch bank and heading

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, ICameraSystemV410, and ICameraSystemV451.

§ SetSceneryLODOriginLLA()

virtual void SetSceneryLODOriginLLA ( double  lat,
double  lon,
double  alt 
)
privatepure virtual

Set the LLA of where the center of the scenery LOD radius for this camera will go. This determines where models and builds load and display.

Parameters
latLatitude of LOD ring center in degrees
lonLongitude of LOD ring center in degrees
altAltitude of LOD ring center in meters

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, ICameraSystemV410, and ICameraSystemV451.

§ SetSensorMode()

virtual void SetSensorMode ( unsigned int  mode)
privatepure virtual

Sets the sensor mode of a camera

Parameters
modeSensor mode (0: None, 1: IR White Hot, 2: IR Black Hot, 3: GData

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, ICameraSystemV410, and ICameraSystemV451.

§ SetSideAngles()

virtual void SetSideAngles ( float  fLeft,
float  fRight,
float  fTop,
float  fBottom 
)
privatepure virtual

Set Side Angles for a potentially off-axis projection. Positive direction is Right and Down.

Parameters
fLeftAngle in radians from view direction to the left edge of camera's view
fRightAngle in radians from view direction to the right edge of camera's view
fTopAngle in radians from view direction to the top edge of camera's view
fBottomAngle in radians from view direction to bottom left edge of camera's view

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, ICameraSystemV410, and ICameraSystemV451.

§ SetSmoothRelative6DOF()

virtual void SetSmoothRelative6DOF ( float  fDeltaX,
float  fDeltaY,
float  fDeltaZ,
float  fPitchDeg,
float  fBankDeg,
float  fHeadingDeg,
float  smoothPanTime = 0 
)
privatepure virtual

Change the relative position and orientation of camera using a smooth transition

Parameters
fDeltaX,fDeltaY,fDeltaZ3D position relative to origin
fPitchDeg,fBankDeg,fHeadingDegRelative orientation pitch bank and heading
smoothPanTimeTime-frame for the camera to pan to the new position

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, ICameraSystemV410, and ICameraSystemV451.

§ SetTargetContainerId()

virtual void SetTargetContainerId ( UINT  containerId)
privatepure virtual

Set the target container ID for the camera to track.

Parameters
containerIdThe ID of the container to track

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, ICameraSystemV410, and ICameraSystemV451.

§ SetTargetLatLonAltDegrees()

virtual void SetTargetLatLonAltDegrees ( double  lat,
double  lon,
double  alt 
)
privatepure virtual

Set the target location for the camera to track.

Parameters
latTarget latitude in degrees
lonTarget longitude in degrees
altTarget altitude in feet

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, ICameraSystemV410, and ICameraSystemV451.

§ SetTerrainLODOriginLLA()

virtual void SetTerrainLODOriginLLA ( double  lat,
double  lon,
double  alt 
)
privatepure virtual

Set the LLA of where the center of the terrain LOD radius for this camera will go.

Parameters
latLatitude of LOD ring center in degrees
lonLongitude of LOD ring center in degrees
altAltitude of LOD ring center in meters

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, ICameraSystemV410, and ICameraSystemV451.

§ SetVirtualCockpitTransparentValue()

virtual void SetVirtualCockpitTransparentValue ( unsigned int  level)
privatepure virtual

Sets a cockpit transparency level

Parameters
levelvalue between [0-100] to indicate the transparent level. 100 is Fully transparent.

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, ICameraSystemV410, and ICameraSystemV451.

§ SetZoom()

virtual void SetZoom ( float  zoom)
privatepure virtual

Set the Zoom

Parameters
zoom

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, ICameraSystemV410, and ICameraSystemV451.

§ SetZoomGoal()

virtual void SetZoomGoal ( float  zoomGoal)
privatepure virtual

Set the Zoom goal for the camera

Parameters
zoomGoalZoom goal to set

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, ICameraSystemV410, and ICameraSystemV451.

§ TargetCameraLookAt()

virtual void TargetCameraLookAt ( )
privatepure virtual

Automatically sets the camera to target ground at center of view

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, ICameraSystemV410, and ICameraSystemV451.

§ ZoomIn()

virtual void ZoomIn ( void  )
privatepure virtual

Zoom in one zoom level increment

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, ICameraSystemV410, and ICameraSystemV451.

§ ZoomOut()

virtual void ZoomOut ( void  )
privatepure virtual

Zoom out one zoom level increment

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, ICameraSystemV410, and ICameraSystemV451.

§ P3D::P3D::ICameraSystemV410

class P3D::P3D::ICameraSystemV410

Inherits ICameraSystemV400.

Inherited by ICameraSystemV430.

Private Member Functions

virtual void GetCameraDefinition (WCHAR *cameraDefinition) override
 
virtual void SetRelative6DOF (float fDeltaX, float fDeltaY, float fDeltaZ, float fPitchDeg, float fBankDeg, float fHeadingDeg) override
 
virtual void SetSmoothRelative6DOF (float fDeltaX, float fDeltaY, float fDeltaZ, float fPitchDeg, float fBankDeg, float fHeadingDeg, float smoothPanTime=0) override
 
virtual void SetFov (float hFov, float vFov) override
 
virtual void SetZoomGoal (float zoomGoal) override
 
virtual void SetZoom (float zoom) override
 
virtual void PanToView (const WCHAR *name) override
 
virtual void AddPostProcess (const WCHAR *name) override
 
virtual void RemovePostProcess (const WCHAR *name) override
 
virtual void ResetPostProcess () override
 
virtual void ClearPostProcess () override
 
virtual void Reset () override
 
virtual void ZoomIn (void) override
 
virtual void ZoomOut (void) override
 
virtual void SetVirtualCockpitTransparentValue (unsigned int level) override
 
virtual void SetChaseDistance (float fDistance) override
 
virtual void SetChaseAltitude (float fAltitude) override
 
virtual void SetSensorMode (unsigned int mode) override
 
virtual void SetExcludeVcPostProcess (bool exclude) override
 
virtual void SetExcludeVcPanelsSensor (bool exclude) override
 
virtual void SetFarClip (float far) override
 
virtual void SetNearClip (float near) override
 
virtual void SetTerrainLODOriginLLA (double lat, double lon, double alt) override
 
virtual void SetSceneryLODOriginLLA (double lat, double lon, double alt) override
 
virtual void SetAmbientBoostAndLightAmplificationLevel (const float ambientBoost, const float lightAmplificationLevel) override
 
virtual int AddPickRequest (int x, int y) override
 
virtual void ActivatePositionTracking () override
 
virtual void DeactivatePositionTracking () override
 
virtual void ActivateEntityTracking () override
 
virtual void DeactivateEntityTracking () override
 
virtual void SetTargetLatLonAltDegrees (double lat, double lon, double alt) override
 
virtual void SetTargetContainerId (UINT containerId) override
 
virtual void SetPBH (float fPitchDeg, float fBankDeg, float fHeadingDeg) override
 
virtual void SetOffsetXYZ (float fDeltaX, float fDeltaY, float fDeltaZ) override
 
virtual void SetGlobalRotate (bool bGlobalRotate) override
 
virtual void SetGlobalPBH (float fPitchDeg, float fBankDeg, float fHeadingDeg) override
 
virtual void TargetCameraLookAt () override
 
virtual void SetSideAngles (float fLeft, float fRight, float fTop, float fBottom) override
 
virtual void SetFrustumOffsetXYZ (float fOffsetX, float fOffsetY, float fOffsetZ) override
 
virtual void SetFrustumOffsetPBH (float fOffsetP, float fOffsetB, float fOffsetH) override
 
virtual void SetHmdMode (HMD_MODE eMode) override
 
virtual int GetActiveViewGroup () override
 
virtual void GetFov (float &hFov, float &vFov) const override
 
virtual void GetZoom (float &fZoom) const override
 
virtual void GetPBH (float &p, float &b, float &h) const override
 
virtual void GetBiasPBH (float &p, float &b, float &h) const override
 
virtual void GetLLA (double &lat, double &lon, double &alt) const override
 
virtual void GetCameraOffset (float &x, float &y, float &z) const override
 
virtual void GetViewMatrix (float output4x4[4][4]) const override
 
virtual void GetStandardProjectionMatrix (float output4x4[4][4]) const override
 
virtual void GetVirtualCockpitProjectionMatrix (float output4x4[4][4]) const override
 
virtual float GetNearClip () const override
 
virtual float GetFarClip () const override
 
virtual void GetPickResult (int ID, bool &wasHit, float &distanceToHit) const override
 
virtual void GetPickResult (int ID, PickResult &result) const override
 
virtual int GetAvatarMode () const override
 
virtual void GetLLARadians (double &lat, double &lon, double &alt) const override
 
virtual void GetTargetLatLonAltDegrees (double &lat, double &lon, double &alt) const override
 
virtual void GetTargetContainerId (UINT32 &containerId) const override
 
virtual void GetSensorMode (UINT32 &sensorMode) const override
 
virtual bool GetCameraLookAtLLA (double &lat, double &lon, double &alt) const override
 
virtual bool IsGlobalRotate () const override
 
virtual void GetGlobalPBH (float &p, float &b, float &h) const override
 
virtual void GetTargetLatString (WCHAR *targetLat) const override
 
virtual void GetTargetLonString (WCHAR *targetLon) const override
 
virtual void GetPickTextureLocation (int ID, WCHAR *windowName, bool &wasHit, float &u, float &v, float &distanceToHit) const override
 
virtual void GetScreenCoord (const double lla[3], const float pbh[3], const float xyzOffset[][3], float xyOutput[][3], const int count) const override
 
virtual void GetScreenCoord (const float xyzOffset[][3], float xyOutput[][3], const int count) const override
 
virtual void GetScreenCoord (const LLADegreesMeters &lla, ScreenCoord &screenCoord) const override
 
virtual void GetWorldCoord (const ScreenCoord &screenCoord, LLADegreesMeters &lla) const override
 
virtual unsigned int GetVirtualCockpitTransparentValue () const override
 
virtual float GetChaseDistance () const override
 
virtual float GetChaseAltitude () const override
 
virtual void GetPostProcesses (INameList &names) const override
 
virtual bool IsVirtualCockpit (void) const override
 
virtual bool IsTopDown (void) const override
 
virtual void GetRequestedZoom (float &zoom) const override
 
virtual bool IsHMDView () const override
 
virtual void GetWorldTransform (ObjectWorldTransform &transform, CAMERA_TRANFORM_REFERENCE referece) const override
 

Member Function Documentation

§ ActivateEntityTracking()

virtual void ActivateEntityTracking ( )
privatepure virtual

Activate entity tracking enabling camera to look at a specified entity

Implements ICameraSystemV400.

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, and ICameraSystemV451.

§ ActivatePositionTracking()

virtual void ActivatePositionTracking ( )
privatepure virtual

Activate position tracking enabling camera to look at a specified LLA

Implements ICameraSystemV400.

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, and ICameraSystemV451.

§ AddPickRequest()

virtual int AddPickRequest ( int  x,
int  y 
)
privatepure virtual

Request a Pick test at a given screen coordinate. An ID is returned which can later be used to request the results of the test.

Parameters
xx screen coordinate
yy screen coordinate
Returns
ID later used to request the pick result

Implements ICameraSystemV400.

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, and ICameraSystemV451.

§ AddPostProcess()

virtual void AddPostProcess ( const WCHAR *  name)
privatepure virtual

Add a post process effect to the window

Parameters
nameName of post process to add

Implements ICameraSystemV400.

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, and ICameraSystemV451.

§ ClearPostProcess()

virtual void ClearPostProcess ( )
privatepure virtual

Clear all post process effects from the camera

Implements ICameraSystemV400.

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, and ICameraSystemV451.

§ DeactivateEntityTracking()

virtual void DeactivateEntityTracking ( )
privatepure virtual

Deactivate entity tracking

Implements ICameraSystemV400.

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, and ICameraSystemV451.

§ DeactivatePositionTracking()

virtual void DeactivatePositionTracking ( )
privatepure virtual

Deactivate position tracking

Implements ICameraSystemV400.

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, and ICameraSystemV451.

§ GetActiveViewGroup()

virtual int GetActiveViewGroup ( )
privatepure virtual

Get active View Group

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, and ICameraSystemV451.

§ GetAvatarMode()

virtual int GetAvatarMode ( ) const
privatepure virtual

Get the AvatarMode for the current window.

Returns
The AvatarMode of the current window. (0 = None, 1 = First, 2 = Third)

Implements ICameraSystemV400.

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, and ICameraSystemV451.

§ GetBiasPBH()

virtual void GetBiasPBH ( float &  p,
float &  b,
float &  h 
) const
privatepure virtual

Get the offset of the pbh relative to the origin

Parameters
[out]pPitch
[out]bBank
[out]hHeading

Implements ICameraSystemV400.

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, and ICameraSystemV451.

§ GetCameraDefinition()

virtual void GetCameraDefinition ( WCHAR *  cameraDefinition)
privatepure virtual

Get the window's camera definition

Remarks
camera definitions are defined in Cameras.cfg or in aircraft.cfg

Implements ICameraSystemV400.

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, and ICameraSystemV451.

§ GetCameraLookAtLLA()

virtual bool GetCameraLookAtLLA ( double &  lat,
double &  lon,
double &  alt 
) const
privatepure virtual

Gets the LLA the camera is looking at

Parameters
[out]latThe target latitude
[out]lonThe target longitude
[out]altThe target altitude
Returns
If the LLA is valid

Implements ICameraSystemV400.

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, and ICameraSystemV451.

§ GetCameraOffset()

virtual void GetCameraOffset ( float &  x,
float &  y,
float &  z 
) const
privatepure virtual

Get the camera offset from the origin

Parameters
[out]x,y,zcamera's 3d offset from origin

Implements ICameraSystemV400.

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, and ICameraSystemV451.

§ GetChaseAltitude()

virtual float GetChaseAltitude ( ) const
privatepure virtual

Gets the chase altitude in meters

Returns
Chase altitude in meters

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, and ICameraSystemV451.

§ GetChaseDistance()

virtual float GetChaseDistance ( ) const
privatepure virtual

Gets the chase distance in meters

Returns
Chase distance in meters

Implements ICameraSystemV400.

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, and ICameraSystemV451.

§ GetFarClip()

virtual float GetFarClip ( ) const
privatepure virtual

Gets far clip distance in meters

Returns
far clip distance in meters

Implements ICameraSystemV400.

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, and ICameraSystemV451.

§ GetFov()

virtual void GetFov ( float &  hFov,
float &  vFov 
) const
privatepure virtual

Get the field of view of the camera

Parameters
[out]hFovHorizontal field of view
[out]vFovVertical field of view

Implements ICameraSystemV400.

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, and ICameraSystemV451.

§ GetGlobalPBH()

virtual void GetGlobalPBH ( float &  p,
float &  b,
float &  h 
) const
privatepure virtual

Gets the global rotation PBH of the camera

Parameters
[out]pThe pitch in degrees
[out]bThe bank in degrees
[out]hThe heading in degrees

Implements ICameraSystemV400.

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, and ICameraSystemV451.

§ GetLLA()

virtual void GetLLA ( double &  lat,
double &  lon,
double &  alt 
) const
privatepure virtual

Get the offset of the latitude longitude and altitude of the camera

Parameters
[out]latLatitude
[out]lonLongitude
[out]altAltitude

Implements ICameraSystemV400.

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, and ICameraSystemV451.

§ GetLLARadians()

virtual void GetLLARadians ( double &  lat,
double &  lon,
double &  alt 
) const
privatepure virtual

Get the offset of the latitude longitude and altitude of the camera in radians

Parameters
[out]latLatitude
[out]lonLongitude
[out]altAltitude

Implements ICameraSystemV400.

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, and ICameraSystemV451.

§ GetNearClip()

virtual float GetNearClip ( ) const
privatepure virtual

Gets near clip distance in meters

Returns
near clip distance in meters

Implements ICameraSystemV400.

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, and ICameraSystemV451.

§ GetPBH()

virtual void GetPBH ( float &  p,
float &  b,
float &  h 
) const
privatepure virtual

Get the orientation of the camera (Pitch, Bank, and Heading)

Parameters
[out]pPitch
[out]bBank
[out]hHeading

Implements ICameraSystemV400.

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, and ICameraSystemV451.

§ GetPickResult() [1/2]

virtual void GetPickResult ( int  ID,
bool &  wasHit,
float &  distanceToHit 
) const
privatepure virtual

Get hit result. A pick request must first be requested using AddPickRequest. The ID passed in should be the ID that was returned from the AddPickRequest call. Passing in 0 will return the last result from the native mouse handling.

Parameters
IDID of the hit request.
[out]wasHittrue if hit test passed
[out]distancedistance to hit test intersection

Implements ICameraSystemV400.

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, and ICameraSystemV451.

§ GetPickResult() [2/2]

virtual void GetPickResult ( int  ID,
PickResult result 
) const
privatepure virtual

Get hit result. A pick request must first be requested using AddPickRequest. The ID passed in should be the ID that was returned from the AddPickRequest call. Passing in 0 will return the last result from the native mouse handling.

Parameters
IDID of the hit request.
[out]resultThe hit result

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, and ICameraSystemV451.

§ GetPickTextureLocation()

virtual void GetPickTextureLocation ( int  ID,
WCHAR *  windowName,
bool &  wasHit,
float &  u,
float &  v,
float &  distanceToHit 
) const
privatepure virtual

Get the texture coords that the pick hit on the texture in the specified window. A pick request must first be requested using AddPickRequest on a WindowPdk interface from within a window callback. The ID passed in should be the ID that was returned from the AddPickRequest call.

Parameters
IDID of the hit request.
windowNameName of window texture resides within.
[out]wasHittrue if hit test passed
[out]uu location in texture
[out]vv location in texture
[out]distanceToHitdistance to texture hit

Implements ICameraSystemV400.

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, and ICameraSystemV451.

§ GetPostProcesses()

virtual void GetPostProcesses ( INameList names) const
privatepure virtual

Gets list of the names of post processes assigned to this window

Parameters
[out]nameListarray of cstrings to hold the list of names (size should be 32)
[out]sizeof list returned (will not be larger than 32)

Implements ICameraSystemV400.

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, and ICameraSystemV451.

§ GetRequestedZoom()

virtual void GetRequestedZoom ( float &  zoom) const
privatepure virtual

§ GetScreenCoord() [1/3]

virtual void GetScreenCoord ( const double  lla[3],
const float  pbh[3],
const float  xyzOffset[][3],
float  xyOutput[][3],
const int  count 
) const
privatepure virtual

Get the screen coord of a point LLA + xyz offset in world space (meters)

Parameters
[in]llaLat lon alt origin of local coordinate system
[in]pbhOrientation of local coordinate system
[in]xyzOffsetList of 3d offsets in local coordinates.
[out]xyOutputList of screenspace position of the requested points
[in]countNumber of points to request. Must be at least as big as input array sizes.

Implements ICameraSystemV400.

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, and ICameraSystemV451.

§ GetScreenCoord() [2/3]

virtual void GetScreenCoord ( const float  xyzOffset[][3],
float  xyOutput[][3],
const int  count 
) const
privatepure virtual

Get the screen space coordinates of a list of points relative to user sim object

Parameters
[in]xyzOffsetlist of 3d offsets in local coordinates.
[out]xyOutputlist of screenspace position of the requested points
[in]countNumber of points to request. Must be at least as big as input array sizes.

Implements ICameraSystemV400.

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, and ICameraSystemV451.

§ GetScreenCoord() [3/3]

virtual void GetScreenCoord ( const LLADegreesMeters lla,
ScreenCoord screenCoord 
) const
privatepure virtual

Get the screen space coordinates of a point at the given LLA

Parameters
[in]llaworld point to query
[out]screenCoordScreenCoord of output

Implements ICameraSystemV400.

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, and ICameraSystemV451.

§ GetSensorMode()

virtual void GetSensorMode ( UINT32 sensorMode) const
privatepure virtual

Get the sensor mode of the camera.

Parameters
[out]sensorModeThe sensor mode of the camera

Implements ICameraSystemV400.

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, and ICameraSystemV451.

§ GetStandardProjectionMatrix()

virtual void GetStandardProjectionMatrix ( float  output4x4[4][4]) const
privatepure virtual

Get the standard projection matrix which is used by the Camera/Window for rendering everything but the virtual cockpit

Parameters
[out]output4x44x4 vidw matrix

Implements ICameraSystemV400.

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, and ICameraSystemV451.

§ GetTargetContainerId()

virtual void GetTargetContainerId ( UINT32 containerId) const
privatepure virtual

Get the target container ID for the camera to track.

Parameters
[out]containerIdThe ID of the container to track

Implements ICameraSystemV400.

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, and ICameraSystemV451.

§ GetTargetLatLonAltDegrees()

virtual void GetTargetLatLonAltDegrees ( double &  lat,
double &  lon,
double &  alt 
) const
privatepure virtual

Get the target location for the camera to track.

Parameters
[out]latTarget latitude in degrees
[out]lonTarget longitude in degrees
[out]altTarget altitude in feet

Implements ICameraSystemV400.

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, and ICameraSystemV451.

§ GetTargetLatString()

virtual void GetTargetLatString ( WCHAR *  targetLat) const
privatepure virtual

Gets the target latitude in string format

Parameters
[out]targetLatLatitude

Implements ICameraSystemV400.

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, and ICameraSystemV451.

§ GetTargetLonString()

virtual void GetTargetLonString ( WCHAR *  targetLon) const
privatepure virtual

Gets the target longitude in string format

Parameters
[out]targetLonLongitude

Implements ICameraSystemV400.

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, and ICameraSystemV451.

§ GetViewMatrix()

virtual void GetViewMatrix ( float  output4x4[4][4]) const
privatepure virtual

Get View Matrix for this Camera/Window

Parameters
[out]output4x44x4 vidw matrix

Implements ICameraSystemV400.

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, and ICameraSystemV451.

§ GetVirtualCockpitProjectionMatrix()

virtual void GetVirtualCockpitProjectionMatrix ( float  output4x4[4][4]) const
privatepure virtual

Get the standard projection matrix which is used by the Camera/Window for rendering the virtual cockpit. The VC projection has a different near and far clip to reduce z-fighting in the cockpit.

Parameters
[out]output4x44x4 vidw matrix

Implements ICameraSystemV400.

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, and ICameraSystemV451.

§ GetVirtualCockpitTransparentValue()

virtual unsigned int GetVirtualCockpitTransparentValue ( ) const
privatepure virtual

Get transparency level

Returns
value between [0-100] to indicate the transparency level. 100 is fully transparent

Implements ICameraSystemV400.

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, and ICameraSystemV451.

§ GetWorldCoord()

virtual void GetWorldCoord ( const ScreenCoord screenCoord,
LLADegreesMeters lla 
) const
privatepure virtual

Get the world lla coordinates of a point given a ScreenCoord

Parameters
[in]screenCoordScreenCoord point to query
[out]llaLLA output

Implements ICameraSystemV400.

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, and ICameraSystemV451.

§ GetWorldTransform()

virtual void GetWorldTransform ( ObjectWorldTransform transform,
CAMERA_TRANFORM_REFERENCE  referece 
) const
privatepure virtual

§ GetZoom()

virtual void GetZoom ( float &  fZoom) const
privatepure virtual

Get the Zoom

Parameters
[out]fZoomzoom value

Implements ICameraSystemV400.

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, and ICameraSystemV451.

§ IsGlobalRotate()

virtual bool IsGlobalRotate ( ) const
privatepure virtual

Gets if the camera is rotating relative to the world or vehicle.

Returns
Whether or not the camera is globally rotating

Implements ICameraSystemV400.

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, and ICameraSystemV451.

§ IsHMDView()

virtual bool IsHMDView ( ) const
privatepure virtual

§ IsTopDown()

virtual bool IsTopDown ( void  ) const
privatepure virtual

Check if camera is Top Down view

Returns
true if window's active camera is a Top Down view

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, and ICameraSystemV451.

§ IsVirtualCockpit()

virtual bool IsVirtualCockpit ( void  ) const
privatepure virtual

Check if camera is a virtual cockpit

Returns
true if window's active camera is a virtual cockpit view

Implements ICameraSystemV400.

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, and ICameraSystemV451.

§ PanToView()

virtual void PanToView ( const WCHAR *  name)
privatepure virtual

Pan the camera to a saved location

Parameters
nameof saved custom camera to pan to

Implements ICameraSystemV400.

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, and ICameraSystemV451.

§ RemovePostProcess()

virtual void RemovePostProcess ( const WCHAR *  name)
privatepure virtual

Remove a post process effect to the window

Parameters
nameName of post process to remove

Implements ICameraSystemV400.

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, and ICameraSystemV451.

§ Reset()

virtual void Reset ( )
privatepure virtual

Reset camera settings to those defined in camera definition

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, and ICameraSystemV451.

§ ResetPostProcess()

virtual void ResetPostProcess ( )
privatepure virtual

Reset all post process effects to those defined in camera definition

Implements ICameraSystemV400.

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, and ICameraSystemV451.

§ SetAmbientBoostAndLightAmplificationLevel()

virtual void SetAmbientBoostAndLightAmplificationLevel ( const float  ambientBoost,
const float  lightAmplificationLevel 
)
privatepure virtual

Set the a scalar to amplify all light, and or a boost to the base ambient level. defaults are 1.0 and 0.0

Parameters
ambientBoostboost to base ambient level
lightAmplificationLevelscalar multiplied into all light sources

Implements ICameraSystemV400.

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, and ICameraSystemV451.

§ SetChaseAltitude()

virtual void SetChaseAltitude ( float  fAltitude)
privatepure virtual

Sets the chase altitude of a camera

Parameters
fAltitudeChase altitude in meters

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, and ICameraSystemV451.

§ SetChaseDistance()

virtual void SetChaseDistance ( float  fDistance)
privatepure virtual

Sets the chase distance of a camera

Parameters
fDistanceChase distance in meters

Implements ICameraSystemV400.

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, and ICameraSystemV451.

§ SetExcludeVcPanelsSensor()

virtual void SetExcludeVcPanelsSensor ( bool  exclude)
privatepure virtual

Excludes VC panels from being sensorized

Parameters
excludeboolean value to set exclusion state

Implements ICameraSystemV400.

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, and ICameraSystemV451.

§ SetExcludeVcPostProcess()

virtual void SetExcludeVcPostProcess ( bool  exclude)
privatepure virtual

Excludes entire VC from being post processed (if post process has PreVC enabled)

Parameters
excludeboolean value to set exclusion state

Implements ICameraSystemV400.

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, and ICameraSystemV451.

§ SetFarClip()

virtual void SetFarClip ( float  far)
privatepure virtual

Set the far clip.

Parameters
farFar clip distance in meters

Implements ICameraSystemV400.

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, and ICameraSystemV451.

§ SetFov()

virtual void SetFov ( float  hFov,
float  vFov 
)
privatepure virtual

Set the field of view of the camera

Parameters
hFovHorizontal field of view
vFovVertical field of view

Implements ICameraSystemV400.

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, and ICameraSystemV451.

§ SetFrustumOffsetPBH()

virtual void SetFrustumOffsetPBH ( float  fOffsetP,
float  fOffsetB,
float  fOffsetH 
)
privatepure virtual

Set the offset PBH rotation relative to frustum group parent rotation

Parameters
fOffsetPOffset frustum Pitch relative to parent of group
fOffsetBOffset frustum Bank relative to parent of group
fOffsetHOffset frustum Heading relative to parent of group

Implements ICameraSystemV400.

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, and ICameraSystemV451.

§ SetFrustumOffsetXYZ()

virtual void SetFrustumOffsetXYZ ( float  fOffsetX,
float  fOffsetY,
float  fOffsetZ 
)
privatepure virtual

Set the offset from the camera group origin for this camera

Parameters
fOffsetXOffset frustum from group origin in x direction relative to origin
fOffsetYOffset frustum from group origin in y direction relative to origin
fOffsetZOffset frustum from group origin in z direction relative to origin

Implements ICameraSystemV400.

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, and ICameraSystemV451.

§ SetGlobalPBH()

virtual void SetGlobalPBH ( float  fPitchDeg,
float  fBankDeg,
float  fHeadingDeg 
)
privatepure virtual

Sets the global rotation value of the camera

Parameters
fPitchDegThe pitch
fBankDegThe bank
fHeadingDegThe heading

Implements ICameraSystemV400.

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, and ICameraSystemV451.

§ SetGlobalRotate()

virtual void SetGlobalRotate ( bool  bGlobalRotate)
privatepure virtual

Sets whether the camera will rotate independent of attached object

Parameters
bGlobalRotateWhether or not the camera will rotate independent of attached object

Implements ICameraSystemV400.

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, and ICameraSystemV451.

§ SetHmdMode()

virtual void SetHmdMode ( HMD_MODE  eMode)
privatepure virtual

Set the HMD mode for this camera

Parameters
eModethe HDM mode to assign to this camera

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, and ICameraSystemV451.

§ SetNearClip()

virtual void SetNearClip ( float  near)
privatepure virtual

Set the near clip.

Parameters
nearNear clip distance in meters

Implements ICameraSystemV400.

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, and ICameraSystemV451.

§ SetOffsetXYZ()

virtual void SetOffsetXYZ ( float  fDeltaX,
float  fDeltaY,
float  fDeltaZ 
)
privatepure virtual

Set the xyz offset of the camera.

Parameters
fDeltaXX offset in meters
fDeltaYY offset in meters
fDeltaZZ offset in meters

Implements ICameraSystemV400.

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, and ICameraSystemV451.

§ SetPBH()

virtual void SetPBH ( float  fPitchDeg,
float  fBankDeg,
float  fHeadingDeg 
)
privatepure virtual

Set the pbh of the camera.

Parameters
fPitchDegPitch in degrees
fPitchDegBank, in degrees
fPitchDegHeading in degrees

Implements ICameraSystemV400.

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, and ICameraSystemV451.

§ SetRelative6DOF()

virtual void SetRelative6DOF ( float  fDeltaX,
float  fDeltaY,
float  fDeltaZ,
float  fPitchDeg,
float  fBankDeg,
float  fHeadingDeg 
)
privatepure virtual

Set the camera position and orientation relative to its origin in 3D space

Parameters
fDeltaX,fDeltaY,fDeltaZ3D position relative to origin
fPitchDeg,fBankDeg,fHeadingDegRelative orientation pitch bank and heading

Implements ICameraSystemV400.

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, and ICameraSystemV451.

§ SetSceneryLODOriginLLA()

virtual void SetSceneryLODOriginLLA ( double  lat,
double  lon,
double  alt 
)
privatepure virtual

Set the LLA of where the center of the scenery LOD radius for this camera will go. This determines where models and builds load and display.

Parameters
latLatitude of LOD ring center in degrees
lonLongitude of LOD ring center in degrees
altAltitude of LOD ring center in meters

Implements ICameraSystemV400.

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, and ICameraSystemV451.

§ SetSensorMode()

virtual void SetSensorMode ( unsigned int  mode)
privatepure virtual

Sets the sensor mode of a camera

Parameters
modeSensor mode (0: None, 1: IR White Hot, 2: IR Black Hot, 3: GData

Implements ICameraSystemV400.

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, and ICameraSystemV451.

§ SetSideAngles()

virtual void SetSideAngles ( float  fLeft,
float  fRight,
float  fTop,
float  fBottom 
)
privatepure virtual

Set Side Angles for a potentially off-axis projection. Positive direction is Right and Down.

Parameters
fLeftAngle in radians from view direction to the left edge of camera's view
fRightAngle in radians from view direction to the right edge of camera's view
fTopAngle in radians from view direction to the top edge of camera's view
fBottomAngle in radians from view direction to bottom left edge of camera's view

Implements ICameraSystemV400.

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, and ICameraSystemV451.

§ SetSmoothRelative6DOF()

virtual void SetSmoothRelative6DOF ( float  fDeltaX,
float  fDeltaY,
float  fDeltaZ,
float  fPitchDeg,
float  fBankDeg,
float  fHeadingDeg,
float  smoothPanTime = 0 
)
privatepure virtual

Change the relative position and orientation of camera using a smooth transition

Parameters
fDeltaX,fDeltaY,fDeltaZ3D position relative to origin
fPitchDeg,fBankDeg,fHeadingDegRelative orientation pitch bank and heading
smoothPanTimeTime-frame for the camera to pan to the new position

Implements ICameraSystemV400.

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, and ICameraSystemV451.

§ SetTargetContainerId()

virtual void SetTargetContainerId ( UINT  containerId)
privatepure virtual

Set the target container ID for the camera to track.

Parameters
containerIdThe ID of the container to track

Implements ICameraSystemV400.

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, and ICameraSystemV451.

§ SetTargetLatLonAltDegrees()

virtual void SetTargetLatLonAltDegrees ( double  lat,
double  lon,
double  alt 
)
privatepure virtual

Set the target location for the camera to track.

Parameters
latTarget latitude in degrees
lonTarget longitude in degrees
altTarget altitude in feet

Implements ICameraSystemV400.

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, and ICameraSystemV451.

§ SetTerrainLODOriginLLA()

virtual void SetTerrainLODOriginLLA ( double  lat,
double  lon,
double  alt 
)
privatepure virtual

Set the LLA of where the center of the terrain LOD radius for this camera will go.

Parameters
latLatitude of LOD ring center in degrees
lonLongitude of LOD ring center in degrees
altAltitude of LOD ring center in meters

Implements ICameraSystemV400.

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, and ICameraSystemV451.

§ SetVirtualCockpitTransparentValue()

virtual void SetVirtualCockpitTransparentValue ( unsigned int  level)
privatepure virtual

Sets a cockpit transparency level

Parameters
levelvalue between [0-100] to indicate the transparent level. 100 is Fully transparent.

Implements ICameraSystemV400.

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, and ICameraSystemV451.

§ SetZoom()

virtual void SetZoom ( float  zoom)
privatepure virtual

Set the Zoom

Parameters
zoom

Implements ICameraSystemV400.

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, and ICameraSystemV451.

§ SetZoomGoal()

virtual void SetZoomGoal ( float  zoomGoal)
privatepure virtual

Set the Zoom goal for the camera

Parameters
zoomGoalZoom goal to set

Implements ICameraSystemV400.

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, and ICameraSystemV451.

§ TargetCameraLookAt()

virtual void TargetCameraLookAt ( )
privatepure virtual

Automatically sets the camera to target ground at center of view

Implements ICameraSystemV400.

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, and ICameraSystemV451.

§ ZoomIn()

virtual void ZoomIn ( void  )
privatepure virtual

Zoom in one zoom level increment

Implements ICameraSystemV400.

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, and ICameraSystemV451.

§ ZoomOut()

virtual void ZoomOut ( void  )
privatepure virtual

Zoom out one zoom level increment

Implements ICameraSystemV400.

Implemented in ICameraSystemV450, ICameraSystemV440, ICameraSystemV430, and ICameraSystemV451.

§ P3D::P3D::ICameraSystemV430

class P3D::P3D::ICameraSystemV430

Camera system interface that can be used to get or set camera states such as position, orientation, and field of view.

Remarks
The reader/writer interfaces usind in Prepar3D v2 and v3 have been have been combined for ease of use and the camera and window functionality have been put in separate interfaces. All 3d views will have a camera system. Panel windows do not have a camera system.

Inherits ICameraSystemV410.

Inherited by ICameraSystemV440.

Private Member Functions

virtual void GetCameraDefinition (WCHAR *cameraDefinition) override
 
virtual void SetRelative6DOF (float fDeltaX, float fDeltaY, float fDeltaZ, float fPitchDeg, float fBankDeg, float fHeadingDeg) override
 
virtual void SetSmoothRelative6DOF (float fDeltaX, float fDeltaY, float fDeltaZ, float fPitchDeg, float fBankDeg, float fHeadingDeg, float smoothPanTime=0) override
 
virtual void SetFov (float hFov, float vFov) override
 
virtual void SetZoomGoal (float zoomGoal) override
 
virtual void SetZoom (float zoom) override
 
virtual void PanToView (const WCHAR *name) override
 
virtual void AddPostProcess (const WCHAR *name) override
 
virtual void RemovePostProcess (const WCHAR *name) override
 
virtual void ResetPostProcess () override
 
virtual void ClearPostProcess () override
 
virtual void Reset () override
 
virtual void ZoomIn (void) override
 
virtual void ZoomOut (void) override
 
virtual void SetVirtualCockpitTransparentValue (unsigned int level) override
 
virtual void SetChaseDistance (float fDistance) override
 
virtual void SetChaseAltitude (float fAltitude) override
 
virtual void SetSensorMode (unsigned int mode) override
 
virtual void SetExcludeVcPostProcess (bool exclude) override
 
virtual void SetExcludeVcPanelsSensor (bool exclude) override
 
virtual void SetFarClip (float far) override
 
virtual void SetNearClip (float near) override
 
virtual void SetTerrainLODOriginLLA (double lat, double lon, double alt) override
 
virtual void SetSceneryLODOriginLLA (double lat, double lon, double alt) override
 
virtual void SetAmbientBoostAndLightAmplificationLevel (const float ambientBoost, const float lightAmplificationLevel) override
 
virtual void SetTargetFrameRate (const float targetFrameRate) override
 
virtual int AddPickRequest (int x, int y) override
 
virtual void ActivatePositionTracking () override
 
virtual void DeactivatePositionTracking () override
 
virtual void ActivateEntityTracking () override
 
virtual void DeactivateEntityTracking () override
 
virtual void SetTargetLatLonAltDegrees (double lat, double lon, double alt) override
 
virtual void SetTargetContainerId (UINT containerId) override
 
virtual void SetPBH (float fPitchDeg, float fBankDeg, float fHeadingDeg) override
 
virtual void SetLLA (double dLat, double dLon, double dAlt) override
 
virtual void SetOffsetXYZ (float fDeltaX, float fDeltaY, float fDeltaZ) override
 
virtual void SetGlobalRotate (bool bGlobalRotate) override
 
virtual void SetGlobalPBH (float fPitchDeg, float fBankDeg, float fHeadingDeg) override
 
virtual void TargetCameraLookAt () override
 
virtual void SetSideAngles (float fLeft, float fRight, float fTop, float fBottom) override
 
virtual float GetRightAngle () override
 
virtual float GetLeftAngle () override
 
virtual float GetBottomAngle () override
 
virtual float GetTopAngle () override
 
virtual void SetFrustumOffsetXYZ (float fOffsetX, float fOffsetY, float fOffsetZ) override
 
virtual void SetFrustumOffsetPBH (float fOffsetP, float fOffsetB, float fOffsetH) override
 
virtual void SetHmdMode (HMD_MODE eMode) override
 
virtual int GetActiveViewGroup () override
 
virtual void GetFov (float &hFov, float &vFov) const override
 
virtual void GetZoom (float &fZoom) const override
 
virtual void GetPBH (float &p, float &b, float &h) const override
 
virtual void GetBiasPBH (float &p, float &b, float &h) const override
 
virtual void GetLLA (double &lat, double &lon, double &alt) const override
 
virtual void GetCameraOffset (float &x, float &y, float &z) const override
 
virtual void GetViewMatrix (float output4x4[4][4]) const override
 
virtual void GetStandardProjectionMatrix (float output4x4[4][4]) const override
 
virtual void GetVirtualCockpitProjectionMatrix (float output4x4[4][4]) const override
 
virtual float GetNearClip () const override
 
virtual float GetFarClip () const override
 
virtual void GetPickResult (int ID, bool &wasHit, float &distanceToHit) const override
 
virtual void GetPickResult (int ID, PickResult &result) const override
 
virtual int GetAvatarMode () const override
 
virtual void GetLLARadians (double &lat, double &lon, double &alt) const override
 
virtual void GetTargetLatLonAltDegrees (double &lat, double &lon, double &alt) const override
 
virtual void GetTargetContainerId (UINT32 &containerId) const override
 
virtual void GetSensorMode (UINT32 &sensorMode) const override
 
virtual bool GetCameraLookAtLLA (double &lat, double &lon, double &alt) const override
 
virtual bool IsGlobalRotate () const override
 
virtual void GetGlobalPBH (float &p, float &b, float &h) const override
 
virtual void GetTargetLatString (WCHAR *targetLat) const override
 
virtual void GetTargetLonString (WCHAR *targetLon) const override
 
virtual void GetPickTextureLocation (int ID, WCHAR *windowName, bool &wasHit, float &u, float &v, float &distanceToHit) const override
 
virtual void GetScreenCoord (const double lla[3], const float pbh[3], const float xyzOffset[][3], float xyOutput[][3], const int count) const override
 
virtual void GetScreenCoord (const float xyzOffset[][3], float xyOutput[][3], const int count) const override
 
virtual void GetScreenCoord (const LLADegreesMeters &lla, ScreenCoord &screenCoord) const override
 
virtual void GetWorldCoord (const ScreenCoord &screenCoord, LLADegreesMeters &lla) const override
 
virtual unsigned int GetVirtualCockpitTransparentValue () const override
 
virtual float GetChaseDistance () const override
 
virtual float GetChaseAltitude () const override
 
virtual float GetTargetFrameRate () const override
 
virtual void GetPostProcesses (INameList &names) const override
 
virtual bool IsVirtualCockpit (void) const override
 
virtual bool IsTopDown (void) const override
 
virtual void GetRequestedZoom (float &zoom) const override
 
virtual bool IsHMDView () const override
 
virtual void GetWorldTransform (ObjectWorldTransform &transform, CAMERA_TRANFORM_REFERENCE referece) const override
 
virtual void GetSideAngles (float &fLeft, float &fRight, float &fTop, float &fBottom) const override
 

Member Function Documentation

§ ActivateEntityTracking()

virtual void ActivateEntityTracking ( )
privatepure virtual

Activate entity tracking enabling camera to look at a specified entity

Implements ICameraSystemV410.

Implemented in ICameraSystemV450, ICameraSystemV440, and ICameraSystemV451.

§ ActivatePositionTracking()

virtual void ActivatePositionTracking ( )
privatepure virtual

Activate position tracking enabling camera to look at a specified LLA

Implements ICameraSystemV410.

Implemented in ICameraSystemV450, ICameraSystemV440, and ICameraSystemV451.

§ AddPickRequest()

virtual int AddPickRequest ( int  x,
int  y 
)
privatepure virtual

Request a Pick test at a given screen coordinate. An ID is returned which can later be used to request the results of the test.

Parameters
xx screen coordinate
yy screen coordinate
Returns
ID later used to request the pick result

Implements ICameraSystemV410.

Implemented in ICameraSystemV450, ICameraSystemV440, and ICameraSystemV451.

§ AddPostProcess()

virtual void AddPostProcess ( const WCHAR *  name)
privatepure virtual

Add a post process effect to the window

Parameters
nameName of post process to add

Implements ICameraSystemV410.

Implemented in ICameraSystemV450, ICameraSystemV440, and ICameraSystemV451.

§ ClearPostProcess()

virtual void ClearPostProcess ( )
privatepure virtual

Clear all post process effects from the camera

Implements ICameraSystemV410.

Implemented in ICameraSystemV450, ICameraSystemV440, and ICameraSystemV451.

§ DeactivateEntityTracking()

virtual void DeactivateEntityTracking ( )
privatepure virtual

Deactivate entity tracking

Implements ICameraSystemV410.

Implemented in ICameraSystemV450, ICameraSystemV440, and ICameraSystemV451.

§ DeactivatePositionTracking()

virtual void DeactivatePositionTracking ( )
privatepure virtual

Deactivate position tracking

Implements ICameraSystemV410.

Implemented in ICameraSystemV450, ICameraSystemV440, and ICameraSystemV451.

§ GetActiveViewGroup()

virtual int GetActiveViewGroup ( )
privatepure virtual

Get active View Group

Implements ICameraSystemV410.

Implemented in ICameraSystemV450, ICameraSystemV440, and ICameraSystemV451.

§ GetAvatarMode()

virtual int GetAvatarMode ( ) const
privatepure virtual

Get the AvatarMode for the current window.

Returns
The AvatarMode of the current window. (0 = None, 1 = First, 2 = Third)

Implements ICameraSystemV410.

Implemented in ICameraSystemV450, ICameraSystemV440, and ICameraSystemV451.

§ GetBiasPBH()

virtual void GetBiasPBH ( float &  p,
float &  b,
float &  h 
) const
privatepure virtual

Get the offset of the pbh relative to the origin

Parameters
[out]pPitch
[out]bBank
[out]hHeading

Implements ICameraSystemV410.

Implemented in ICameraSystemV450, ICameraSystemV440, and ICameraSystemV451.

§ GetBottomAngle()

virtual float GetBottomAngle ( )
privatepure virtual

Gets the Bottom Side Angle of the camera view

Implemented in ICameraSystemV450, ICameraSystemV440, and ICameraSystemV451.

§ GetCameraDefinition()

virtual void GetCameraDefinition ( WCHAR *  cameraDefinition)
privatepure virtual

Get the window's camera definition

Remarks
camera definitions are defined in Cameras.cfg or in aircraft.cfg

Implements ICameraSystemV410.

Implemented in ICameraSystemV450, ICameraSystemV440, and ICameraSystemV451.

§ GetCameraLookAtLLA()

virtual bool GetCameraLookAtLLA ( double &  lat,
double &  lon,
double &  alt 
) const
privatepure virtual

Gets the LLA the camera is looking at

Parameters
[out]latThe target latitude
[out]lonThe target longitude
[out]altThe target altitude
Returns
If the LLA is valid

Implements ICameraSystemV410.

Implemented in ICameraSystemV450, ICameraSystemV440, and ICameraSystemV451.

§ GetCameraOffset()

virtual void GetCameraOffset ( float &  x,
float &  y,
float &  z 
) const
privatepure virtual

Get the camera offset from the origin

Parameters
[out]x,y,zcamera's 3d offset from origin

Implements ICameraSystemV410.

Implemented in ICameraSystemV450, ICameraSystemV440, and ICameraSystemV451.

§ GetChaseAltitude()

virtual float GetChaseAltitude ( ) const
privatepure virtual

Gets the chase altitude in meters

Returns
Chase altitude in meters

Implements ICameraSystemV410.

Implemented in ICameraSystemV450, ICameraSystemV440, and ICameraSystemV451.

§ GetChaseDistance()

virtual float GetChaseDistance ( ) const
privatepure virtual

Gets the chase distance in meters

Returns
Chase distance in meters

Implements ICameraSystemV410.

Implemented in ICameraSystemV450, ICameraSystemV440, and ICameraSystemV451.

§ GetFarClip()

virtual float GetFarClip ( ) const
privatepure virtual

Gets far clip distance in meters

Returns
far clip distance in meters

Implements ICameraSystemV410.

Implemented in ICameraSystemV450, ICameraSystemV440, and ICameraSystemV451.

§ GetFov()

virtual void GetFov ( float &  hFov,
float &  vFov 
) const
privatepure virtual

Get the field of view of the camera

Parameters
[out]hFovHorizontal field of view
[out]vFovVertical field of view

Implements ICameraSystemV410.

Implemented in ICameraSystemV450, ICameraSystemV440, and ICameraSystemV451.

§ GetGlobalPBH()

virtual void GetGlobalPBH ( float &  p,
float &  b,
float &  h 
) const
privatepure virtual

Gets the global rotation PBH of the camera

Parameters
[out]pThe pitch in degrees
[out]bThe bank in degrees
[out]hThe heading in degrees

Implements ICameraSystemV410.

Implemented in ICameraSystemV450, ICameraSystemV440, and ICameraSystemV451.

§ GetLeftAngle()

virtual float GetLeftAngle ( )
privatepure virtual

Gets the Left Side Angle of the camera view

Implemented in ICameraSystemV450, ICameraSystemV440, and ICameraSystemV451.

§ GetLLA()

virtual void GetLLA ( double &  lat,
double &  lon,
double &  alt 
) const
privatepure virtual

Get the offset of the latitude longitude and altitude of the camera

Parameters
[out]latLatitude
[out]lonLongitude
[out]altAltitude

Implements ICameraSystemV410.

Implemented in ICameraSystemV450, ICameraSystemV440, and ICameraSystemV451.

§ GetLLARadians()

virtual void GetLLARadians ( double &  lat,
double &  lon,
double &  alt 
) const
privatepure virtual

Get the offset of the latitude longitude and altitude of the camera in radians

Parameters
[out]latLatitude
[out]lonLongitude
[out]altAltitude

Implements ICameraSystemV410.

Implemented in ICameraSystemV450, ICameraSystemV440, and ICameraSystemV451.

§ GetNearClip()

virtual float GetNearClip ( ) const
privatepure virtual

Gets near clip distance in meters

Returns
near clip distance in meters

Implements ICameraSystemV410.

Implemented in ICameraSystemV450, ICameraSystemV440, and ICameraSystemV451.

§ GetPBH()

virtual void GetPBH ( float &  p,
float &  b,
float &  h 
) const
privatepure virtual

Get the orientation of the camera (Pitch, Bank, and Heading)

Parameters
[out]pPitch
[out]bBank
[out]hHeading

Implements ICameraSystemV410.

Implemented in ICameraSystemV450, ICameraSystemV440, and ICameraSystemV451.

§ GetPickResult() [1/2]

virtual void GetPickResult ( int  ID,
bool &  wasHit,
float &  distanceToHit 
) const
privatepure virtual

Get hit result. A pick request must first be requested using AddPickRequest. The ID passed in should be the ID that was returned from the AddPickRequest call. Passing in 0 will return the last result from the native mouse handling.

Parameters
IDID of the hit request.
[out]wasHittrue if hit test passed
[out]distancedistance to hit test intersection

Implements ICameraSystemV410.

Implemented in ICameraSystemV450, ICameraSystemV440, and ICameraSystemV451.

§ GetPickResult() [2/2]

virtual void GetPickResult ( int  ID,
PickResult result 
) const
privatepure virtual

Get hit result. A pick request must first be requested using AddPickRequest. The ID passed in should be the ID that was returned from the AddPickRequest call. Passing in 0 will return the last result from the native mouse handling.

Parameters
IDID of the hit request.
[out]resultThe hit result

Implements ICameraSystemV410.

Implemented in ICameraSystemV450, ICameraSystemV440, and ICameraSystemV451.

§ GetPickTextureLocation()

virtual void GetPickTextureLocation ( int  ID,
WCHAR *  windowName,
bool &  wasHit,
float &  u,
float &  v,
float &  distanceToHit 
) const
privatepure virtual

Get the texture coords that the pick hit on the texture in the specified window. A pick request must first be requested using AddPickRequest on a WindowPdk interface from within a window callback. The ID passed in should be the ID that was returned from the AddPickRequest call.

Parameters
IDID of the hit request.
windowNameName of window texture resides within.
[out]wasHittrue if hit test passed
[out]uu location in texture
[out]vv location in texture
[out]distanceToHitdistance to texture hit

Implements ICameraSystemV410.

Implemented in ICameraSystemV450, ICameraSystemV440, and ICameraSystemV451.

§ GetPostProcesses()

virtual void GetPostProcesses ( INameList names) const
privatepure virtual

Gets list of the names of post processes assigned to this window

Parameters
[out]nameListarray of cstrings to hold the list of names (size should be 32)
[out]sizeof list returned (will not be larger than 32)

Implements ICameraSystemV410.

Implemented in ICameraSystemV450, ICameraSystemV440, and ICameraSystemV451.

§ GetRequestedZoom()

virtual void GetRequestedZoom ( float &  zoom) const
privatepure virtual

§ GetRightAngle()

virtual float GetRightAngle ( )
privatepure virtual

Gets the Right Side Angle of the camera view

Implemented in ICameraSystemV450, ICameraSystemV440, and ICameraSystemV451.

§ GetScreenCoord() [1/3]

virtual void GetScreenCoord ( const double  lla[3],
const float  pbh[3],
const float  xyzOffset[][3],
float  xyOutput[][3],
const int  count 
) const
privatepure virtual

Get the screen coord of a point LLA + xyz offset in world space (meters)

Parameters
[in]llaLat lon alt origin of local coordinate system
[in]pbhOrientation of local coordinate system
[in]xyzOffsetList of 3d offsets in local coordinates.
[out]xyOutputList of screenspace position of the requested points
[in]countNumber of points to request. Must be at least as big as input array sizes.

Implements ICameraSystemV410.

Implemented in ICameraSystemV450, ICameraSystemV440, and ICameraSystemV451.

§ GetScreenCoord() [2/3]

virtual void GetScreenCoord ( const float  xyzOffset[][3],
float  xyOutput[][3],
const int  count 
) const
privatepure virtual

Get the screen space coordinates of a list of points relative to user sim object

Parameters
[in]xyzOffsetlist of 3d offsets in local coordinates.
[out]xyOutputlist of screenspace position of the requested points
[in]countNumber of points to request. Must be at least as big as input array sizes.

Implements ICameraSystemV410.

Implemented in ICameraSystemV450, ICameraSystemV440, and ICameraSystemV451.

§ GetScreenCoord() [3/3]

virtual void GetScreenCoord ( const LLADegreesMeters lla,
ScreenCoord screenCoord 
) const
privatepure virtual

Get the screen space coordinates of a point at the given LLA

Parameters
[in]llaworld point to query
[out]screenCoordScreenCoord of output

Implements ICameraSystemV410.

Implemented in ICameraSystemV450, ICameraSystemV440, and ICameraSystemV451.

§ GetSensorMode()

virtual void GetSensorMode ( UINT32 sensorMode) const
privatepure virtual

Get the sensor mode of the camera.

Parameters
[out]sensorModeThe sensor mode of the camera

Implements ICameraSystemV410.

Implemented in ICameraSystemV450, ICameraSystemV440, and ICameraSystemV451.

§ GetSideAngles()

virtual void GetSideAngles ( float &  fLeft,
float &  fRight,
float &  fTop,
float &  fBottom 
) const
privatepure virtual

Gets the Left, Right, Top, and Bottom Side angles of the camera view in degrees

Implemented in ICameraSystemV450, ICameraSystemV440, and ICameraSystemV451.

§ GetStandardProjectionMatrix()

virtual void GetStandardProjectionMatrix ( float  output4x4[4][4]) const
privatepure virtual

Get the standard projection matrix which is used by the Camera/Window for rendering everything but the virtual cockpit

Parameters
[out]output4x44x4 vidw matrix

Implements ICameraSystemV410.

Implemented in ICameraSystemV450, ICameraSystemV440, and ICameraSystemV451.

§ GetTargetContainerId()

virtual void GetTargetContainerId ( UINT32 containerId) const
privatepure virtual

Get the target container ID for the camera to track.

Parameters
[out]containerIdThe ID of the container to track

Implements ICameraSystemV410.

Implemented in ICameraSystemV450, ICameraSystemV440, and ICameraSystemV451.

§ GetTargetFrameRate()

virtual float GetTargetFrameRate ( ) const
privatepure virtual

Gets the target frame rate in seconds

Returns
Target frame rate in seconds

Implemented in ICameraSystemV450, ICameraSystemV440, and ICameraSystemV451.

§ GetTargetLatLonAltDegrees()

virtual void GetTargetLatLonAltDegrees ( double &  lat,
double &  lon,
double &  alt 
) const
privatepure virtual

Get the target location for the camera to track.

Parameters
[out]latTarget latitude in degrees
[out]lonTarget longitude in degrees
[out]altTarget altitude in feet

Implements ICameraSystemV410.

Implemented in ICameraSystemV450, ICameraSystemV440, and ICameraSystemV451.

§ GetTargetLatString()

virtual void GetTargetLatString ( WCHAR *  targetLat) const
privatepure virtual

Gets the target latitude in string format

Parameters
[out]targetLatLatitude

Implements ICameraSystemV410.

Implemented in ICameraSystemV450, ICameraSystemV440, and ICameraSystemV451.

§ GetTargetLonString()

virtual void GetTargetLonString ( WCHAR *  targetLon) const
privatepure virtual

Gets the target longitude in string format

Parameters
[out]targetLonLongitude

Implements ICameraSystemV410.

Implemented in ICameraSystemV450, ICameraSystemV440, and ICameraSystemV451.

§ GetTopAngle()

virtual float GetTopAngle ( )
privatepure virtual

Gets the Top Side Angle of the camera view

Implemented in ICameraSystemV450, ICameraSystemV440, and ICameraSystemV451.

§ GetViewMatrix()

virtual void GetViewMatrix ( float  output4x4[4][4]) const
privatepure virtual

Get View Matrix for this Camera/Window

Parameters
[out]output4x44x4 vidw matrix

Implements ICameraSystemV410.

Implemented in ICameraSystemV450, ICameraSystemV440, and ICameraSystemV451.

§ GetVirtualCockpitProjectionMatrix()

virtual void GetVirtualCockpitProjectionMatrix ( float  output4x4[4][4]) const
privatepure virtual

Get the standard projection matrix which is used by the Camera/Window for rendering the virtual cockpit. The VC projection has a different near and far clip to reduce z-fighting in the cockpit.

Parameters
[out]output4x44x4 vidw matrix

Implements ICameraSystemV410.

Implemented in ICameraSystemV450, ICameraSystemV440, and ICameraSystemV451.

§ GetVirtualCockpitTransparentValue()

virtual unsigned int GetVirtualCockpitTransparentValue ( ) const
privatepure virtual

Get transparency level

Returns
value between [0-100] to indicate the transparency level. 100 is fully transparent

Implements ICameraSystemV410.

Implemented in ICameraSystemV450, ICameraSystemV440, and ICameraSystemV451.

§ GetWorldCoord()

virtual void GetWorldCoord ( const ScreenCoord screenCoord,
LLADegreesMeters lla 
) const
privatepure virtual

Get the world lla coordinates of a point given a ScreenCoord

Parameters
[in]screenCoordScreenCoord point to query
[out]llaLLA output

Implements ICameraSystemV410.

Implemented in ICameraSystemV450, ICameraSystemV440, and ICameraSystemV451.

§ GetWorldTransform()

virtual void GetWorldTransform ( ObjectWorldTransform transform,
CAMERA_TRANFORM_REFERENCE  referece 
) const
privatepure virtual

§ GetZoom()

virtual void GetZoom ( float &  fZoom) const
privatepure virtual

Get the Zoom

Parameters
[out]fZoomzoom value

Implements ICameraSystemV410.

Implemented in ICameraSystemV450, ICameraSystemV440, and ICameraSystemV451.

§ IsGlobalRotate()

virtual bool IsGlobalRotate ( ) const
privatepure virtual

Gets if the camera is rotating relative to the world or vehicle.

Returns
Whether or not the camera is globally rotating

Implements ICameraSystemV410.

Implemented in ICameraSystemV450, ICameraSystemV440, and ICameraSystemV451.

§ IsHMDView()

virtual bool IsHMDView ( ) const
privatepure virtual

§ IsTopDown()

virtual bool IsTopDown ( void  ) const
privatepure virtual

Check if camera is Top Down view

Returns
true if window's active camera is a Top Down view

Implements ICameraSystemV410.

Implemented in ICameraSystemV450, ICameraSystemV440, and ICameraSystemV451.

§ IsVirtualCockpit()

virtual bool IsVirtualCockpit ( void  ) const
privatepure virtual

Check if camera is a virtual cockpit

Returns
true if window's active camera is a virtual cockpit view

Implements ICameraSystemV410.

Implemented in ICameraSystemV450, ICameraSystemV440, and ICameraSystemV451.

§ PanToView()

virtual void PanToView ( const WCHAR *  name)
privatepure virtual

Pan the camera to a saved location

Parameters
nameof saved custom camera to pan to

Implements ICameraSystemV410.

Implemented in ICameraSystemV450, ICameraSystemV440, and ICameraSystemV451.

§ RemovePostProcess()

virtual void RemovePostProcess ( const WCHAR *  name)
privatepure virtual

Remove a post process effect to the window

Parameters
nameName of post process to remove

Implements ICameraSystemV410.

Implemented in ICameraSystemV450, ICameraSystemV440, and ICameraSystemV451.

§ Reset()

virtual void Reset ( )
privatepure virtual

Reset camera settings to those defined in camera definition

Implements ICameraSystemV410.

Implemented in ICameraSystemV450, ICameraSystemV440, and ICameraSystemV451.

§ ResetPostProcess()

virtual void ResetPostProcess ( )
privatepure virtual

Reset all post process effects to those defined in camera definition

Implements ICameraSystemV410.

Implemented in ICameraSystemV450, ICameraSystemV440, and ICameraSystemV451.

§ SetAmbientBoostAndLightAmplificationLevel()

virtual void SetAmbientBoostAndLightAmplificationLevel ( const float  ambientBoost,
const float  lightAmplificationLevel 
)
privatepure virtual

Set the a scalar to amplify all light, and or a boost to the base ambient level. defaults are 1.0 and 0.0

Parameters
ambientBoostboost to base ambient level
lightAmplificationLevelscalar multiplied into all light sources

Implements ICameraSystemV410.

Implemented in ICameraSystemV450, ICameraSystemV440, and ICameraSystemV451.

§ SetChaseAltitude()

virtual void SetChaseAltitude ( float  fAltitude)
privatepure virtual

Sets the chase altitude of a camera

Parameters
fAltitudeChase altitude in meters

Implements ICameraSystemV410.

Implemented in ICameraSystemV450, ICameraSystemV440, and ICameraSystemV451.

§ SetChaseDistance()

virtual void SetChaseDistance ( float  fDistance)
privatepure virtual

Sets the chase distance of a camera

Parameters
fDistanceChase distance in meters

Implements ICameraSystemV410.

Implemented in ICameraSystemV450, ICameraSystemV440, and ICameraSystemV451.

§ SetExcludeVcPanelsSensor()

virtual void SetExcludeVcPanelsSensor ( bool  exclude)
privatepure virtual

Excludes VC panels from being sensorized

Parameters
excludeboolean value to set exclusion state

Implements ICameraSystemV410.

Implemented in ICameraSystemV450, ICameraSystemV440, and ICameraSystemV451.

§ SetExcludeVcPostProcess()

virtual void SetExcludeVcPostProcess ( bool  exclude)
privatepure virtual

Excludes entire VC from being post processed (if post process has PreVC enabled)

Parameters
excludeboolean value to set exclusion state

Implements ICameraSystemV410.

Implemented in ICameraSystemV450, ICameraSystemV440, and ICameraSystemV451.

§ SetFarClip()

virtual void SetFarClip ( float  far)
privatepure virtual

Set the far clip.

Parameters
farFar clip distance in meters

Implements ICameraSystemV410.

Implemented in ICameraSystemV450, ICameraSystemV440, and ICameraSystemV451.

§ SetFov()

virtual void SetFov ( float  hFov,
float  vFov 
)
privatepure virtual

Set the field of view of the camera

Parameters
hFovHorizontal field of view
vFovVertical field of view

Implements ICameraSystemV410.

Implemented in ICameraSystemV450, ICameraSystemV440, and ICameraSystemV451.

§ SetFrustumOffsetPBH()

virtual void SetFrustumOffsetPBH ( float  fOffsetP,
float  fOffsetB,
float  fOffsetH 
)
privatepure virtual

Set the offset PBH rotation relative to frustum group parent rotation

Parameters
fOffsetPOffset frustum Pitch relative to parent of group
fOffsetBOffset frustum Bank relative to parent of group
fOffsetHOffset frustum Heading relative to parent of group

Implements ICameraSystemV410.

Implemented in ICameraSystemV450, ICameraSystemV440, and ICameraSystemV451.

§ SetFrustumOffsetXYZ()

virtual void SetFrustumOffsetXYZ ( float  fOffsetX,
float  fOffsetY,
float  fOffsetZ 
)
privatepure virtual

Set the offset from the camera group origin for this camera

Parameters
fOffsetXOffset frustum from group origin in x direction relative to origin
fOffsetYOffset frustum from group origin in y direction relative to origin
fOffsetZOffset frustum from group origin in z direction relative to origin

Implements ICameraSystemV410.

Implemented in ICameraSystemV450, ICameraSystemV440, and ICameraSystemV451.

§ SetGlobalPBH()

virtual void SetGlobalPBH ( float  fPitchDeg,
float  fBankDeg,
float  fHeadingDeg 
)
privatepure virtual

Sets the global rotation value of the camera

Parameters
fPitchDegThe pitch
fBankDegThe bank
fHeadingDegThe heading

Implements ICameraSystemV410.

Implemented in ICameraSystemV450, ICameraSystemV440, and ICameraSystemV451.

§ SetGlobalRotate()

virtual void SetGlobalRotate ( bool  bGlobalRotate)
privatepure virtual

Sets whether the camera will rotate independent of attached object

Parameters
bGlobalRotateWhether or not the camera will rotate independent of attached object

Implements ICameraSystemV410.

Implemented in ICameraSystemV450, ICameraSystemV440, and ICameraSystemV451.

§ SetHmdMode()

virtual void SetHmdMode ( HMD_MODE  eMode)
privatepure virtual

Set the HMD mode for this camera

Parameters
eModethe HDM mode to assign to this camera

Implements ICameraSystemV410.

Implemented in ICameraSystemV450, ICameraSystemV440, and ICameraSystemV451.

§ SetLLA()

virtual void SetLLA ( double  dLat,
double  dLon,
double  dAlt 
)
privatepure virtual

Set the location of the camera. Currently only applies to cameras with a Fixed Origin type.

Parameters
dLatLatitude in degrees
dLonLongitude in degrees
dAltAltitude in meters

Implemented in ICameraSystemV450, ICameraSystemV440, and ICameraSystemV451.

§ SetNearClip()

virtual void SetNearClip ( float  near)
privatepure virtual

Set the near clip.

Parameters
nearNear clip distance in meters

Implements ICameraSystemV410.

Implemented in ICameraSystemV450, ICameraSystemV440, and ICameraSystemV451.

§ SetOffsetXYZ()

virtual void SetOffsetXYZ ( float  fDeltaX,
float  fDeltaY,
float  fDeltaZ 
)
privatepure virtual

Set the xyz offset of the camera.

Parameters
fDeltaXX offset in meters
fDeltaYY offset in meters
fDeltaZZ offset in meters

Implements ICameraSystemV410.

Implemented in ICameraSystemV450, ICameraSystemV440, and ICameraSystemV451.

§ SetPBH()

virtual void SetPBH ( float  fPitchDeg,
float  fBankDeg,
float  fHeadingDeg 
)
privatepure virtual

Set the pbh of the camera.

Parameters
fPitchDegPitch in degrees
fPitchDegBank, in degrees
fPitchDegHeading in degrees

Implements ICameraSystemV410.

Implemented in ICameraSystemV450, ICameraSystemV440, and ICameraSystemV451.

§ SetRelative6DOF()

virtual void SetRelative6DOF ( float  fDeltaX,
float  fDeltaY,
float  fDeltaZ,
float  fPitchDeg,
float  fBankDeg,
float  fHeadingDeg 
)
privatepure virtual

Set the camera position and orientation relative to its origin in 3D space

Parameters
fDeltaX,fDeltaY,fDeltaZ3D position relative to origin
fPitchDeg,fBankDeg,fHeadingDegRelative orientation pitch bank and heading

Implements ICameraSystemV410.

Implemented in ICameraSystemV450, ICameraSystemV440, and ICameraSystemV451.

§ SetSceneryLODOriginLLA()

virtual void SetSceneryLODOriginLLA ( double  lat,
double  lon,
double  alt 
)
privatepure virtual

Set the LLA of where the center of the scenery LOD radius for this camera will go. This determines where models and builds load and display.

Parameters
latLatitude of LOD ring center in degrees
lonLongitude of LOD ring center in degrees
altAltitude of LOD ring center in meters

Implements ICameraSystemV410.

Implemented in ICameraSystemV450, ICameraSystemV440, and ICameraSystemV451.

§ SetSensorMode()

virtual void SetSensorMode ( unsigned int  mode)
privatepure virtual

Sets the sensor mode of a camera

Parameters
modeSensor mode (0: None, 1: IR White Hot, 2: IR Black Hot, 3: GData

Implements ICameraSystemV410.

Implemented in ICameraSystemV450, ICameraSystemV440, and ICameraSystemV451.

§ SetSideAngles()

virtual void SetSideAngles ( float  fLeft,
float  fRight,
float  fTop,
float  fBottom 
)
privatepure virtual

Set Side Angles for a potentially off-axis projection. Positive direction is Right and Down.

Parameters
fLeftAngle in radians from view direction to the left edge of camera's view
fRightAngle in radians from view direction to the right edge of camera's view
fTopAngle in radians from view direction to the top edge of camera's view
fBottomAngle in radians from view direction to bottom left edge of camera's view

Implements ICameraSystemV410.

Implemented in ICameraSystemV450, ICameraSystemV440, and ICameraSystemV451.

§ SetSmoothRelative6DOF()

virtual void SetSmoothRelative6DOF ( float  fDeltaX,
float  fDeltaY,
float  fDeltaZ,
float  fPitchDeg,
float  fBankDeg,
float  fHeadingDeg,
float  smoothPanTime = 0 
)
privatepure virtual

Change the relative position and orientation of camera using a smooth transition

Parameters
fDeltaX,fDeltaY,fDeltaZ3D position relative to origin
fPitchDeg,fBankDeg,fHeadingDegRelative orientation pitch bank and heading
smoothPanTimeTime-frame for the camera to pan to the new position

Implements ICameraSystemV410.

Implemented in ICameraSystemV450, ICameraSystemV440, and ICameraSystemV451.

§ SetTargetContainerId()

virtual void SetTargetContainerId ( UINT  containerId)
privatepure virtual

Set the target container ID for the camera to track.

Parameters
containerIdThe ID of the container to track

Implements ICameraSystemV410.

Implemented in ICameraSystemV450, ICameraSystemV440, and ICameraSystemV451.

§ SetTargetFrameRate()

virtual void SetTargetFrameRate ( const float  targetFrameRate)
privatepure virtual

Set the target frame rate, a rate of 0 is unlimited

Parameters
targetFrameRatetarget frame rate in seconds

Implemented in ICameraSystemV450, ICameraSystemV440, and ICameraSystemV451.

§ SetTargetLatLonAltDegrees()

virtual void SetTargetLatLonAltDegrees ( double  lat,
double  lon,
double  alt 
)
privatepure virtual

Set the target location for the camera to track.

Parameters
latTarget latitude in degrees
lonTarget longitude in degrees
altTarget altitude in feet

Implements ICameraSystemV410.

Implemented in ICameraSystemV450, ICameraSystemV440, and ICameraSystemV451.

§ SetTerrainLODOriginLLA()

virtual void SetTerrainLODOriginLLA ( double  lat,
double  lon,
double  alt 
)
privatepure virtual

Set the LLA of where the center of the terrain LOD radius for this camera will go.

Parameters
latLatitude of LOD ring center in degrees
lonLongitude of LOD ring center in degrees
altAltitude of LOD ring center in meters

Implements ICameraSystemV410.

Implemented in ICameraSystemV450, ICameraSystemV440, and ICameraSystemV451.

§ SetVirtualCockpitTransparentValue()

virtual void SetVirtualCockpitTransparentValue ( unsigned int  level)
privatepure virtual

Sets a cockpit transparency level

Parameters
levelvalue between [0-100] to indicate the transparent level. 100 is Fully transparent.

Implements ICameraSystemV410.

Implemented in ICameraSystemV450, ICameraSystemV440, and ICameraSystemV451.

§ SetZoom()

virtual void SetZoom ( float  zoom)
privatepure virtual

Set the Zoom

Parameters
zoom

Implements ICameraSystemV410.

Implemented in ICameraSystemV450, ICameraSystemV440, and ICameraSystemV451.

§ SetZoomGoal()

virtual void SetZoomGoal ( float  zoomGoal)
privatepure virtual

Set the Zoom goal for the camera

Parameters
zoomGoalZoom goal to set

Implements ICameraSystemV410.

Implemented in ICameraSystemV450, ICameraSystemV440, and ICameraSystemV451.

§ TargetCameraLookAt()

virtual void TargetCameraLookAt ( )
privatepure virtual

Automatically sets the camera to target ground at center of view

Implements ICameraSystemV410.

Implemented in ICameraSystemV450, ICameraSystemV440, and ICameraSystemV451.

§ ZoomIn()

virtual void ZoomIn ( void  )
privatepure virtual

Zoom in one zoom level increment

Implements ICameraSystemV410.

Implemented in ICameraSystemV450, ICameraSystemV440, and ICameraSystemV451.

§ ZoomOut()

virtual void ZoomOut ( void  )
privatepure virtual

Zoom out one zoom level increment

Implements ICameraSystemV410.

Implemented in ICameraSystemV450, ICameraSystemV440, and ICameraSystemV451.

§ P3D::P3D::ICameraSystemV440

class P3D::P3D::ICameraSystemV440

Inherits ICameraSystemV430.

Inherited by ICameraSystemV450.

Private Member Functions

virtual void GetCameraDefinition (WCHAR *cameraDefinition) override
 
virtual void SetRelative6DOF (float fDeltaX, float fDeltaY, float fDeltaZ, float fPitchDeg, float fBankDeg, float fHeadingDeg) override
 
virtual void SetSmoothRelative6DOF (float fDeltaX, float fDeltaY, float fDeltaZ, float fPitchDeg, float fBankDeg, float fHeadingDeg, float smoothPanTime=0) override
 
virtual void SetFov (float hFov, float vFov) override
 
virtual void SetZoomGoal (float zoomGoal) override
 
virtual void SetZoom (float zoom) override
 
virtual void PanToView (const WCHAR *name) override
 
virtual void AddPostProcess (const WCHAR *name) override
 
virtual void RemovePostProcess (const WCHAR *name) override
 
virtual void ResetPostProcess () override
 
virtual void ClearPostProcess () override
 
virtual void Reset () override
 
virtual void ZoomIn (void) override
 
virtual void ZoomOut (void) override
 
virtual void SetVirtualCockpitTransparentValue (unsigned int level) override
 
virtual void SetChaseDistance (float fDistance) override
 
virtual void SetChaseAltitude (float fAltitude) override
 
virtual void SetSensorMode (unsigned int mode) override
 
virtual void SetExcludeVcPostProcess (bool exclude) override
 
virtual void SetExcludeVcPanelsSensor (bool exclude) override
 
virtual void SetFarClip (float far) override
 
virtual void SetNearClip (float near) override
 
virtual void SetTerrainLODOriginLLA (double lat, double lon, double alt) override
 
virtual void SetSceneryLODOriginLLA (double lat, double lon, double alt) override
 
virtual void SetAmbientBoostAndLightAmplificationLevel (const float ambientBoost, const float lightAmplificationLevel) override
 
virtual void SetTargetFrameRate (const float targetFrameRate) override
 
virtual int AddPickRequest (int x, int y) override
 
virtual void ActivatePositionTracking () override
 
virtual void DeactivatePositionTracking () override
 
virtual void ActivateEntityTracking () override
 
virtual void DeactivateEntityTracking () override
 
virtual void SetTargetLatLonAltDegrees (double lat, double lon, double alt) override
 
virtual void SetTargetContainerId (UINT containerId) override
 
virtual void SetPBH (float fPitchDeg, float fBankDeg, float fHeadingDeg) override
 
virtual void SetLLA (double dLat, double dLon, double dAlt) override
 
virtual void SetOffsetXYZ (float fDeltaX, float fDeltaY, float fDeltaZ) override
 
virtual void SetGlobalRotate (bool bGlobalRotate) override
 
virtual void SetGlobalPBH (float fPitchDeg, float fBankDeg, float fHeadingDeg) override
 
virtual void TargetCameraLookAt () override
 
virtual void SetSideAngles (float fLeft, float fRight, float fTop, float fBottom) override
 
virtual float GetRightAngle () override
 
virtual float GetLeftAngle () override
 
virtual float GetBottomAngle () override
 
virtual float GetTopAngle () override
 
virtual void SetFrustumOffsetXYZ (float fOffsetX, float fOffsetY, float fOffsetZ) override
 
virtual void SetFrustumOffsetPBH (float fOffsetP, float fOffsetB, float fOffsetH) override
 
virtual void SetHmdMode (HMD_MODE eMode) override
 
virtual int GetActiveViewGroup () override
 
virtual void GetFov (float &hFov, float &vFov) const override
 
virtual void GetZoom (float &fZoom) const override
 
virtual void GetPBH (float &p, float &b, float &h) const override
 
virtual void GetBiasPBH (float &p, float &b, float &h) const override
 
virtual void GetLLA (double &lat, double &lon, double &alt) const override
 
virtual void GetCameraOffset (float &x, float &y, float &z) const override
 
virtual void GetViewMatrix (float output4x4[4][4]) const override
 
virtual void GetStandardProjectionMatrix (float output4x4[4][4]) const override
 
virtual void GetVirtualCockpitProjectionMatrix (float output4x4[4][4]) const override
 
virtual float GetNearClip () const override
 
virtual float GetFarClip () const override
 
virtual void GetPickResult (int ID, bool &wasHit, float &distanceToHit) const override
 
virtual void GetPickResult (int ID, PickResult &result) const override
 
virtual int GetAvatarMode () const override
 
virtual void GetLLARadians (double &lat, double &lon, double &alt) const override
 
virtual void GetPBHRadians (float &pitch, float &bank, float &heading) const override
 
virtual void GetTargetLatLonAltDegrees (double &lat, double &lon, double &alt) const override
 
virtual void GetTargetContainerId (UINT32 &containerId) const override
 
virtual void GetSensorMode (UINT32 &sensorMode) const override
 
virtual bool GetCameraLookAtLLA (double &lat, double &lon, double &alt) const override
 
virtual bool IsGlobalRotate () const override
 
virtual void GetGlobalPBH (float &p, float &b, float &h) const override
 
virtual void GetTargetLatString (WCHAR *targetLat) const override
 
virtual void GetTargetLonString (WCHAR *targetLon) const override
 
virtual void GetPickTextureLocation (int ID, WCHAR *windowName, bool &wasHit, float &u, float &v, float &distanceToHit) const override
 
virtual void GetScreenCoord (const double lla[3], const float pbh[3], const float xyzOffset[][3], float xyOutput[][3], const int count) const override
 
virtual void GetScreenCoord (const float xyzOffset[][3], float xyOutput[][3], const int count) const override
 
virtual void GetScreenCoord (const LLADegreesMeters &lla, ScreenCoord &screenCoord) const override
 
virtual void GetWorldCoord (const ScreenCoord &screenCoord, LLADegreesMeters &lla) const override
 
virtual unsigned int GetVirtualCockpitTransparentValue () const override
 
virtual float GetChaseDistance () const override
 
virtual float GetChaseAltitude () const override
 
virtual float GetTargetFrameRate () const override
 
virtual void GetPostProcesses (INameList &names) const override
 
virtual bool IsVirtualCockpit (void) const override
 
virtual bool IsTopDown (void) const override
 
virtual void GetRequestedZoom (float &zoom) const override
 
virtual bool IsHMDView () const override
 
virtual void GetWorldTransform (ObjectWorldTransform &transform, CAMERA_TRANFORM_REFERENCE referece) const override
 
virtual void GetSideAngles (float &fLeft, float &fRight, float &fTop, float &fBottom) const override
 
virtual bool GetTargetCrosshairs () const override
 
virtual bool GetRenderDesignators () const override
 
virtual LPCWSTR GetToolTipText () const override
 

Member Function Documentation

§ ActivateEntityTracking()

virtual void ActivateEntityTracking ( )
privatepure virtual

Activate entity tracking enabling camera to look at a specified entity

Implements ICameraSystemV430.

Implemented in ICameraSystemV450, and ICameraSystemV451.

§ ActivatePositionTracking()

virtual void ActivatePositionTracking ( )
privatepure virtual

Activate position tracking enabling camera to look at a specified LLA

Implements ICameraSystemV430.

Implemented in ICameraSystemV450, and ICameraSystemV451.

§ AddPickRequest()

virtual int AddPickRequest ( int  x,
int  y 
)
privatepure virtual

Request a Pick test at a given screen coordinate. An ID is returned which can later be used to request the results of the test.

Parameters
xx screen coordinate
yy screen coordinate
Returns
ID later used to request the pick result

Implements ICameraSystemV430.

Implemented in ICameraSystemV450, and ICameraSystemV451.

§ AddPostProcess()

virtual void AddPostProcess ( const WCHAR *  name)
privatepure virtual

Add a post process effect to the window

Parameters
nameName of post process to add

Implements ICameraSystemV430.

Implemented in ICameraSystemV450, and ICameraSystemV451.

§ ClearPostProcess()

virtual void ClearPostProcess ( )
privatepure virtual

Clear all post process effects from the camera

Implements ICameraSystemV430.

Implemented in ICameraSystemV450, and ICameraSystemV451.

§ DeactivateEntityTracking()

virtual void DeactivateEntityTracking ( )
privatepure virtual

Deactivate entity tracking

Implements ICameraSystemV430.

Implemented in ICameraSystemV450, and ICameraSystemV451.

§ DeactivatePositionTracking()

virtual void DeactivatePositionTracking ( )
privatepure virtual

Deactivate position tracking

Implements ICameraSystemV430.

Implemented in ICameraSystemV450, and ICameraSystemV451.

§ GetActiveViewGroup()

virtual int GetActiveViewGroup ( )
privatepure virtual

Get active View Group

Implements ICameraSystemV430.

Implemented in ICameraSystemV450, and ICameraSystemV451.

§ GetAvatarMode()

virtual int GetAvatarMode ( ) const
privatepure virtual

Get the AvatarMode for the current window.

Returns
The AvatarMode of the current window. (0 = None, 1 = First, 2 = Third)

Implements ICameraSystemV430.

Implemented in ICameraSystemV450, and ICameraSystemV451.

§ GetBiasPBH()

virtual void GetBiasPBH ( float &  p,
float &  b,
float &  h 
) const
privatepure virtual

Get the offset of the pbh relative to the origin

Parameters
[out]pPitch
[out]bBank
[out]hHeading

Implements ICameraSystemV430.

Implemented in ICameraSystemV450, and ICameraSystemV451.

§ GetBottomAngle()

virtual float GetBottomAngle ( )
privatepure virtual

Gets the Bottom Side Angle of the camera view

Implements ICameraSystemV430.

Implemented in ICameraSystemV450, and ICameraSystemV451.

§ GetCameraDefinition()

virtual void GetCameraDefinition ( WCHAR *  cameraDefinition)
privatepure virtual

Get the window's camera definition

Remarks
camera definitions are defined in Cameras.cfg or in aircraft.cfg

Implements ICameraSystemV430.

Implemented in ICameraSystemV450, and ICameraSystemV451.

§ GetCameraLookAtLLA()

virtual bool GetCameraLookAtLLA ( double &  lat,
double &  lon,
double &  alt 
) const
privatepure virtual

Gets the LLA the camera is looking at

Parameters
[out]latThe target latitude
[out]lonThe target longitude
[out]altThe target altitude
Returns
If the LLA is valid

Implements ICameraSystemV430.

Implemented in ICameraSystemV450, and ICameraSystemV451.

§ GetCameraOffset()

virtual void GetCameraOffset ( float &  x,
float &  y,
float &  z 
) const
privatepure virtual

Get the camera offset from the origin

Parameters
[out]x,y,zcamera's 3d offset from origin

Implements ICameraSystemV430.

Implemented in ICameraSystemV450, and ICameraSystemV451.

§ GetChaseAltitude()

virtual float GetChaseAltitude ( ) const
privatepure virtual

Gets the chase altitude in meters

Returns
Chase altitude in meters

Implements ICameraSystemV430.

Implemented in ICameraSystemV450, and ICameraSystemV451.

§ GetChaseDistance()

virtual float GetChaseDistance ( ) const
privatepure virtual

Gets the chase distance in meters

Returns
Chase distance in meters

Implements ICameraSystemV430.

Implemented in ICameraSystemV450, and ICameraSystemV451.

§ GetFarClip()

virtual float GetFarClip ( ) const
privatepure virtual

Gets far clip distance in meters

Returns
far clip distance in meters

Implements ICameraSystemV430.

Implemented in ICameraSystemV450, and ICameraSystemV451.

§ GetFov()

virtual void GetFov ( float &  hFov,
float &  vFov 
) const
privatepure virtual

Get the field of view of the camera

Parameters
[out]hFovHorizontal field of view
[out]vFovVertical field of view

Implements ICameraSystemV430.

Implemented in ICameraSystemV450, and ICameraSystemV451.

§ GetGlobalPBH()

virtual void GetGlobalPBH ( float &  p,
float &  b,
float &  h 
) const
privatepure virtual

Gets the global rotation PBH of the camera

Parameters
[out]pThe pitch in degrees
[out]bThe bank in degrees
[out]hThe heading in degrees

Implements ICameraSystemV430.

Implemented in ICameraSystemV450, and ICameraSystemV451.

§ GetLeftAngle()

virtual float GetLeftAngle ( )
privatepure virtual

Gets the Left Side Angle of the camera view

Implements ICameraSystemV430.

Implemented in ICameraSystemV450, and ICameraSystemV451.

§ GetLLA()

virtual void GetLLA ( double &  lat,
double &  lon,
double &  alt 
) const
privatepure virtual

Get the offset of the latitude longitude and altitude of the camera

Parameters
[out]latLatitude
[out]lonLongitude
[out]altAltitude

Implements ICameraSystemV430.

Implemented in ICameraSystemV450, and ICameraSystemV451.

§ GetLLARadians()

virtual void GetLLARadians ( double &  lat,
double &  lon,
double &  alt 
) const
privatepure virtual

Get the offset of the latitude longitude and altitude of the camera in radians

Parameters
[out]latLatitude
[out]lonLongitude
[out]altAltitude

Implements ICameraSystemV430.

Implemented in ICameraSystemV450, and ICameraSystemV451.

§ GetNearClip()

virtual float GetNearClip ( ) const
privatepure virtual

Gets near clip distance in meters

Returns
near clip distance in meters

Implements ICameraSystemV430.

Implemented in ICameraSystemV450, and ICameraSystemV451.

§ GetPBH()

virtual void GetPBH ( float &  p,
float &  b,
float &  h 
) const
privatepure virtual

Get the orientation of the camera (Pitch, Bank, and Heading)

Parameters
[out]pPitch
[out]bBank
[out]hHeading

Implements ICameraSystemV430.

Implemented in ICameraSystemV450, and ICameraSystemV451.

§ GetPBHRadians()

virtual void GetPBHRadians ( float &  pitch,
float &  bank,
float &  heading 
) const
privatepure virtual

Get the orientation of the camera (Pitch, Bank, and Heading) in radians

Parameters
[out]pPitch
[out]bBank
[out]hHeading

Implemented in ICameraSystemV450, and ICameraSystemV451.

§ GetPickResult() [1/2]

virtual void GetPickResult ( int  ID,
bool &  wasHit,
float &  distanceToHit 
) const
privatepure virtual

Get hit result. A pick request must first be requested using AddPickRequest. The ID passed in should be the ID that was returned from the AddPickRequest call. Passing in 0 will return the last result from the native mouse handling.

Parameters
IDID of the hit request.
[out]wasHittrue if hit test passed
[out]distancedistance to hit test intersection

Implements ICameraSystemV430.

Implemented in ICameraSystemV450, and ICameraSystemV451.

§ GetPickResult() [2/2]

virtual void GetPickResult ( int  ID,
PickResult result 
) const
privatepure virtual

Get hit result. A pick request must first be requested using AddPickRequest. The ID passed in should be the ID that was returned from the AddPickRequest call. Passing in 0 will return the last result from the native mouse handling.

Parameters
IDID of the hit request.
[out]resultThe hit result

Implements ICameraSystemV430.

Implemented in ICameraSystemV450, and ICameraSystemV451.

§ GetPickTextureLocation()

virtual void GetPickTextureLocation ( int  ID,
WCHAR *  windowName,
bool &  wasHit,
float &  u,
float &  v,
float &  distanceToHit 
) const
privatepure virtual

Get the texture coords that the pick hit on the texture in the specified window. A pick request must first be requested using AddPickRequest on a WindowPdk interface from within a window callback. The ID passed in should be the ID that was returned from the AddPickRequest call.

Parameters
IDID of the hit request.
windowNameName of window texture resides within.
[out]wasHittrue if hit test passed
[out]uu location in texture
[out]vv location in texture
[out]distanceToHitdistance to texture hit

Implements ICameraSystemV430.

Implemented in ICameraSystemV450, and ICameraSystemV451.

§ GetPostProcesses()

virtual void GetPostProcesses ( INameList names) const
privatepure virtual

Gets list of the names of post processes assigned to this window

Parameters
[out]nameListarray of cstrings to hold the list of names (size should be 32)
[out]sizeof list returned (will not be larger than 32)

Implements ICameraSystemV430.

Implemented in ICameraSystemV450, and ICameraSystemV451.

§ GetRenderDesignators()

virtual bool GetRenderDesignators ( ) const
privatepure virtual

Gets whether or not the camera has a designator

Implemented in ICameraSystemV450, and ICameraSystemV451.

§ GetRequestedZoom()

virtual void GetRequestedZoom ( float &  zoom) const
privatepure virtual

Implements ICameraSystemV430.

Implemented in ICameraSystemV450, and ICameraSystemV451.

§ GetRightAngle()

virtual float GetRightAngle ( )
privatepure virtual

Gets the Right Side Angle of the camera view

Implements ICameraSystemV430.

Implemented in ICameraSystemV450, and ICameraSystemV451.

§ GetScreenCoord() [1/3]

virtual void GetScreenCoord ( const double  lla[3],
const float  pbh[3],
const float  xyzOffset[][3],
float  xyOutput[][3],
const int  count 
) const
privatepure virtual

Get the screen coord of a point LLA + xyz offset in world space (meters)

Parameters
[in]llaLat lon alt origin of local coordinate system
[in]pbhOrientation of local coordinate system
[in]xyzOffsetList of 3d offsets in local coordinates.
[out]xyOutputList of screenspace position of the requested points
[in]countNumber of points to request. Must be at least as big as input array sizes.

Implements ICameraSystemV430.

Implemented in ICameraSystemV450, and ICameraSystemV451.

§ GetScreenCoord() [2/3]

virtual void GetScreenCoord ( const float  xyzOffset[][3],
float  xyOutput[][3],
const int  count 
) const
privatepure virtual

Get the screen space coordinates of a list of points relative to user sim object

Parameters
[in]xyzOffsetlist of 3d offsets in local coordinates.
[out]xyOutputlist of screenspace position of the requested points
[in]countNumber of points to request. Must be at least as big as input array sizes.

Implements ICameraSystemV430.

Implemented in ICameraSystemV450, and ICameraSystemV451.

§ GetScreenCoord() [3/3]

virtual void GetScreenCoord ( const LLADegreesMeters lla,
ScreenCoord screenCoord 
) const
privatepure virtual

Get the screen space coordinates of a point at the given LLA

Parameters
[in]llaworld point to query
[out]screenCoordScreenCoord of output

Implements ICameraSystemV430.

Implemented in ICameraSystemV450, and ICameraSystemV451.

§ GetSensorMode()

virtual void GetSensorMode ( UINT32 sensorMode) const
privatepure virtual

Get the sensor mode of the camera.

Parameters
[out]sensorModeThe sensor mode of the camera

Implements ICameraSystemV430.

Implemented in ICameraSystemV450, and ICameraSystemV451.

§ GetSideAngles()

virtual void GetSideAngles ( float &  fLeft,
float &  fRight,
float &  fTop,
float &  fBottom 
) const
privatepure virtual

Gets the Left, Right, Top, and Bottom Side angles of the camera view in degrees

Implements ICameraSystemV430.

Implemented in ICameraSystemV450, and ICameraSystemV451.

§ GetStandardProjectionMatrix()

virtual void GetStandardProjectionMatrix ( float  output4x4[4][4]) const
privatepure virtual

Get the standard projection matrix which is used by the Camera/Window for rendering everything but the virtual cockpit

Parameters
[out]output4x44x4 vidw matrix

Implements ICameraSystemV430.

Implemented in ICameraSystemV450, and ICameraSystemV451.

§ GetTargetContainerId()

virtual void GetTargetContainerId ( UINT32 containerId) const
privatepure virtual

Get the target container ID for the camera to track.

Parameters
[out]containerIdThe ID of the container to track

Implements ICameraSystemV430.

Implemented in ICameraSystemV450, and ICameraSystemV451.

§ GetTargetCrosshairs()

virtual bool GetTargetCrosshairs ( ) const
privatepure virtual

Gets whether or not the camera has crosshairs

Implemented in ICameraSystemV450, and ICameraSystemV451.

§ GetTargetFrameRate()

virtual float GetTargetFrameRate ( ) const
privatepure virtual

Gets the target frame rate in seconds

Returns
Target frame rate in seconds

Implements ICameraSystemV430.

Implemented in ICameraSystemV450, and ICameraSystemV451.

§ GetTargetLatLonAltDegrees()

virtual void GetTargetLatLonAltDegrees ( double &  lat,
double &  lon,
double &  alt 
) const
privatepure virtual

Get the target location for the camera to track.

Parameters
[out]latTarget latitude in degrees
[out]lonTarget longitude in degrees
[out]altTarget altitude in feet

Implements ICameraSystemV430.

Implemented in ICameraSystemV450, and ICameraSystemV451.

§ GetTargetLatString()

virtual void GetTargetLatString ( WCHAR *  targetLat) const
privatepure virtual

Gets the target latitude in string format

Parameters
[out]targetLatLatitude

Implements ICameraSystemV430.

Implemented in ICameraSystemV450, and ICameraSystemV451.

§ GetTargetLonString()

virtual void GetTargetLonString ( WCHAR *  targetLon) const
privatepure virtual

Gets the target longitude in string format

Parameters
[out]targetLonLongitude

Implements ICameraSystemV430.

Implemented in ICameraSystemV450, and ICameraSystemV451.

§ GetToolTipText()

virtual LPCWSTR GetToolTipText ( ) const
privatepure virtual

Implemented in ICameraSystemV450, and ICameraSystemV451.

§ GetTopAngle()

virtual float GetTopAngle ( )
privatepure virtual

Gets the Top Side Angle of the camera view

Implements ICameraSystemV430.

Implemented in ICameraSystemV450, and ICameraSystemV451.

§ GetViewMatrix()

virtual void GetViewMatrix ( float  output4x4[4][4]) const
privatepure virtual

Get View Matrix for this Camera/Window

Parameters
[out]output4x44x4 vidw matrix

Implements ICameraSystemV430.

Implemented in ICameraSystemV450, and ICameraSystemV451.

§ GetVirtualCockpitProjectionMatrix()

virtual void GetVirtualCockpitProjectionMatrix ( float  output4x4[4][4]) const
privatepure virtual

Get the standard projection matrix which is used by the Camera/Window for rendering the virtual cockpit. The VC projection has a different near and far clip to reduce z-fighting in the cockpit.

Parameters
[out]output4x44x4 vidw matrix

Implements ICameraSystemV430.

Implemented in ICameraSystemV450, and ICameraSystemV451.

§ GetVirtualCockpitTransparentValue()

virtual unsigned int GetVirtualCockpitTransparentValue ( ) const
privatepure virtual

Get transparency level

Returns
value between [0-100] to indicate the transparency level. 100 is fully transparent

Implements ICameraSystemV430.

Implemented in ICameraSystemV450, and ICameraSystemV451.

§ GetWorldCoord()

virtual void GetWorldCoord ( const ScreenCoord screenCoord,
LLADegreesMeters lla 
) const
privatepure virtual

Get the world lla coordinates of a point given a ScreenCoord

Parameters
[in]screenCoordScreenCoord point to query
[out]llaLLA output

Implements ICameraSystemV430.

Implemented in ICameraSystemV450, and ICameraSystemV451.

§ GetWorldTransform()

virtual void GetWorldTransform ( ObjectWorldTransform transform,
CAMERA_TRANFORM_REFERENCE  referece 
) const
privatepure virtual

Implements ICameraSystemV430.

Implemented in ICameraSystemV450, and ICameraSystemV451.

§ GetZoom()

virtual void GetZoom ( float &  fZoom) const
privatepure virtual

Get the Zoom

Parameters
[out]fZoomzoom value

Implements ICameraSystemV430.

Implemented in ICameraSystemV450, and ICameraSystemV451.

§ IsGlobalRotate()

virtual bool IsGlobalRotate ( ) const
privatepure virtual

Gets if the camera is rotating relative to the world or vehicle.

Returns
Whether or not the camera is globally rotating

Implements ICameraSystemV430.

Implemented in ICameraSystemV450, and ICameraSystemV451.

§ IsHMDView()

virtual bool IsHMDView ( ) const
privatepure virtual

Implements ICameraSystemV430.

Implemented in ICameraSystemV450, and ICameraSystemV451.

§ IsTopDown()

virtual bool IsTopDown ( void  ) const
privatepure virtual

Check if camera is Top Down view

Returns
true if window's active camera is a Top Down view

Implements ICameraSystemV430.

Implemented in ICameraSystemV450, and ICameraSystemV451.

§ IsVirtualCockpit()

virtual bool IsVirtualCockpit ( void  ) const
privatepure virtual

Check if camera is a virtual cockpit

Returns
true if window's active camera is a virtual cockpit view

Implements ICameraSystemV430.

Implemented in ICameraSystemV450, and ICameraSystemV451.

§ PanToView()

virtual void PanToView ( const WCHAR *  name)
privatepure virtual

Pan the camera to a saved location

Parameters
nameof saved custom camera to pan to

Implements ICameraSystemV430.

Implemented in ICameraSystemV450, and ICameraSystemV451.

§ RemovePostProcess()

virtual void RemovePostProcess ( const WCHAR *  name)
privatepure virtual

Remove a post process effect to the window

Parameters
nameName of post process to remove

Implements ICameraSystemV430.

Implemented in ICameraSystemV450, and ICameraSystemV451.

§ Reset()

virtual void Reset ( )
privatepure virtual

Reset camera settings to those defined in camera definition

Implements ICameraSystemV430.

Implemented in ICameraSystemV450, and ICameraSystemV451.

§ ResetPostProcess()

virtual void ResetPostProcess ( )
privatepure virtual

Reset all post process effects to those defined in camera definition

Implements ICameraSystemV430.

Implemented in ICameraSystemV450, and ICameraSystemV451.

§ SetAmbientBoostAndLightAmplificationLevel()

virtual void SetAmbientBoostAndLightAmplificationLevel ( const float  ambientBoost,
const float  lightAmplificationLevel 
)
privatepure virtual

Set the a scalar to amplify all light, and or a boost to the base ambient level. defaults are 1.0 and 0.0

Parameters
ambientBoostboost to base ambient level
lightAmplificationLevelscalar multiplied into all light sources

Implements ICameraSystemV430.

Implemented in ICameraSystemV450, and ICameraSystemV451.

§ SetChaseAltitude()

virtual void SetChaseAltitude ( float  fAltitude)
privatepure virtual

Sets the chase altitude of a camera

Parameters
fAltitudeChase altitude in meters

Implements ICameraSystemV430.

Implemented in ICameraSystemV450, and ICameraSystemV451.

§ SetChaseDistance()

virtual void SetChaseDistance ( float  fDistance)
privatepure virtual

Sets the chase distance of a camera

Parameters
fDistanceChase distance in meters

Implements ICameraSystemV430.

Implemented in ICameraSystemV450, and ICameraSystemV451.

§ SetExcludeVcPanelsSensor()

virtual void SetExcludeVcPanelsSensor ( bool  exclude)
privatepure virtual

Excludes VC panels from being sensorized

Parameters
excludeboolean value to set exclusion state

Implements ICameraSystemV430.

Implemented in ICameraSystemV450, and ICameraSystemV451.

§ SetExcludeVcPostProcess()

virtual void SetExcludeVcPostProcess ( bool  exclude)
privatepure virtual

Excludes entire VC from being post processed (if post process has PreVC enabled)

Parameters
excludeboolean value to set exclusion state

Implements ICameraSystemV430.

Implemented in ICameraSystemV450, and ICameraSystemV451.

§ SetFarClip()

virtual void SetFarClip ( float  far)
privatepure virtual

Set the far clip.

Parameters
farFar clip distance in meters

Implements ICameraSystemV430.

Implemented in ICameraSystemV450, and ICameraSystemV451.

§ SetFov()

virtual void SetFov ( float  hFov,
float  vFov 
)
privatepure virtual

Set the field of view of the camera

Parameters
hFovHorizontal field of view
vFovVertical field of view

Implements ICameraSystemV430.

Implemented in ICameraSystemV450, and ICameraSystemV451.

§ SetFrustumOffsetPBH()

virtual void SetFrustumOffsetPBH ( float  fOffsetP,
float  fOffsetB,
float  fOffsetH 
)
privatepure virtual

Set the offset PBH rotation relative to frustum group parent rotation

Parameters
fOffsetPOffset frustum Pitch relative to parent of group
fOffsetBOffset frustum Bank relative to parent of group
fOffsetHOffset frustum Heading relative to parent of group

Implements ICameraSystemV430.

Implemented in ICameraSystemV450, and ICameraSystemV451.

§ SetFrustumOffsetXYZ()

virtual void SetFrustumOffsetXYZ ( float  fOffsetX,
float  fOffsetY,
float  fOffsetZ 
)
privatepure virtual

Set the offset from the camera group origin for this camera

Parameters
fOffsetXOffset frustum from group origin in x direction relative to origin
fOffsetYOffset frustum from group origin in y direction relative to origin
fOffsetZOffset frustum from group origin in z direction relative to origin

Implements ICameraSystemV430.

Implemented in ICameraSystemV450, and ICameraSystemV451.

§ SetGlobalPBH()

virtual void SetGlobalPBH ( float  fPitchDeg,
float  fBankDeg,
float  fHeadingDeg 
)
privatepure virtual

Sets the global rotation value of the camera

Parameters
fPitchDegThe pitch
fBankDegThe bank
fHeadingDegThe heading

Implements ICameraSystemV430.

Implemented in ICameraSystemV450, and ICameraSystemV451.

§ SetGlobalRotate()

virtual void SetGlobalRotate ( bool  bGlobalRotate)
privatepure virtual

Sets whether the camera will rotate independent of attached object

Parameters
bGlobalRotateWhether or not the camera will rotate independent of attached object

Implements ICameraSystemV430.

Implemented in ICameraSystemV450, and ICameraSystemV451.

§ SetHmdMode()

virtual void SetHmdMode ( HMD_MODE  eMode)
privatepure virtual

Set the HMD mode for this camera

Parameters
eModethe HDM mode to assign to this camera

Implements ICameraSystemV430.

Implemented in ICameraSystemV450, and ICameraSystemV451.

§ SetLLA()

virtual void SetLLA ( double  dLat,
double  dLon,
double  dAlt 
)
privatepure virtual

Set the location of the camera. Currently only applies to cameras with a Fixed Origin type.

Parameters
dLatLatitude in degrees
dLonLongitude in degrees
dAltAltitude in meters

Implements ICameraSystemV430.

Implemented in ICameraSystemV450, and ICameraSystemV451.

§ SetNearClip()

virtual void SetNearClip ( float  near)
privatepure virtual

Set the near clip.

Parameters
nearNear clip distance in meters

Implements ICameraSystemV430.

Implemented in ICameraSystemV450, and ICameraSystemV451.

§ SetOffsetXYZ()

virtual void SetOffsetXYZ ( float  fDeltaX,
float  fDeltaY,
float  fDeltaZ 
)
privatepure virtual

Set the xyz offset of the camera.

Parameters
fDeltaXX offset in meters
fDeltaYY offset in meters
fDeltaZZ offset in meters

Implements ICameraSystemV430.

Implemented in ICameraSystemV450, and ICameraSystemV451.

§ SetPBH()

virtual void SetPBH ( float  fPitchDeg,
float  fBankDeg,
float  fHeadingDeg 
)
privatepure virtual

Set the pbh of the camera.

Parameters
fPitchDegPitch in degrees
fPitchDegBank, in degrees
fPitchDegHeading in degrees

Implements ICameraSystemV430.

Implemented in ICameraSystemV450, and ICameraSystemV451.

§ SetRelative6DOF()

virtual void SetRelative6DOF ( float  fDeltaX,
float  fDeltaY,
float  fDeltaZ,
float  fPitchDeg,
float  fBankDeg,
float  fHeadingDeg 
)
privatepure virtual

Set the camera position and orientation relative to its origin in 3D space

Parameters
fDeltaX,fDeltaY,fDeltaZ3D position relative to origin
fPitchDeg,fBankDeg,fHeadingDegRelative orientation pitch bank and heading

Implements ICameraSystemV430.

Implemented in ICameraSystemV450, and ICameraSystemV451.

§ SetSceneryLODOriginLLA()

virtual void SetSceneryLODOriginLLA ( double  lat,
double  lon,
double  alt 
)
privatepure virtual

Set the LLA of where the center of the scenery LOD radius for this camera will go. This determines where models and builds load and display.

Parameters
latLatitude of LOD ring center in degrees
lonLongitude of LOD ring center in degrees
altAltitude of LOD ring center in meters

Implements ICameraSystemV430.

Implemented in ICameraSystemV450, and ICameraSystemV451.

§ SetSensorMode()

virtual void SetSensorMode ( unsigned int  mode)
privatepure virtual

Sets the sensor mode of a camera

Parameters
modeSensor mode (0: None, 1: IR White Hot, 2: IR Black Hot, 3: GData

Implements ICameraSystemV430.

Implemented in ICameraSystemV450, and ICameraSystemV451.

§ SetSideAngles()

virtual void SetSideAngles ( float  fLeft,
float  fRight,
float  fTop,
float  fBottom 
)
privatepure virtual

Set Side Angles for a potentially off-axis projection. Positive direction is Right and Down.

Parameters
fLeftAngle in radians from view direction to the left edge of camera's view
fRightAngle in radians from view direction to the right edge of camera's view
fTopAngle in radians from view direction to the top edge of camera's view
fBottomAngle in radians from view direction to bottom left edge of camera's view

Implements ICameraSystemV430.

Implemented in ICameraSystemV450, and ICameraSystemV451.

§ SetSmoothRelative6DOF()

virtual void SetSmoothRelative6DOF ( float  fDeltaX,
float  fDeltaY,
float  fDeltaZ,
float  fPitchDeg,
float  fBankDeg,
float  fHeadingDeg,
float  smoothPanTime = 0 
)
privatepure virtual

Change the relative position and orientation of camera using a smooth transition

Parameters
fDeltaX,fDeltaY,fDeltaZ3D position relative to origin
fPitchDeg,fBankDeg,fHeadingDegRelative orientation pitch bank and heading
smoothPanTimeTime-frame for the camera to pan to the new position

Implements ICameraSystemV430.

Implemented in ICameraSystemV450, and ICameraSystemV451.

§ SetTargetContainerId()

virtual void SetTargetContainerId ( UINT  containerId)
privatepure virtual

Set the target container ID for the camera to track.

Parameters
containerIdThe ID of the container to track

Implements ICameraSystemV430.

Implemented in ICameraSystemV450, and ICameraSystemV451.

§ SetTargetFrameRate()

virtual void SetTargetFrameRate ( const float  targetFrameRate)
privatepure virtual

Set the target frame rate, a rate of 0 is unlimited

Parameters
targetFrameRatetarget frame rate in seconds

Implements ICameraSystemV430.

Implemented in ICameraSystemV450, and ICameraSystemV451.

§ SetTargetLatLonAltDegrees()

virtual void SetTargetLatLonAltDegrees ( double  lat,
double  lon,
double  alt 
)
privatepure virtual

Set the target location for the camera to track.

Parameters
latTarget latitude in degrees
lonTarget longitude in degrees
altTarget altitude in feet

Implements ICameraSystemV430.

Implemented in ICameraSystemV450, and ICameraSystemV451.

§ SetTerrainLODOriginLLA()

virtual void SetTerrainLODOriginLLA ( double  lat,
double  lon,
double  alt 
)
privatepure virtual

Set the LLA of where the center of the terrain LOD radius for this camera will go.

Parameters
latLatitude of LOD ring center in degrees
lonLongitude of LOD ring center in degrees
altAltitude of LOD ring center in meters

Implements ICameraSystemV430.

Implemented in ICameraSystemV450, and ICameraSystemV451.

§ SetVirtualCockpitTransparentValue()

virtual void SetVirtualCockpitTransparentValue ( unsigned int  level)
privatepure virtual

Sets a cockpit transparency level

Parameters
levelvalue between [0-100] to indicate the transparent level. 100 is Fully transparent.

Implements ICameraSystemV430.

Implemented in ICameraSystemV450, and ICameraSystemV451.

§ SetZoom()

virtual void SetZoom ( float  zoom)
privatepure virtual

Set the Zoom

Parameters
zoom

Implements ICameraSystemV430.

Implemented in ICameraSystemV450, and ICameraSystemV451.

§ SetZoomGoal()

virtual void SetZoomGoal ( float  zoomGoal)
privatepure virtual

Set the Zoom goal for the camera

Parameters
zoomGoalZoom goal to set

Implements ICameraSystemV430.

Implemented in ICameraSystemV450, and ICameraSystemV451.

§ TargetCameraLookAt()

virtual void TargetCameraLookAt ( )
privatepure virtual

Automatically sets the camera to target ground at center of view

Implements ICameraSystemV430.

Implemented in ICameraSystemV450, and ICameraSystemV451.

§ ZoomIn()

virtual void ZoomIn ( void  )
privatepure virtual

Zoom in one zoom level increment

Implements ICameraSystemV430.

Implemented in ICameraSystemV450, and ICameraSystemV451.

§ ZoomOut()

virtual void ZoomOut ( void  )
privatepure virtual

Zoom out one zoom level increment

Implements ICameraSystemV430.

Implemented in ICameraSystemV450, and ICameraSystemV451.

§ P3D::P3D::ICameraSystemV450

class P3D::P3D::ICameraSystemV450

Inherits ICameraSystemV440.

Inherited by ICameraSystemV451.

Private Member Functions

virtual void GetCameraDefinition (WCHAR *cameraDefinition) override
 
virtual void SetRelative6DOF (float fDeltaX, float fDeltaY, float fDeltaZ, float fPitchDeg, float fBankDeg, float fHeadingDeg) override
 
virtual void SetSmoothRelative6DOF (float fDeltaX, float fDeltaY, float fDeltaZ, float fPitchDeg, float fBankDeg, float fHeadingDeg, float smoothPanTime=0) override
 
virtual void SetFov (float hFov, float vFov) override
 
virtual void SetZoomGoal (float zoomGoal) override
 
virtual void SetZoom (float zoom) override
 
virtual void PanToView (const WCHAR *name) override
 
virtual void AddPostProcess (const WCHAR *name) override
 
virtual void RemovePostProcess (const WCHAR *name) override
 
virtual void ResetPostProcess () override
 
virtual void ClearPostProcess () override
 
virtual void Reset () override
 
virtual void ZoomIn (void) override
 
virtual void ZoomOut (void) override
 
virtual void SetVirtualCockpitTransparentValue (unsigned int level) override
 
virtual void SetChaseDistance (float fDistance) override
 
virtual void SetChaseAltitude (float fAltitude) override
 
virtual void SetSensorMode (unsigned int mode) override
 
virtual void SetExcludeVcPostProcess (bool exclude) override
 
virtual void SetExcludeVcPanelsSensor (bool exclude) override
 
virtual void SetFarClip (float far) override
 
virtual void SetNearClip (float near) override
 
virtual void SetTerrainLODOriginLLA (double lat, double lon, double alt) override
 
virtual void SetSceneryLODOriginLLA (double lat, double lon, double alt) override
 
virtual void SetAmbientBoostAndLightAmplificationLevel (const float ambientBoost, const float lightAmplificationLevel) override
 
virtual void SetTargetFrameRate (const float targetFrameRate) override
 
virtual int AddPickRequest (int x, int y) override
 
virtual void ActivatePositionTracking () override
 
virtual void DeactivatePositionTracking () override
 
virtual void ActivateEntityTracking () override
 
virtual void DeactivateEntityTracking () override
 
virtual void SetTargetLatLonAltDegrees (double lat, double lon, double alt) override
 
virtual void SetTargetContainerId (UINT containerId) override
 
virtual void SetPBH (float fPitchDeg, float fBankDeg, float fHeadingDeg) override
 
virtual void SetLLA (double dLat, double dLon, double dAlt) override
 
virtual void SetOffsetXYZ (float fDeltaX, float fDeltaY, float fDeltaZ) override
 
virtual void SetGlobalRotate (bool bGlobalRotate) override
 
virtual void SetGlobalPBH (float fPitchDeg, float fBankDeg, float fHeadingDeg) override
 
virtual void TargetCameraLookAt () override
 
virtual void SetSideAngles (float fLeft, float fRight, float fTop, float fBottom) override
 
virtual float GetRightAngle () override
 
virtual float GetLeftAngle () override
 
virtual float GetBottomAngle () override
 
virtual float GetTopAngle () override
 
virtual void SetFrustumOffsetXYZ (float fOffsetX, float fOffsetY, float fOffsetZ) override
 
virtual void SetFrustumOffsetPBH (float fOffsetP, float fOffsetB, float fOffsetH) override
 
virtual void SetHmdMode (HMD_MODE eMode) override
 
virtual int GetActiveViewGroup () override
 
virtual void GetFov (float &hFov, float &vFov) const override
 
virtual void GetZoom (float &fZoom) const override
 
virtual void GetPBH (float &p, float &b, float &h) const override
 
virtual void GetBiasPBH (float &p, float &b, float &h) const override
 
virtual void GetLLA (double &lat, double &lon, double &alt) const override
 
virtual void GetCameraOffset (float &x, float &y, float &z) const override
 
virtual void GetViewMatrix (float output4x4[4][4]) const override
 
virtual void GetStandardProjectionMatrix (float output4x4[4][4]) const override
 
virtual void GetVirtualCockpitProjectionMatrix (float output4x4[4][4]) const override
 
virtual float GetNearClip () const override
 
virtual float GetFarClip () const override
 
virtual void GetPickResult (int ID, bool &wasHit, float &distanceToHit) const override
 
virtual void GetPickResult (int ID, PickResult &result) const override
 
virtual int GetAvatarMode () const override
 
virtual void GetLLARadians (double &lat, double &lon, double &alt) const override
 
virtual void GetPBHRadians (float &pitch, float &bank, float &heading) const override
 
virtual void GetTargetLatLonAltDegrees (double &lat, double &lon, double &alt) const override
 
virtual void GetTargetContainerId (UINT32 &containerId) const override
 
virtual void GetSensorMode (UINT32 &sensorMode) const override
 
virtual bool GetCameraLookAtLLA (double &lat, double &lon, double &alt) const override
 
virtual bool IsGlobalRotate () const override
 
virtual void GetGlobalPBH (float &p, float &b, float &h) const override
 
virtual void GetTargetLatString (WCHAR *targetLat) const override
 
virtual void GetTargetLonString (WCHAR *targetLon) const override
 
virtual void GetPickTextureLocation (int ID, WCHAR *windowName, bool &wasHit, float &u, float &v, float &distanceToHit) const override
 
virtual void GetScreenCoord (const double lla[3], const float pbh[3], const float xyzOffset[][3], float xyOutput[][3], const int count) const override
 
virtual void GetScreenCoord (const float xyzOffset[][3], float xyOutput[][3], const int count) const override
 
virtual void GetScreenCoord (const LLADegreesMeters &lla, ScreenCoord &screenCoord) const override
 
virtual void GetWorldCoord (const ScreenCoord &screenCoord, LLADegreesMeters &lla) const override
 
virtual unsigned int GetVirtualCockpitTransparentValue () const override
 
virtual float GetChaseDistance () const override
 
virtual float GetChaseAltitude () const override
 
virtual float GetTargetFrameRate () const override
 
virtual void GetPostProcesses (INameList &names) const override
 
virtual bool IsVirtualCockpit (void) const override
 
virtual bool IsTopDown (void) const override
 
virtual void GetRequestedZoom (float &zoom) const override
 
virtual bool IsHMDView () const override
 
virtual void GetWorldTransform (ObjectWorldTransform &transform, CAMERA_TRANFORM_REFERENCE referece) const override
 
virtual void GetSideAngles (float &fLeft, float &fRight, float &fTop, float &fBottom) const override
 
virtual bool GetTargetCrosshairs () const override
 
virtual bool GetRenderDesignators () const override
 
virtual LPCWSTR GetToolTipText () const override
 
virtual float GetGroundAlt () override
 
virtual void SetUseGlobalTerrainView (bool useGlobalTerrainView) override
 
virtual void SetSinglePassGroupID (unsigned int id, unsigned int drawOrder) override
 
virtual unsigned int GetSinglePassGroupID () const override
 

Member Function Documentation

§ ActivateEntityTracking()

virtual void ActivateEntityTracking ( )
privatepure virtual

Activate entity tracking enabling camera to look at a specified entity

Implements ICameraSystemV440.

Implemented in ICameraSystemV451.

§ ActivatePositionTracking()

virtual void ActivatePositionTracking ( )
privatepure virtual

Activate position tracking enabling camera to look at a specified LLA

Implements ICameraSystemV440.

Implemented in ICameraSystemV451.

§ AddPickRequest()

virtual int AddPickRequest ( int  x,
int  y 
)
privatepure virtual

Request a Pick test at a given screen coordinate. An ID is returned which can later be used to request the results of the test.

Parameters
xx screen coordinate
yy screen coordinate
Returns
ID later used to request the pick result

Implements ICameraSystemV440.

Implemented in ICameraSystemV451.

§ AddPostProcess()

virtual void AddPostProcess ( const WCHAR *  name)
privatepure virtual

Add a post process effect to the window

Parameters
nameName of post process to add

Implements ICameraSystemV440.

Implemented in ICameraSystemV451.

§ ClearPostProcess()

virtual void ClearPostProcess ( )
privatepure virtual

Clear all post process effects from the camera

Implements ICameraSystemV440.

Implemented in ICameraSystemV451.

§ DeactivateEntityTracking()

virtual void DeactivateEntityTracking ( )
privatepure virtual

Deactivate entity tracking

Implements ICameraSystemV440.

Implemented in ICameraSystemV451.

§ DeactivatePositionTracking()

virtual void DeactivatePositionTracking ( )
privatepure virtual

Deactivate position tracking

Implements ICameraSystemV440.

Implemented in ICameraSystemV451.

§ GetActiveViewGroup()

virtual int GetActiveViewGroup ( )
privatepure virtual

Get active View Group

Implements ICameraSystemV440.

Implemented in ICameraSystemV451.

§ GetAvatarMode()

virtual int GetAvatarMode ( ) const
privatepure virtual

Get the AvatarMode for the current window.

Returns
The AvatarMode of the current window. (0 = None, 1 = First, 2 = Third)

Implements ICameraSystemV440.

Implemented in ICameraSystemV451.

§ GetBiasPBH()

virtual void GetBiasPBH ( float &  p,
float &  b,
float &  h 
) const
privatepure virtual

Get the offset of the pbh relative to the origin

Parameters
[out]pPitch
[out]bBank
[out]hHeading

Implements ICameraSystemV440.

Implemented in ICameraSystemV451.

§ GetBottomAngle()

virtual float GetBottomAngle ( )
privatepure virtual

Gets the Bottom Side Angle of the camera view

Implements ICameraSystemV440.

Implemented in ICameraSystemV451.

§ GetCameraDefinition()

virtual void GetCameraDefinition ( WCHAR *  cameraDefinition)
privatepure virtual

Get the window's camera definition

Remarks
camera definitions are defined in Cameras.cfg or in aircraft.cfg

Implements ICameraSystemV440.

Implemented in ICameraSystemV451.

§ GetCameraLookAtLLA()

virtual bool GetCameraLookAtLLA ( double &  lat,
double &  lon,
double &  alt 
) const
privatepure virtual

Gets the LLA the camera is looking at

Parameters
[out]latThe target latitude
[out]lonThe target longitude
[out]altThe target altitude
Returns
If the LLA is valid

Implements ICameraSystemV440.

Implemented in ICameraSystemV451.

§ GetCameraOffset()

virtual void GetCameraOffset ( float &  x,
float &  y,
float &  z 
) const
privatepure virtual

Get the camera offset from the origin

Parameters
[out]x,y,zcamera's 3d offset from origin

Implements ICameraSystemV440.

Implemented in ICameraSystemV451.

§ GetChaseAltitude()

virtual float GetChaseAltitude ( ) const
privatepure virtual

Gets the chase altitude in meters

Returns
Chase altitude in meters

Implements ICameraSystemV440.

Implemented in ICameraSystemV451.

§ GetChaseDistance()

virtual float GetChaseDistance ( ) const
privatepure virtual

Gets the chase distance in meters

Returns
Chase distance in meters

Implements ICameraSystemV440.

Implemented in ICameraSystemV451.

§ GetFarClip()

virtual float GetFarClip ( ) const
privatepure virtual

Gets far clip distance in meters

Returns
far clip distance in meters

Implements ICameraSystemV440.

Implemented in ICameraSystemV451.

§ GetFov()

virtual void GetFov ( float &  hFov,
float &  vFov 
) const
privatepure virtual

Get the field of view of the camera

Parameters
[out]hFovHorizontal field of view
[out]vFovVertical field of view

Implements ICameraSystemV440.

Implemented in ICameraSystemV451.

§ GetGlobalPBH()

virtual void GetGlobalPBH ( float &  p,
float &  b,
float &  h 
) const
privatepure virtual

Gets the global rotation PBH of the camera

Parameters
[out]pThe pitch in degrees
[out]bThe bank in degrees
[out]hThe heading in degrees

Implements ICameraSystemV440.

Implemented in ICameraSystemV451.

§ GetGroundAlt()

virtual float GetGroundAlt ( )
privatepure virtual

Implemented in ICameraSystemV451.

§ GetLeftAngle()

virtual float GetLeftAngle ( )
privatepure virtual

Gets the Left Side Angle of the camera view

Implements ICameraSystemV440.

Implemented in ICameraSystemV451.

§ GetLLA()

virtual void GetLLA ( double &  lat,
double &  lon,
double &  alt 
) const
privatepure virtual

Get the offset of the latitude longitude and altitude of the camera

Parameters
[out]latLatitude
[out]lonLongitude
[out]altAltitude

Implements ICameraSystemV440.

Implemented in ICameraSystemV451.

§ GetLLARadians()

virtual void GetLLARadians ( double &  lat,
double &  lon,
double &  alt 
) const
privatepure virtual

Get the offset of the latitude longitude and altitude of the camera in radians

Parameters
[out]latLatitude
[out]lonLongitude
[out]altAltitude

Implements ICameraSystemV440.

Implemented in ICameraSystemV451.

§ GetNearClip()

virtual float GetNearClip ( ) const
privatepure virtual

Gets near clip distance in meters

Returns
near clip distance in meters

Implements ICameraSystemV440.

Implemented in ICameraSystemV451.

§ GetPBH()

virtual void GetPBH ( float &  p,
float &  b,
float &  h 
) const
privatepure virtual

Get the orientation of the camera (Pitch, Bank, and Heading)

Parameters
[out]pPitch
[out]bBank
[out]hHeading

Implements ICameraSystemV440.

Implemented in ICameraSystemV451.

§ GetPBHRadians()

virtual void GetPBHRadians ( float &  pitch,
float &  bank,
float &  heading 
) const
privatepure virtual

Get the orientation of the camera (Pitch, Bank, and Heading) in radians

Parameters
[out]pPitch
[out]bBank
[out]hHeading

Implements ICameraSystemV440.

Implemented in ICameraSystemV451.

§ GetPickResult() [1/2]

virtual void GetPickResult ( int  ID,
bool &  wasHit,
float &  distanceToHit 
) const
privatepure virtual

Get hit result. A pick request must first be requested using AddPickRequest. The ID passed in should be the ID that was returned from the AddPickRequest call. Passing in 0 will return the last result from the native mouse handling.

Parameters
IDID of the hit request.
[out]wasHittrue if hit test passed
[out]distancedistance to hit test intersection

Implements ICameraSystemV440.

Implemented in ICameraSystemV451.

§ GetPickResult() [2/2]

virtual void GetPickResult ( int  ID,
PickResult result 
) const
privatepure virtual

Get hit result. A pick request must first be requested using AddPickRequest. The ID passed in should be the ID that was returned from the AddPickRequest call. Passing in 0 will return the last result from the native mouse handling.

Parameters
IDID of the hit request.
[out]resultThe hit result

Implements ICameraSystemV440.

Implemented in ICameraSystemV451.

§ GetPickTextureLocation()

virtual void GetPickTextureLocation ( int  ID,
WCHAR *  windowName,
bool &  wasHit,
float &  u,
float &  v,
float &  distanceToHit 
) const
privatepure virtual

Get the texture coords that the pick hit on the texture in the specified window. A pick request must first be requested using AddPickRequest on a WindowPdk interface from within a window callback. The ID passed in should be the ID that was returned from the AddPickRequest call.

Parameters
IDID of the hit request.
windowNameName of window texture resides within.
[out]wasHittrue if hit test passed
[out]uu location in texture
[out]vv location in texture
[out]distanceToHitdistance to texture hit

Implements ICameraSystemV440.

Implemented in ICameraSystemV451.

§ GetPostProcesses()

virtual void GetPostProcesses ( INameList names) const
privatepure virtual

Gets list of the names of post processes assigned to this window

Parameters
[out]nameListarray of cstrings to hold the list of names (size should be 32)
[out]sizeof list returned (will not be larger than 32)

Implements ICameraSystemV440.

Implemented in ICameraSystemV451.

§ GetRenderDesignators()

virtual bool GetRenderDesignators ( ) const
privatepure virtual

Gets whether or not the camera has a designator

Implements ICameraSystemV440.

Implemented in ICameraSystemV451.

§ GetRequestedZoom()

virtual void GetRequestedZoom ( float &  zoom) const
privatepure virtual

Implements ICameraSystemV440.

Implemented in ICameraSystemV451.

§ GetRightAngle()

virtual float GetRightAngle ( )
privatepure virtual

Gets the Right Side Angle of the camera view

Implements ICameraSystemV440.

Implemented in ICameraSystemV451.

§ GetScreenCoord() [1/3]

virtual void GetScreenCoord ( const double  lla[3],
const float  pbh[3],
const float  xyzOffset[][3],
float  xyOutput[][3],
const int  count 
) const
privatepure virtual

Get the screen coord of a point LLA + xyz offset in world space (meters)

Parameters
[in]llaLat lon alt origin of local coordinate system
[in]pbhOrientation of local coordinate system
[in]xyzOffsetList of 3d offsets in local coordinates.
[out]xyOutputList of screenspace position of the requested points
[in]countNumber of points to request. Must be at least as big as input array sizes.

Implements ICameraSystemV440.

Implemented in ICameraSystemV451.

§ GetScreenCoord() [2/3]

virtual void GetScreenCoord ( const float  xyzOffset[][3],
float  xyOutput[][3],
const int  count 
) const
privatepure virtual

Get the screen space coordinates of a list of points relative to user sim object

Parameters
[in]xyzOffsetlist of 3d offsets in local coordinates.
[out]xyOutputlist of screenspace position of the requested points
[in]countNumber of points to request. Must be at least as big as input array sizes.

Implements ICameraSystemV440.

Implemented in ICameraSystemV451.

§ GetScreenCoord() [3/3]

virtual void GetScreenCoord ( const LLADegreesMeters lla,
ScreenCoord screenCoord 
) const
privatepure virtual

Get the screen space coordinates of a point at the given LLA

Parameters
[in]llaworld point to query
[out]screenCoordScreenCoord of output

Implements ICameraSystemV440.

Implemented in ICameraSystemV451.

§ GetSensorMode()

virtual void GetSensorMode ( UINT32 sensorMode) const
privatepure virtual

Get the sensor mode of the camera.

Parameters
[out]sensorModeThe sensor mode of the camera

Implements ICameraSystemV440.

Implemented in ICameraSystemV451.

§ GetSideAngles()

virtual void GetSideAngles ( float &  fLeft,
float &  fRight,
float &  fTop,
float &  fBottom 
) const
privatepure virtual

Gets the Left, Right, Top, and Bottom Side angles of the camera view in degrees

Implements ICameraSystemV440.

Implemented in ICameraSystemV451.

§ GetSinglePassGroupID()

virtual unsigned int GetSinglePassGroupID ( ) const
privatepure virtual

Gets the single pass groud id for the camera view

Returns
current single pass group ID, 0 means not assigned to a group

Implemented in ICameraSystemV451.

§ GetStandardProjectionMatrix()

virtual void GetStandardProjectionMatrix ( float  output4x4[4][4]) const
privatepure virtual

Get the standard projection matrix which is used by the Camera/Window for rendering everything but the virtual cockpit

Parameters
[out]output4x44x4 vidw matrix

Implements ICameraSystemV440.

Implemented in ICameraSystemV451.

§ GetTargetContainerId()

virtual void GetTargetContainerId ( UINT32 containerId) const
privatepure virtual

Get the target container ID for the camera to track.

Parameters
[out]containerIdThe ID of the container to track

Implements ICameraSystemV440.

Implemented in ICameraSystemV451.

§ GetTargetCrosshairs()

virtual bool GetTargetCrosshairs ( ) const
privatepure virtual

Gets whether or not the camera has crosshairs

Implements ICameraSystemV440.

Implemented in ICameraSystemV451.

§ GetTargetFrameRate()

virtual float GetTargetFrameRate ( ) const
privatepure virtual

Gets the target frame rate in seconds

Returns
Target frame rate in seconds

Implements ICameraSystemV440.

Implemented in ICameraSystemV451.

§ GetTargetLatLonAltDegrees()

virtual void GetTargetLatLonAltDegrees ( double &  lat,
double &  lon,
double &  alt 
) const
privatepure virtual

Get the target location for the camera to track.

Parameters
[out]latTarget latitude in degrees
[out]lonTarget longitude in degrees
[out]altTarget altitude in feet

Implements ICameraSystemV440.

Implemented in ICameraSystemV451.

§ GetTargetLatString()

virtual void GetTargetLatString ( WCHAR *  targetLat) const
privatepure virtual

Gets the target latitude in string format

Parameters
[out]targetLatLatitude

Implements ICameraSystemV440.

Implemented in ICameraSystemV451.

§ GetTargetLonString()

virtual void GetTargetLonString ( WCHAR *  targetLon) const
privatepure virtual

Gets the target longitude in string format

Parameters
[out]targetLonLongitude

Implements ICameraSystemV440.

Implemented in ICameraSystemV451.

§ GetToolTipText()

virtual LPCWSTR GetToolTipText ( ) const
privatepure virtual

Implements ICameraSystemV440.

Implemented in ICameraSystemV451.

§ GetTopAngle()

virtual float GetTopAngle ( )
privatepure virtual

Gets the Top Side Angle of the camera view

Implements ICameraSystemV440.

Implemented in ICameraSystemV451.

§ GetViewMatrix()

virtual void GetViewMatrix ( float  output4x4[4][4]) const
privatepure virtual

Get View Matrix for this Camera/Window

Parameters
[out]output4x44x4 vidw matrix

Implements ICameraSystemV440.

Implemented in ICameraSystemV451.

§ GetVirtualCockpitProjectionMatrix()

virtual void GetVirtualCockpitProjectionMatrix ( float  output4x4[4][4]) const
privatepure virtual

Get the standard projection matrix which is used by the Camera/Window for rendering the virtual cockpit. The VC projection has a different near and far clip to reduce z-fighting in the cockpit.

Parameters
[out]output4x44x4 vidw matrix

Implements ICameraSystemV440.

Implemented in ICameraSystemV451.

§ GetVirtualCockpitTransparentValue()

virtual unsigned int GetVirtualCockpitTransparentValue ( ) const
privatepure virtual

Get transparency level

Returns
value between [0-100] to indicate the transparency level. 100 is fully transparent

Implements ICameraSystemV440.

Implemented in ICameraSystemV451.

§ GetWorldCoord()

virtual void GetWorldCoord ( const ScreenCoord screenCoord,
LLADegreesMeters lla 
) const
privatepure virtual

Get the world lla coordinates of a point given a ScreenCoord

Parameters
[in]screenCoordScreenCoord point to query
[out]llaLLA output

Implements ICameraSystemV440.

Implemented in ICameraSystemV451.

§ GetWorldTransform()

virtual void GetWorldTransform ( ObjectWorldTransform transform,
CAMERA_TRANFORM_REFERENCE  referece 
) const
privatepure virtual

Implements ICameraSystemV440.

Implemented in ICameraSystemV451.

§ GetZoom()

virtual void GetZoom ( float &  fZoom) const
privatepure virtual

Get the Zoom

Parameters
[out]fZoomzoom value

Implements ICameraSystemV440.

Implemented in ICameraSystemV451.

§ IsGlobalRotate()

virtual bool IsGlobalRotate ( ) const
privatepure virtual

Gets if the camera is rotating relative to the world or vehicle.

Returns
Whether or not the camera is globally rotating

Implements ICameraSystemV440.

Implemented in ICameraSystemV451.

§ IsHMDView()

virtual bool IsHMDView ( ) const
privatepure virtual

Implements ICameraSystemV440.

Implemented in ICameraSystemV451.

§ IsTopDown()

virtual bool IsTopDown ( void  ) const
privatepure virtual

Check if camera is Top Down view

Returns
true if window's active camera is a Top Down view

Implements ICameraSystemV440.

Implemented in ICameraSystemV451.

§ IsVirtualCockpit()

virtual bool IsVirtualCockpit ( void  ) const
privatepure virtual

Check if camera is a virtual cockpit

Returns
true if window's active camera is a virtual cockpit view

Implements ICameraSystemV440.

Implemented in ICameraSystemV451.

§ PanToView()

virtual void PanToView ( const WCHAR *  name)
privatepure virtual

Pan the camera to a saved location

Parameters
nameof saved custom camera to pan to

Implements ICameraSystemV440.

Implemented in ICameraSystemV451.

§ RemovePostProcess()

virtual void RemovePostProcess ( const WCHAR *  name)
privatepure virtual

Remove a post process effect to the window

Parameters
nameName of post process to remove

Implements ICameraSystemV440.

Implemented in ICameraSystemV451.

§ Reset()

virtual void Reset ( )
privatepure virtual

Reset camera settings to those defined in camera definition

Implements ICameraSystemV440.

Implemented in ICameraSystemV451.

§ ResetPostProcess()

virtual void ResetPostProcess ( )
privatepure virtual

Reset all post process effects to those defined in camera definition

Implements ICameraSystemV440.

Implemented in ICameraSystemV451.

§ SetAmbientBoostAndLightAmplificationLevel()

virtual void SetAmbientBoostAndLightAmplificationLevel ( const float  ambientBoost,
const float  lightAmplificationLevel 
)
privatepure virtual

Set the a scalar to amplify all light, and or a boost to the base ambient level. defaults are 1.0 and 0.0

Parameters
ambientBoostboost to base ambient level
lightAmplificationLevelscalar multiplied into all light sources

Implements ICameraSystemV440.

Implemented in ICameraSystemV451.

§ SetChaseAltitude()

virtual void SetChaseAltitude ( float  fAltitude)
privatepure virtual

Sets the chase altitude of a camera

Parameters
fAltitudeChase altitude in meters

Implements ICameraSystemV440.

Implemented in ICameraSystemV451.

§ SetChaseDistance()

virtual void SetChaseDistance ( float  fDistance)
privatepure virtual

Sets the chase distance of a camera

Parameters
fDistanceChase distance in meters

Implements ICameraSystemV440.

Implemented in ICameraSystemV451.

§ SetExcludeVcPanelsSensor()

virtual void SetExcludeVcPanelsSensor ( bool  exclude)
privatepure virtual

Excludes VC panels from being sensorized

Parameters
excludeboolean value to set exclusion state

Implements ICameraSystemV440.

Implemented in ICameraSystemV451.

§ SetExcludeVcPostProcess()

virtual void SetExcludeVcPostProcess ( bool  exclude)
privatepure virtual

Excludes entire VC from being post processed (if post process has PreVC enabled)

Parameters
excludeboolean value to set exclusion state

Implements ICameraSystemV440.

Implemented in ICameraSystemV451.

§ SetFarClip()

virtual void SetFarClip ( float  far)
privatepure virtual

Set the far clip.

Parameters
farFar clip distance in meters

Implements ICameraSystemV440.

Implemented in ICameraSystemV451.

§ SetFov()

virtual void SetFov ( float  hFov,
float  vFov 
)
privatepure virtual

Set the field of view of the camera

Parameters
hFovHorizontal field of view
vFovVertical field of view

Implements ICameraSystemV440.

Implemented in ICameraSystemV451.

§ SetFrustumOffsetPBH()

virtual void SetFrustumOffsetPBH ( float  fOffsetP,
float  fOffsetB,
float  fOffsetH 
)
privatepure virtual

Set the offset PBH rotation relative to frustum group parent rotation

Parameters
fOffsetPOffset frustum Pitch relative to parent of group
fOffsetBOffset frustum Bank relative to parent of group
fOffsetHOffset frustum Heading relative to parent of group

Implements ICameraSystemV440.

Implemented in ICameraSystemV451.

§ SetFrustumOffsetXYZ()

virtual void SetFrustumOffsetXYZ ( float  fOffsetX,
float  fOffsetY,
float  fOffsetZ 
)
privatepure virtual

Set the offset from the camera group origin for this camera

Parameters
fOffsetXOffset frustum from group origin in x direction relative to origin
fOffsetYOffset frustum from group origin in y direction relative to origin
fOffsetZOffset frustum from group origin in z direction relative to origin

Implements ICameraSystemV440.

Implemented in ICameraSystemV451.

§ SetGlobalPBH()

virtual void SetGlobalPBH ( float  fPitchDeg,
float  fBankDeg,
float  fHeadingDeg 
)
privatepure virtual

Sets the global rotation value of the camera

Parameters
fPitchDegThe pitch
fBankDegThe bank
fHeadingDegThe heading

Implements ICameraSystemV440.

Implemented in ICameraSystemV451.

§ SetGlobalRotate()

virtual void SetGlobalRotate ( bool  bGlobalRotate)
privatepure virtual

Sets whether the camera will rotate independent of attached object

Parameters
bGlobalRotateWhether or not the camera will rotate independent of attached object

Implements ICameraSystemV440.

Implemented in ICameraSystemV451.

§ SetHmdMode()

virtual void SetHmdMode ( HMD_MODE  eMode)
privatepure virtual

Set the HMD mode for this camera

Parameters
eModethe HDM mode to assign to this camera

Implements ICameraSystemV440.

Implemented in ICameraSystemV451.

§ SetLLA()

virtual void SetLLA ( double  dLat,
double  dLon,
double  dAlt 
)
privatepure virtual

Set the location of the camera. Currently only applies to cameras with a Fixed Origin type.

Parameters
dLatLatitude in degrees
dLonLongitude in degrees
dAltAltitude in meters

Implements ICameraSystemV440.

Implemented in ICameraSystemV451.

§ SetNearClip()

virtual void SetNearClip ( float  near)
privatepure virtual

Set the near clip.

Parameters
nearNear clip distance in meters

Implements ICameraSystemV440.

Implemented in ICameraSystemV451.

§ SetOffsetXYZ()

virtual void SetOffsetXYZ ( float  fDeltaX,
float  fDeltaY,
float  fDeltaZ 
)
privatepure virtual

Set the xyz offset of the camera.

Parameters
fDeltaXX offset in meters
fDeltaYY offset in meters
fDeltaZZ offset in meters

Implements ICameraSystemV440.

Implemented in ICameraSystemV451.

§ SetPBH()

virtual void SetPBH ( float  fPitchDeg,
float  fBankDeg,
float  fHeadingDeg 
)
privatepure virtual

Set the pbh of the camera.

Parameters
fPitchDegPitch in degrees
fPitchDegBank, in degrees
fPitchDegHeading in degrees

Implements ICameraSystemV440.

Implemented in ICameraSystemV451.

§ SetRelative6DOF()

virtual void SetRelative6DOF ( float  fDeltaX,
float  fDeltaY,
float  fDeltaZ,
float  fPitchDeg,
float  fBankDeg,
float  fHeadingDeg 
)
privatepure virtual

Set the camera position and orientation relative to its origin in 3D space

Parameters
fDeltaX,fDeltaY,fDeltaZ3D position relative to origin
fPitchDeg,fBankDeg,fHeadingDegRelative orientation pitch bank and heading

Implements ICameraSystemV440.

Implemented in ICameraSystemV451.

§ SetSceneryLODOriginLLA()

virtual void SetSceneryLODOriginLLA ( double  lat,
double  lon,
double  alt 
)
privatepure virtual

Set the LLA of where the center of the scenery LOD radius for this camera will go. This determines where models and builds load and display.

Parameters
latLatitude of LOD ring center in degrees
lonLongitude of LOD ring center in degrees
altAltitude of LOD ring center in meters

Implements ICameraSystemV440.

Implemented in ICameraSystemV451.

§ SetSensorMode()

virtual void SetSensorMode ( unsigned int  mode)
privatepure virtual

Sets the sensor mode of a camera

Parameters
modeSensor mode (0: None, 1: IR White Hot, 2: IR Black Hot, 3: GData

Implements ICameraSystemV440.

Implemented in ICameraSystemV451.

§ SetSideAngles()

virtual void SetSideAngles ( float  fLeft,
float  fRight,
float  fTop,
float  fBottom 
)
privatepure virtual

Set Side Angles for a potentially off-axis projection. Positive direction is Right and Down.

Parameters
fLeftAngle in radians from view direction to the left edge of camera's view
fRightAngle in radians from view direction to the right edge of camera's view
fTopAngle in radians from view direction to the top edge of camera's view
fBottomAngle in radians from view direction to bottom left edge of camera's view

Implements ICameraSystemV440.

Implemented in ICameraSystemV451.

§ SetSinglePassGroupID()

virtual void SetSinglePassGroupID ( unsigned int  id,
unsigned int  drawOrder 
)
privatepure virtual

Sets if the camera view should be inside a single pass group

Parameters
[in]idfor this group, set to 0 to remove single pass grouping
[in]drawOrderfor this camera view, should be set left to right
Note
Current limit of 2 camera views. DrawOrder example: Left eye view would be 0, right eye view would be 1
Needs to be configured on any type of camera add, remove or view change for the window

Implemented in ICameraSystemV451.

§ SetSmoothRelative6DOF()

virtual void SetSmoothRelative6DOF ( float  fDeltaX,
float  fDeltaY,
float  fDeltaZ,
float  fPitchDeg,
float  fBankDeg,
float  fHeadingDeg,
float  smoothPanTime = 0 
)
privatepure virtual

Change the relative position and orientation of camera using a smooth transition

Parameters
fDeltaX,fDeltaY,fDeltaZ3D position relative to origin
fPitchDeg,fBankDeg,fHeadingDegRelative orientation pitch bank and heading
smoothPanTimeTime-frame for the camera to pan to the new position

Implements ICameraSystemV440.

Implemented in ICameraSystemV451.

§ SetTargetContainerId()

virtual void SetTargetContainerId ( UINT  containerId)
privatepure virtual

Set the target container ID for the camera to track.

Parameters
containerIdThe ID of the container to track

Implements ICameraSystemV440.

Implemented in ICameraSystemV451.

§ SetTargetFrameRate()

virtual void SetTargetFrameRate ( const float  targetFrameRate)
privatepure virtual

Set the target frame rate, a rate of 0 is unlimited

Parameters
targetFrameRatetarget frame rate in seconds

Implements ICameraSystemV440.

Implemented in ICameraSystemV451.

§ SetTargetLatLonAltDegrees()

virtual void SetTargetLatLonAltDegrees ( double  lat,
double  lon,
double  alt 
)
privatepure virtual

Set the target location for the camera to track.

Parameters
latTarget latitude in degrees
lonTarget longitude in degrees
altTarget altitude in feet

Implements ICameraSystemV440.

Implemented in ICameraSystemV451.

§ SetTerrainLODOriginLLA()

virtual void SetTerrainLODOriginLLA ( double  lat,
double  lon,
double  alt 
)
privatepure virtual

Set the LLA of where the center of the terrain LOD radius for this camera will go.

Parameters
latLatitude of LOD ring center in degrees
lonLongitude of LOD ring center in degrees
altAltitude of LOD ring center in meters

Implements ICameraSystemV440.

Implemented in ICameraSystemV451.

§ SetUseGlobalTerrainView()

virtual void SetUseGlobalTerrainView ( bool  useGlobalTerrainView)
privatepure virtual

Sets whether the camera needs it's own terrain view or can use global

Parameters
[in]useGlobalTerrainViewwhether or not the camera will use global terrain view

Implemented in ICameraSystemV451.

§ SetVirtualCockpitTransparentValue()

virtual void SetVirtualCockpitTransparentValue ( unsigned int  level)
privatepure virtual

Sets a cockpit transparency level

Parameters
levelvalue between [0-100] to indicate the transparent level. 100 is Fully transparent.

Implements ICameraSystemV440.

Implemented in ICameraSystemV451.

§ SetZoom()

virtual void SetZoom ( float  zoom)
privatepure virtual

Set the Zoom

Parameters
zoom

Implements ICameraSystemV440.

Implemented in ICameraSystemV451.

§ SetZoomGoal()

virtual void SetZoomGoal ( float  zoomGoal)
privatepure virtual

Set the Zoom goal for the camera

Parameters
zoomGoalZoom goal to set

Implements ICameraSystemV440.

Implemented in ICameraSystemV451.

§ TargetCameraLookAt()

virtual void TargetCameraLookAt ( )
privatepure virtual

Automatically sets the camera to target ground at center of view

Implements ICameraSystemV440.

Implemented in ICameraSystemV451.

§ ZoomIn()

virtual void ZoomIn ( void  )
privatepure virtual

Zoom in one zoom level increment

Implements ICameraSystemV440.

Implemented in ICameraSystemV451.

§ ZoomOut()

virtual void ZoomOut ( void  )
privatepure virtual

Zoom out one zoom level increment

Implements ICameraSystemV440.

Implemented in ICameraSystemV451.

§ P3D::P3D::IWindowV400

class P3D::P3D::IWindowV400

Window writer interface for setting window states

Inherits IUnknown.

Inherited by IWindowV410.

Private Member Functions

virtual void SetDocking (BOOL isDocked) override
 
virtual void SetPosition (UINT32 x, UINT32 y) override
 
virtual void SetSize (UINT32 w, UINT32 h) override
 
virtual void SetPanelOnly (bool bPanelOnly) override
 
virtual void GetSize (UINT32 &width, UINT32 &height) override
 
virtual void SetResolution (UINT32 width, UINT32 height) override
 
virtual void SendWindowMessage (UINT uMsg, long wParam, long lParam) override
 
virtual void AddPlugin (IWindowPluginV400 *pPlugin) override
 
virtual void RemovePlugin (IWindowPluginV400 *pPlugin) override
 
virtual bool IsDocked () const override
 
virtual void GetPosition (UINT32 &topLeftX, UINT32 &topLeftY) const override
 
virtual void GetSize (UINT32 &width, UINT32 &height) const override
 
virtual const LPCWSTR GetWindowName (void) const override
 
virtual bool IsActiveWindow (void) const override
 
virtual bool IsMainAppWindow () const override
 
virtual bool GetClientToScreen (long &x, long &y) const override
 
virtual ICameraSystemV400GetCameraSystem () override
 
virtual ICameraSystemV400GetPreviousCameraSystem () override
 
virtual void SetCameraDefinition (const WCHAR *name) override
 

Member Function Documentation

§ AddPlugin()

virtual void AddPlugin ( IWindowPluginV400 *  pPlugin)
privatepure virtual

Add a plugin to the window.

Parameters
pPluginthe plguin to add

Implemented in IWindowV430, IWindowV420, IWindowV410, and IWindowV440.

§ GetCameraSystem()

virtual ICameraSystemV400* GetCameraSystem ( )
privatepure virtual

Get camera system attached to this window.

Returns
Camera System attached to this window or nullptr if none exists.

Implemented in IWindowV430, IWindowV420, IWindowV410, and IWindowV440.

§ GetClientToScreen()

virtual bool GetClientToScreen ( long &  x,
long &  y 
) const
privatepure virtual

Get the screen coords for the given client coords.

Parameters

Implemented in IWindowV430, IWindowV420, IWindowV410, and IWindowV440.

§ GetPosition()

virtual void GetPosition ( UINT32 topLeftX,
UINT32 topLeftY 
) const
privatepure virtual

Get the position of the window in screen space

Parameters
[out]topLeftX,topLeftYposition of the window in screen space

Implemented in IWindowV430, IWindowV420, IWindowV410, and IWindowV440.

§ GetPreviousCameraSystem()

virtual ICameraSystemV400* GetPreviousCameraSystem ( )
privatepure virtual

Get previous camera system attached to this window. This can be useful when handling a view changes triggered by the user or by calls to SetCameraDefinition.

Returns
Camera System previously attached to this window or nullptr if none exists.

Implemented in IWindowV430, IWindowV420, IWindowV410, and IWindowV440.

§ GetSize() [1/2]

virtual void GetSize ( UINT32 width,
UINT32 height 
)
privatepure virtual

Get the size of a window in pixels

Parameters
width,heightWindow size in pxiels

Implemented in IWindowV430, IWindowV420, IWindowV410, and IWindowV440.

§ GetSize() [2/2]

virtual void GetSize ( UINT32 width,
UINT32 height 
) const
privatepure virtual

Get the size of the window in screen space

Parameters
[out]width,heightsize of the window in screen space

Implemented in IWindowV430, IWindowV420, IWindowV410, and IWindowV440.

§ GetWindowName()

virtual const LPCWSTR GetWindowName ( void  ) const
privatepure virtual

Get the window name

Returns
window name

Implemented in IWindowV430, IWindowV420, IWindowV410, and IWindowV440.

§ IsActiveWindow()

virtual bool IsActiveWindow ( void  ) const
privatepure virtual

Check if window's active camera is in focus

Returns
true if window's active camera is in focus

Implemented in IWindowV430, IWindowV420, IWindowV410, and IWindowV440.

§ IsDocked()

virtual bool IsDocked ( ) const
privatepure virtual

Get window's docking state

Returns
bool value of true if window is docked and false if not

Implemented in IWindowV430, IWindowV420, IWindowV410, and IWindowV440.

§ IsMainAppWindow()

virtual bool IsMainAppWindow ( ) const
privatepure virtual

Is this window the main Application Window?

Returns
true if this window is the main window

Implemented in IWindowV430, IWindowV420, IWindowV410, and IWindowV440.

§ RemovePlugin()

virtual void RemovePlugin ( IWindowPluginV400 *  pPlugin)
privatepure virtual

Remove a plugin from the window.

Parameters
pPluginthe plguin to remove

Implemented in IWindowV430, IWindowV420, IWindowV410, and IWindowV440.

§ SendWindowMessage()

virtual void SendWindowMessage ( UINT  uMsg,
long  wParam,
long  lParam 
)
privatepure virtual

Send a message to the window.

Parameters
uMsgThe message for the window
wParamw param of the message
lParaml param of the message

Implemented in IWindowV430, IWindowV420, IWindowV410, and IWindowV440.

§ SetCameraDefinition()

virtual void SetCameraDefinition ( const WCHAR *  name)
privatepure virtual

Set the window to use the specified camera. This will get or create an instance of a camera using the specified camera defintion name.

Parameters
nameName of camera definition
Remarks
camera definitions are defined in Cameras.cfg or in aircraft.cfg. This will cause the camera to change, so calling GetCameraSystem() window will return a different value. The current camera instance will still be maintained until the window that created it has been closed, and it can be accessed by calling GetPreviousCameraSystem after the changed.

Implemented in IWindowV430, IWindowV420, IWindowV410, and IWindowV440.

§ SetDocking()

virtual void SetDocking ( BOOL  isDocked)
privatepure virtual

Set Docked/Undocked state

Parameters
isDockedSet TRUE to dock or FALSE to undock a window

Implemented in IWindowV430, IWindowV420, IWindowV410, and IWindowV440.

§ SetPanelOnly()

virtual void SetPanelOnly ( bool  bPanelOnly)
privatepure virtual

Set this window to panel only mode

Parameters
bPanelOnlypanel-only mode on or off

Implemented in IWindowV430, IWindowV420, IWindowV410, and IWindowV440.

§ SetPosition()

virtual void SetPosition ( UINT32  x,
UINT32  y 
)
privatepure virtual

Set the position of the window in screen space

Parameters
x,yScreenspace position of window

Implemented in IWindowV430, IWindowV420, IWindowV410, and IWindowV440.

§ SetResolution()

virtual void SetResolution ( UINT32  width,
UINT32  height 
)
privatepure virtual

Set the size render target resolution in pixels. This can be used to super-sample or subsample on-screen views by setting the resolution different than the window size.

Parameters
width,heightWindow size in pixels

Implemented in IWindowV430, IWindowV420, IWindowV410, and IWindowV440.

§ SetSize()

virtual void SetSize ( UINT32  w,
UINT32  h 
)
privatepure virtual

Set the size of a window in pixels

Parameters
width,heightWindow size in pxiels

Implemented in IWindowV430, IWindowV420, IWindowV410, and IWindowV440.

§ P3D::P3D::IWindowV410

class P3D::P3D::IWindowV410

Window writer interface for setting window states

Inherits IWindowV400.

Inherited by IWindowV420.

Private Member Functions

virtual void SetDocking (BOOL isDocked) override
 
virtual void SetPosition (UINT32 x, UINT32 y) override
 
virtual void SetSize (UINT32 w, UINT32 h) override
 
virtual void SetPanelOnly (bool bPanelOnly) override
 
virtual void GetSize (UINT32 &width, UINT32 &height) override
 
virtual void SetResolution (UINT32 width, UINT32 height) override
 
virtual void SendWindowMessage (UINT uMsg, long wParam, long lParam) override
 
virtual void AddPlugin (IWindowPluginV400 *pPlugin) override
 
virtual void RemovePlugin (IWindowPluginV400 *pPlugin) override
 
virtual bool IsDocked () const override
 
virtual bool IsPanelWindow (UINT32 *pPanelIdent=nullptr) const override
 
virtual void GetPosition (UINT32 &topLeftX, UINT32 &topLeftY) const override
 
virtual void GetSize (UINT32 &width, UINT32 &height) const override
 
virtual const LPCWSTR GetWindowName (void) const override
 
virtual bool IsActiveWindow (void) const override
 
virtual bool IsMainAppWindow () const override
 
virtual bool GetClientToScreen (long &x, long &y) const override
 
virtual ICameraSystemV400GetCameraSystem () override
 
virtual ICameraSystemV400GetPreviousCameraSystem () override
 
virtual void SetCameraDefinition (const WCHAR *name) override
 
virtual bool InitWorldSpaceDraw (const ObjectWorldTransform &location, float width, float height) override
 
virtual void DeinitWorldSpaceDraw () override
 
virtual void SetWorldSpacePosition (const ObjectWorldTransform &location) override
 
virtual void SetWorldSpaceSize (UINT32 width, UINT32 height) override
 
virtual void SetWorldSpaceFacingFlags (bool pitch, bool bank, bool heading) override
 
virtual void SetWorldSpaceDepthMode (bool readDepth, bool writeDepth) override
 

Member Function Documentation

§ AddPlugin()

virtual void AddPlugin ( IWindowPluginV400 *  pPlugin)
privatepure virtual

Add a plugin to the window.

Parameters
pPluginthe plguin to add

Implements IWindowV400.

Implemented in IWindowV430, IWindowV420, and IWindowV440.

§ DeinitWorldSpaceDraw()

virtual void DeinitWorldSpaceDraw ( )
privatepure virtual

Shutdown the world space draw object, this will cause the window to no longer draw in world space.

Implemented in IWindowV430, IWindowV420, and IWindowV440.

§ GetCameraSystem()

virtual ICameraSystemV400* GetCameraSystem ( )
privatepure virtual

Get camera system attached to this window.

Returns
Camera System attached to this window or nullptr if none exists.

Implements IWindowV400.

Implemented in IWindowV430, IWindowV420, and IWindowV440.

§ GetClientToScreen()

virtual bool GetClientToScreen ( long &  x,
long &  y 
) const
privatepure virtual

Get the screen coords for the given client coords.

Parameters

Implements IWindowV400.

Implemented in IWindowV430, IWindowV420, and IWindowV440.

§ GetPosition()

virtual void GetPosition ( UINT32 topLeftX,
UINT32 topLeftY 
) const
privatepure virtual

Get the position of the window in screen space

Parameters
[out]topLeftX,topLeftYposition of the window in screen space

Implements IWindowV400.

Implemented in IWindowV430, IWindowV420, and IWindowV440.

§ GetPreviousCameraSystem()

virtual ICameraSystemV400* GetPreviousCameraSystem ( )
privatepure virtual

Get previous camera system attached to this window. This can be useful when handling a view changes triggered by the user or by calls to SetCameraDefinition.

Returns
Camera System previously attached to this window or nullptr if none exists.

Implements IWindowV400.

Implemented in IWindowV430, IWindowV420, and IWindowV440.

§ GetSize() [1/2]

virtual void GetSize ( UINT32 width,
UINT32 height 
)
privatepure virtual

Get the size of a window in pixels

Parameters
width,heightWindow size in pxiels

Implements IWindowV400.

Implemented in IWindowV430, IWindowV420, and IWindowV440.

§ GetSize() [2/2]

virtual void GetSize ( UINT32 width,
UINT32 height 
) const
privatepure virtual

Get the size of the window in screen space

Parameters
[out]width,heightsize of the window in screen space

Implements IWindowV400.

Implemented in IWindowV430, IWindowV420, and IWindowV440.

§ GetWindowName()

virtual const LPCWSTR GetWindowName ( void  ) const
privatepure virtual

Get the window name

Returns
window name

Implements IWindowV400.

Implemented in IWindowV430, IWindowV420, and IWindowV440.

§ InitWorldSpaceDraw()

virtual bool InitWorldSpaceDraw ( const ObjectWorldTransform location,
float  width,
float  height 
)
privatepure virtual

Setup a world space draw object for the window, the object is a double sided plane. This is useful for displaying windows in world space locations.

Parameters
locationWorld location to place the draw object.
width,heightWorld plane size in meters.
Returns
If the creation of the world space draw object was successful.

Implemented in IWindowV430, IWindowV420, and IWindowV440.

§ IsActiveWindow()

virtual bool IsActiveWindow ( void  ) const
privatepure virtual

Check if window's active camera is in focus

Returns
true if window's active camera is in focus

Implements IWindowV400.

Implemented in IWindowV430, IWindowV420, and IWindowV440.

§ IsDocked()

virtual bool IsDocked ( ) const
privatepure virtual

Get window's docking state

Returns
bool value of true if window is docked and false if not

Implements IWindowV400.

Implemented in IWindowV430, IWindowV420, and IWindowV440.

§ IsMainAppWindow()

virtual bool IsMainAppWindow ( ) const
privatepure virtual

Is this window the main Application Window?

Returns
true if this window is the main window

Implements IWindowV400.

Implemented in IWindowV430, IWindowV420, and IWindowV440.

§ IsPanelWindow()

virtual bool IsPanelWindow ( UINT32 pPanelIdent = nullptr) const
privatepure virtual

Get window's panel state

Parameters
[out]pPanelIdentoptional panel id if this window is a panel
Returns
bool value of true if window is a panel and false if not

Implemented in IWindowV430, IWindowV420, and IWindowV440.

§ RemovePlugin()

virtual void RemovePlugin ( IWindowPluginV400 *  pPlugin)
privatepure virtual

Remove a plugin from the window.

Parameters
pPluginthe plguin to remove

Implements IWindowV400.

Implemented in IWindowV430, IWindowV420, and IWindowV440.

§ SendWindowMessage()

virtual void SendWindowMessage ( UINT  uMsg,
long  wParam,
long  lParam 
)
privatepure virtual

Send a message to the window.

Parameters
uMsgThe message for the window
wParamw param of the message
lParaml param of the message

Implements IWindowV400.

Implemented in IWindowV430, IWindowV420, and IWindowV440.

§ SetCameraDefinition()

virtual void SetCameraDefinition ( const WCHAR *  name)
private