Click or drag to resize
Ab4d.SharpEngine logo

IAutomaticNearFarPlaneCamera Interface

IAutomaticNearFarPlaneCamera interface is used by the camera that can automatically adjust the near and far plane distance.

Namespace: Ab4d.SharpEngine.Cameras
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 2.0.8956+4c7684e186ca1be74e7a284fbe739d9a1b843d3c
Syntax
C#
public interface IAutomaticNearFarPlaneCamera

The IAutomaticNearFarPlaneCamera type exposes the following members.

Properties
 NameDescription
Public propertyAutomaticPlaneDistanceCalculationAdjustmentFactor Gets or sets a float that is multiplied by the automatically calculated near and far plane distance. This makes the near plane slightly closer and far plane slightly farther away. This prevents clipping the objects that are located very close to near and far planes.
Public propertyIsAutomaticFarPlaneDistanceCalculation Gets or sets a value that specifies the distance from the camera of the camera's far clip plane. By default NearPlaneDistance is automatically calculated from the 3D scene bounding box and camera position. This can be disabled by setting IsAutomaticFarPlaneDistanceCalculation to false.
Public propertyIsAutomaticNearPlaneDistanceCalculation Gets or sets a value that specifies the distance from the camera of the camera's near clip plane. By default NearPlaneDistance is automatically calculated from the 3D scene bounding box and camera position. This can be disabled by setting IsAutomaticNearPlaneDistanceCalculation to false.
Public propertyIsCameraChangedRaisedOnAutomaticPlaneDistanceCalculation Gets or sets a Boolean that specify if CameraChanged event is raised when the NearPlaneDistance and FarPlaneDistance are automatically calculated and then the SetPlaneDistances(Single, Single, Boolean) method is called. Default value is false.
Public propertyMaxFarPlaneDistance When MaxFarPlaneDistance is set to any value that is not float.NaN and IsAutomaticFarPlaneDistanceCalculation is true, the calculated far plane distance is never bigger then the specified value. This value must be bigger then MinNearPlaneDistance or its value is not used. Default value is NaN.
Public propertyMinNearPlaneDistance When MinNearPlaneDistance is set to any value that is not float.NaN and IsAutomaticNearPlaneDistanceCalculation is true, the calculated near plane distance is never smaller then the specified value. Default value is NaN.
Top
Methods
 NameDescription
Public methodSetPlaneDistances SetPlaneDistances method is used to set NearPlaneDistance and FarPlaneDistance after the values are automatically calculated. Bases on the value of IsCameraChangedRaisedOnAutomaticPlaneDistanceCalculation the CameraChanged event is raised.
Top
See Also