Class Environment.Scene.Camera
Inheritance
System.Object
Environment.Scene.Camera
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: Experior.Core.dll
Syntax
Properties
CurrentView
Declaration
public static Environment.Scene.Camera.View CurrentView { get; }
Property Value
FarClip
Declaration
public static double FarClip { get; }
Property Value
Type |
Description |
System.Double |
|
FieldOfView
Declaration
public static double FieldOfView { get; }
Property Value
Type |
Description |
System.Double |
|
Height
Declaration
public static int Height { get; }
Property Value
Type |
Description |
System.Int32 |
|
NearClip
Declaration
public static double NearClip { get; }
Property Value
Type |
Description |
System.Double |
|
Orthogonal
Declaration
public static bool Orthogonal { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Pitch
Declaration
public static double Pitch { get; set; }
Property Value
Type |
Description |
System.Double |
|
Position
Declaration
public static Vector3 Position { get; }
Property Value
Type |
Description |
System.Numerics.Vector3 |
|
Target
Declaration
public static Vector3 Target { get; set; }
Property Value
Type |
Description |
System.Numerics.Vector3 |
|
TargetDistance
Declaration
public static double TargetDistance { get; set; }
Property Value
Type |
Description |
System.Double |
|
Width
Declaration
public static int Width { get; }
Property Value
Type |
Description |
System.Int32 |
|
Yaw
Declaration
public static double Yaw { get; set; }
Property Value
Type |
Description |
System.Double |
|
Methods
CreateMouseRay(Double, Double)
Declaration
public static IRay CreateMouseRay(double mouseX, double mouseY)
Parameters
Type |
Name |
Description |
System.Double |
mouseX |
|
System.Double |
mouseY |
|
Returns
CreateMouseRay(Point)
Declaration
public static IRay CreateMouseRay(Point point)
Parameters
Type |
Name |
Description |
System.Windows.Point |
point |
|
Returns
Follow(IMeshObject)
Declaration
public static void Follow(IMeshObject meshObject)
Parameters
Init()
Declaration
public static void Init()
MoveTo(IView, UInt32)
Declaration
public static void MoveTo(IView view, uint time = 0U)
Parameters
Type |
Name |
Description |
IView |
view |
|
System.UInt32 |
time |
|
MoveTo(Action, Vector3, Double, Double, Double, UInt32)
Declaration
public static void MoveTo(Action action, Vector3 target, double targetDistance, double heading, double attitude, uint time = 0U)
Parameters
Type |
Name |
Description |
System.Action |
action |
|
System.Numerics.Vector3 |
target |
|
System.Double |
targetDistance |
|
System.Double |
heading |
|
System.Double |
attitude |
|
System.UInt32 |
time |
|
MoveTo(Action, Vector3, Double, UInt32)
Declaration
public static void MoveTo(Action action, Vector3 target, double targetDistance, uint time = 0U)
Parameters
Type |
Name |
Description |
System.Action |
action |
|
System.Numerics.Vector3 |
target |
|
System.Double |
targetDistance |
|
System.UInt32 |
time |
|
MoveTo(Action, Vector3, UInt32)
Move camera to a new target. All other camera values are not changed.
Declaration
public static void MoveTo(Action action, Vector3 target, uint time = 0U)
Parameters
Type |
Name |
Description |
System.Action |
action |
Action to invoke when movement is done.
|
System.Numerics.Vector3 |
target |
Target position.
|
System.UInt32 |
time |
Time in ms to move to new view.
|
MoveTo(Int32, UInt32)
Declaration
public static void MoveTo(int viewNumber, uint time = 0U)
Parameters
Type |
Name |
Description |
System.Int32 |
viewNumber |
|
System.UInt32 |
time |
|
MoveTo(Vector3, Double, Double, Double, UInt32)
Declaration
public static void MoveTo(Vector3 target, double targetDistance, double heading, double attitude, uint time = 0U)
Parameters
Type |
Name |
Description |
System.Numerics.Vector3 |
target |
|
System.Double |
targetDistance |
|
System.Double |
heading |
|
System.Double |
attitude |
|
System.UInt32 |
time |
|
MoveTo(Vector3, Double, UInt32)
Declaration
public static void MoveTo(Vector3 target, double targetDistance, uint time = 0U)
Parameters
Type |
Name |
Description |
System.Numerics.Vector3 |
target |
|
System.Double |
targetDistance |
|
System.UInt32 |
time |
|
MoveTo(Vector3, UInt32)
Declaration
public static void MoveTo(Vector3 target, uint time = 0U)
Parameters
Type |
Name |
Description |
System.Numerics.Vector3 |
target |
|
System.UInt32 |
time |
|
OverView(List<Assembly>)
Declaration
public static Environment.Scene.Camera.View OverView(List<Assembly> assemblies)
Parameters
Type |
Name |
Description |
System.Collections.Generic.List<Assembly> |
assemblies |
|
Returns
OverView(List<Assembly>, Int32, Int32, Double, Boolean)
Declaration
public static Environment.Scene.Camera.View OverView(List<Assembly> assemblies, int cameraWidth, int cameraHeight, double cameraFieldOfView, bool fixedHeading = false)
Parameters
Type |
Name |
Description |
System.Collections.Generic.List<Assembly> |
assemblies |
|
System.Int32 |
cameraWidth |
|
System.Int32 |
cameraHeight |
|
System.Double |
cameraFieldOfView |
|
System.Boolean |
fixedHeading |
|
Returns
SaveView(Int32)
Declaration
public static void SaveView(int key)
Parameters
Type |
Name |
Description |
System.Int32 |
key |
|
SceneCoordinates(IRay)
Declaration
public static Vector3 SceneCoordinates(IRay ray)
Parameters
Type |
Name |
Description |
IRay |
ray |
|
Returns
Type |
Description |
System.Numerics.Vector3 |
|
SceneCoordinates(Vector3, Vector3)
Calculates the intersection with the 3D plane given a start position, direction and plane height = 0.
Declaration
public static Vector3 SceneCoordinates(Vector3 rayStart, Vector3 rayDirection)
Parameters
Type |
Name |
Description |
System.Numerics.Vector3 |
rayStart |
Ray start (typically camera position).
|
System.Numerics.Vector3 |
rayDirection |
Ray direction (typically camera direction).
|
Returns
Type |
Description |
System.Numerics.Vector3 |
Plane intersection position (Vector3)
|
SceneCoordinates(Vector3, Vector3, Single)
Declaration
public static Vector3 SceneCoordinates(Vector3 rayOrigin, Vector3 rayDirection, float planeYOffset)
Parameters
Type |
Name |
Description |
System.Numerics.Vector3 |
rayOrigin |
|
System.Numerics.Vector3 |
rayDirection |
|
System.Single |
planeYOffset |
|
Returns
Type |
Description |
System.Numerics.Vector3 |
|
ScreenCoordinates(ICamera, Vector3)
Declaration
public static Vector2 ScreenCoordinates(ICamera camera, Vector3 position)
Parameters
Type |
Name |
Description |
ICamera |
camera |
|
System.Numerics.Vector3 |
position |
|
Returns
Type |
Description |
System.Numerics.Vector2 |
|
ScreenCoordinates(Vector3)
Declaration
public static Vector2 ScreenCoordinates(Vector3 position)
Parameters
Type |
Name |
Description |
System.Numerics.Vector3 |
position |
|
Returns
Type |
Description |
System.Numerics.Vector2 |
|