|
IFitIntoViewCamera Interface |
IFitIntoViewCamera interface defines methods that are used to fit camera into view.
Namespace: Ab4d.SharpEngine.CamerasAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 2.0.8956+4c7684e186ca1be74e7a284fbe739d9a1b843d3c
Syntax public interface IFitIntoViewCamera
The IFitIntoViewCamera type exposes the following members.
Methods | Name | Description |
---|
| FitIntoView(BoundingBox, Boolean, Single, Boolean) |
FitIntoView adjusts the camera's Distance (for PerspectiveCamera) or ViewWidth (for OrthographicCamera) and TargetPosition (if adjustTargetPosition is true)
so that the specified BoundingBox will be visible from one edge of the SceneView to another edge.
|
| FitIntoView(FitIntoViewType, Boolean, Single, Boolean) |
FitIntoView adjusts the camera's Distance (for PerspectiveCamera) or ViewWidth (for OrthographicCamera) and TargetPosition (if adjustTargetPosition is true)
so that all the objects on the scene will be visible from one edge of the SceneView to another edge.
This is the same as calling FitIntoView and passing Scene.RootNode as parameter.
|
| FitIntoView(Vector3, Boolean, Single, Boolean) |
FitIntoView adjusts the camera's Distance (for PerspectiveCamera) or ViewWidth (for OrthographicCamera) and TargetPosition (if adjustTargetPosition is true)
so that all the specified positions will be visible from one edge of the viewport to another edge.
|
| FitIntoView(SceneNode, FitIntoViewType, Boolean, Single, Boolean) |
FitIntoView adjusts the camera's Distance (for PerspectiveCamera) or ViewWidth (for OrthographicCamera) and TargetPosition (if adjustTargetPosition is true)
so that the specified sceneNode (or all child SceneNodes if sceneNode is GroupNode) will be visible from one edge of the SceneView to another edge.
|
| GetFitIntoViewDistanceOrViewWidth(SceneNode, FitIntoViewType, Boolean, Vector3) |
GetFitIntoViewDistanceOrViewWidth returns a Distance (for PerspectiveCamera) or a ViewWidth (for OrthographicCamera) and sets the newTargetPosition
that will adjust the camera so that all the specified sceneNodes will be visible from one edge of the viewport to another edge.
|
| GetFitIntoViewDistanceOrViewWidth(Vector3, FitIntoViewType, Boolean, Vector3) |
GetFitIntoViewDistanceOrViewWidth returns a Distance (for PerspectiveCamera) or a ViewWidth (for OrthographicCamera) and sets the newTargetPosition
that will adjust the camera so that all the specified positions will be visible from one edge of the viewport to another edge.
|
TopSee Also