- Platform Toolset
- GDI+
- fsMapViewCreate
- fsMapViewDelete
- fsMapViewSet2DViewFollowMode
- fsMapViewSet2DViewLatLong
- fsMapViewSet2DViewRadiusInMeters
- fsMapViewSet3D
- fsMapViewSet3DCustomViewOrientationInRadians
- fsMapViewSet3DViewOrientation
- fsMapViewSetAltitudeColorList
- fsMapViewSetAltitudeRangeInFeet
- fsMapViewSetAltitudeReference
- fsMapViewSetBackgroundColor
- fsMapViewSetMapIsolinesVisibility
- fsMapViewSetSize
- fsMapViewSetViewMode
- fsMapViewSetVisibility
- fsMapViewSetWeatherRadarConeAngleInRadians
- fsMapViewSetWeatherRadarMode
- fsMapViewSetWeatherRadarRainColors
- fsMapViewSetWeatherRadarVisibility
- Environment Variables
- Aerodynamics
- Ailerons
- Aircraft Editor Menu - Resync
- Aircraft Editor Menu - Save And Resync
- aircraft.xml
- Ambient Occlusion
- Animations Overview
- Balance
- Building
- Button Animation
- CFD
- Contact Points
- Creating The Project
- Decals
- Dirt
- Elevator
- Emissive Elements
- Engines
- Environment Variables
- Exporting
- File Setup
- flt
- Geometry
- Geometry Optimisation
- Ice
- Landing Gear
- Livery
- LODs - Aircraft LODs
- Material Contrast
- Material Mapping
- model.cfg
- Modelling Process
- Naming Conventions
- Occluder
- Package Building
- Propellers
- Registration Numbers
- Rivets And Bumps
- Rudder
- Silhouette
- Size On Screen
- Surface Detail
- Translucent Elements
- Turbines
- VR
- VR Helpers
- Weight
- Windows
- Windshield
- WingFlex
- Wingflex Flaps
- Wingflex Slats
- Wingflex Spoilers
fsMapViewSet3DCustomViewOrientationInRadians
This function can be used to set a custom view orientation for the MapView camera when in 3D mode.
Syntax
bool fsMapViewSet3DCustomViewOrientationInRadians(
FsContext ctx,
FsTextureId id,
double dPitch,
double dBank,
double dHeading
)
Members
Parameters | Description |
---|---|
ctx |
A value of type FsContext provided as an argument of the gauge callback. |
id |
The MapView render ID as returned by the function fsMapViewCreate . |
dPitch |
The pitch value, in radians, clamped between 0 and 2 |
dBank |
The bank value, in radians, clamped between 0 and 2 |
dHeading |
The headingvalue, in radians, clamped between 0 and 2 |
Return Values
Returns false if:
- no texture matches the given MapView ID
- the
ctx
is invalid
Otherwise it will return true.
Remarks
This function is only valid when fsMapViewSet3D
is set to true (ie: 3D is enabled), and when the view orientation has been set to use a custom camera using fsMapViewSet3DViewOrientation
.
See Also