Click or drag to resize
DigitalRuneProjection Class
Defines a projection transformation (including its bounding shape).
Inheritance Hierarchy

Namespace: DigitalRune.Graphics
Assembly: DigitalRune.Graphics (in DigitalRune.Graphics.dll) Version: 1.2.0.0 (1.2.1.14562)
Syntax
public abstract class Projection

The Projection type exposes the following members.

Constructors
  NameDescription
Protected methodProjection
Initializes a new instance of the Projection class
Top
Methods
  NameDescription
Public methodClone
Creates a new Projection that is a clone (deep copy) of the current instance.
Protected methodCloneCore
Makes the instance a clone (deep copy) of the specified Projection.
Protected methodComputeProjection
Computes the projection matrix.
Protected methodCreateInstanceCore
When implemented in a derived class, creates a new instance of the Projection derived class.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodInvalidate
Invalidates the projection matrix.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodSet
Sets the projection from the given projection matrix.
Public methodToMatrix44F
Converts a projection to a 4x4 transformation matrix.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodToXna
Converts a projection to a 4x4 transformation matrix (XNA Framework). (Only available in the XNA-compatible build.)
Top
Operators
  NameDescription
Public operatorStatic member(Projection to Matrix44F)
Converts the projection to a 4x4 transformation matrix.
Public operatorStatic member(Projection to Matrix)
Converts the projection to a 4x4 transformation matrix (XNA Framework). (Only available in the XNA-compatible build.)
Top
Properties
  NameDescription
Public propertyAspectRatio
Gets the aspect ratio (width / height) of the view.
Public propertyBottom
Gets or sets the minimum y-value of the view volume at the near view-plane.
Public propertyDepth
Gets the depth of the view volume (Far - Near).
Public propertyFar
Gets or sets the distance to the far view plane.
Public propertyFieldOfViewX
Gets the horizontal field of view in radians.
Public propertyFieldOfViewY
Gets the vertical field of view in radians.
Public propertyHeight
Gets the height of the view volume at the near view plane.
Public propertyInverse
Gets the inverse of the projection matrix.
Public propertyLeft
Gets or sets the minimum x-value of the view volume at the near view-plane.
Public propertyNear
Gets or sets the distance to the near view plane.
Public propertyRight
Gets or sets the maximum x-value of the view volume at the near view-plane.
Public propertyTop
Gets or sets the maximum y-value of the view volume at the near view-plane.
Public propertyViewVolume
Gets (or sets) the shape of the view volume (viewing frustum).
Public propertyWidth
Gets the width of the view volume at the near view plane.
Top
Remarks

The property ViewVolume defines the bounding shape of the projection which can be used for frustum culling. The shape is updated automatically when the properties of the projection change.

Notes to Inheritors:
Derived classes must initialize ViewVolume and provide the implementation of the Set(Matrix44F) method. The base class caches a Matrix44F which describes the projection. Therefore, derived classes must call Invalidate if the projection is changed. The Projection base class will call ComputeProjection of derived classes to get and cache the new projection matrix when needed.

See Also