MDLCamera Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
A point of view that looks into a 3D scence, and that can simulate certain aspects of a physical camera.
[Foundation.Register("MDLCamera", true)]
public class MDLCamera : ModelIO.MDLObject
[<Foundation.Register("MDLCamera", true)>]
type MDLCamera = class
inherit MDLObject
- Inheritance
- Derived
- Attributes
Constructors
| Name | Description |
|---|---|
| MDLCamera() |
Creates a new MDLCamera with default values. |
| MDLCamera(NativeHandle) |
A constructor used when creating managed representations of unmanaged objects. Called by the runtime. |
| MDLCamera(NSObjectFlag) |
Constructor to call on derived classes to skip initialization and merely allocate the object. |
Properties
| Name | Description |
|---|---|
| AccessibilityAttributedUserInputLabels | (Inherited from NSObject) |
| AccessibilityRespondsToUserInteraction | (Inherited from NSObject) |
| AccessibilityTextualContext | (Inherited from NSObject) |
| AccessibilityUserInputLabels | (Inherited from NSObject) |
| ApertureBladeCount |
Gets or sets the number of blades to use when simulating bokeh in out-of-focus elements in the scene. |
| BarrelDistortion |
Gets or sets the coefficient of the quadratic term in the formula that is used to calculate radial distortion. |
| Children |
Gets or sets the list of the objects of type MDLObject that belong to this MDLObject. (Inherited from MDLObject) |
| ChromaticAberration |
Gets or sets the degree to which different colors are focussed differently by the camera. 0.0 is no chromatic aberration. 1.0 is the maximum amount. |
| Class | (Inherited from NSObject) |
| ClassHandle |
The Objective-C class handle for this class. |
| Components |
Gets the array of components that belong to this Model I/O object. (Inherited from MDLObject) |
| DebugDescription | (Inherited from NSObject) |
| Description | (Inherited from NSObject) |
| ExposedBindings | (Inherited from NSObject) |
| Exposure |
Gets or sets a vector whose components are multiplied by the color components of the rendered image prior to simulation of the physical lens. |
| ExposureCompression |
Gets or sets a vector whose X and Y components clamp the low and high values of color components when calculating exposure levels for a simulated physical camera. |
| FarVisibilityDistance |
Gets or sets the back clipping plane. |
| FieldOfView |
Gets or sets the field of view, and updates the focal length of the camera accordingly. |
| FisheyeDistortion |
Gets or sets the coefficient of the fourth-power term in the formula that is used to calculate radial distortion. |
| Flash |
Gets or sets a vector whose signed components are added to the rendered image in order to simulate the effect of a flash. |
| FocalLength |
Gets or sets the focal length and updates the field of view accordingly. |
| FocusDistance |
Gets or sets the focal distance, in meters. |
| FStop |
Gets or sets the focal ratio of the camera. |
| Handle |
Handle (pointer) to the unmanaged object representation. (Inherited from NSObject) |
| Hidden |
Gets or sets a Boolean value that controls whether the Model IO object is hidden. (Inherited from MDLObject) |
| Instance | (Inherited from MDLObject) |
| IsDirectBinding |
Gets or sets a value indicating whether this instance uses direct Objective-C binding. (Inherited from NSObject) |
| IsProxy | (Inherited from NSObject) |
| MaximumCircleOfConfusion |
Gets or sets the largest size of bokeh from point sources of light. |
| Name |
Gets or sets the descriptive name of the named object. (Inherited from MDLObject) |
| NearVisibilityDistance |
Gets or sets the near clipping plane. |
| OpticalVignetting |
Gets or sets a value that controls the degree to which image brightness is reduced as the edge of the simulated physical aperture is approached. |
| Parent |
Gets or sets this MDLObject object's parent, or |
| Path | (Inherited from MDLObject) |
| Projection |
Gets or sets a value that controls whether the projection is perspective or orthographic. |
| ProjectionMatrix |
Gets or sets the transformation that determines what portion of a scene that the camera can view. |
| RetainCount | (Inherited from NSObject) |
| Self | (Inherited from NSObject) |
| SensorAspect |
Gets or sets the aspect ratio of a simulated camera sensor. |
| SensorEnlargement |
Gets or sets the scale factor by which to expand the central region of the region. The image is cropped to the original extent of the sensor. |
| SensorShift |
Gets or sets the directed distance, in mm, by which to offset the sensor from the center line of the simulated optical system. |
| SensorVerticalAperture |
Gets or sets the height, in mm, of the sensor. |
| ShutterOpenInterval |
Gets or sets the time, in seconds, for which the simulated shutter is open per frame. |
| Superclass | (Inherited from NSObject) |
| SuperHandle |
Handle used to represent the methods in the base class for this NSObject. (Inherited from NSObject) |
| Transform |
Gets or sets the possibly time-dependent transform that establishes this MDLObject object's coordinate system in relation to its parent's coordinate system. (Inherited from MDLObject) |
| WorldToMetersConversionScale |
Gets or sets the scale factor that transforms world coordinates into meters. |
| Zone | (Inherited from NSObject) |
Methods
| Name | Description |
|---|---|
| AddChild(MDLObject) |
Adds |
| AddObserver(NSObject, NSString, NSKeyValueObservingOptions, IntPtr) | (Inherited from NSObject) |
| AddObserver(NSObject, String, NSKeyValueObservingOptions, IntPtr) | (Inherited from NSObject) |
| AddObserver(NSString, NSKeyValueObservingOptions, Action<NSObservedChange>) |
Registers an object for being observed externally using an arbitrary method. (Inherited from NSObject) |
| AddObserver(String, NSKeyValueObservingOptions, Action<NSObservedChange>) |
Registers an object for being observed externally using an arbitrary method. (Inherited from NSObject) |
| AwakeFromNib() | (Inherited from NSObject) |
| BeginInvokeOnMainThread(Action) |
Invokes the specified action asynchronously on the main UI thread. (Inherited from NSObject) |
| BeginInvokeOnMainThread(Selector, NSObject) |
Invokes asynchronously the specified code on the main UI thread. (Inherited from NSObject) |
| Bind(NSString, NSObject, String, NSBindingOptions) | (Inherited from NSObject) |
| Bind(NSString, NSObject, String, NSDictionary) | (Inherited from NSObject) |
| BokehKernelWithSize(NVector2i) |
Creates and returns a texture, of the specified size, that is used to simulate bokeh effects by using the value of the ApertureBladeCount property. |
| CommitEditing() | (Inherited from NSObject) |
| CommitEditing(NSObject, Selector, IntPtr) | (Inherited from NSObject) |
| ConformsToProtocol(NativeHandle) | (Inherited from NSObject) |
| Copy() | (Inherited from NSObject) |
| DangerousAutorelease() |
Calls the 'autorelease' selector on this object. (Inherited from NSObject) |
| DangerousRelease() |
Calls the 'release' selector on this object. (Inherited from NSObject) |
| DangerousRetain() |
Calls the 'retain' selector on this object. (Inherited from NSObject) |
| DidChange(NSKeyValueChange, NSIndexSet, NSString) | (Inherited from NSObject) |
| DidChange(NSString, NSKeyValueSetMutationKind, NSSet) | (Inherited from NSObject) |
| DidChangeValue(String) | (Inherited from NSObject) |
| Dispose() |
Releases the resources used by the NSObject object. (Inherited from NSObject) |
| Dispose(Boolean) | (Inherited from MDLObject) |
| DoesNotRecognizeSelector(Selector) | (Inherited from NSObject) |
| EnumerateChildObjects(Class, MDLObject, MDLObjectHandler, Boolean) |
Runs the provided |
| Equals(NSObject) |
Determines whether the specified NSObject is equal to the current NSObject. (Inherited from NSObject) |
| Equals(Object) |
Determines whether the specified object is equal to the current NSObject. (Inherited from NSObject) |
| FrameBoundingBox(MDLAxisAlignedBoundingBox, Boolean) |
Moves the camera to view |
| FromSceneCamera(SCNCamera) |
Creates a new MDLCamera from the specified Scene Kit camera. |
| GetBindingInfo(NSString) | (Inherited from NSObject) |
| GetBindingOptionDescriptions(NSString) | (Inherited from NSObject) |
| GetBindingValueClass(NSString) | (Inherited from NSObject) |
| GetBoundingBox(Double) |
Returns the bounding box of the Model IO object at the specified time. (Inherited from MDLObject) |
| GetComponent(Protocol) |
Gets this object's component that conforms to |
| GetComponent(Type) |
Gets this object's component that matches the supplied |
| GetDictionaryOfValuesFromKeys(NSString[]) | (Inherited from NSObject) |
| GetHashCode() |
Generates a hash code for the current instance. (Inherited from NSObject) |
| GetMethodForSelector(Selector) | (Inherited from NSObject) |
| GetNativeHash() | (Inherited from NSObject) |
| GetObject(String) |
Returns the Model IO object at the specified path. (Inherited from MDLObject) |
| Init() |
Initializes the object by calling the Objective-C |
| InitializeHandle(NativeHandle, String) | (Inherited from NSObject) |
| InitializeHandle(NativeHandle) | (Inherited from NSObject) |
| Invoke(Action, Double) |
Invokes the specified action after the specified delay. (Inherited from NSObject) |
| Invoke(Action, TimeSpan) |
Invokes the specified action after the specified delay. (Inherited from NSObject) |
| InvokeOnMainThread(Action) |
Invokes the specified action synchronously on the main UI thread. (Inherited from NSObject) |
| InvokeOnMainThread(Selector, NSObject) |
Invokes synchronously the specified code on the main UI thread. (Inherited from NSObject) |
| IsEqual(NSObject) | (Inherited from NSObject) |
| IsKindOfClass(Class) | (Inherited from NSObject) |
| IsMemberOfClass(Class) | (Inherited from NSObject) |
| LookAt(Vector3, Vector3) |
Moves the camera to |
| LookAt(Vector3) |
Points the camera at |
| MarkDirty() |
Promotes a regular peer object (IsDirectBinding is true) into a toggleref object. (Inherited from NSObject) |
| MutableCopy() | (Inherited from NSObject) |
| ObjectDidEndEditing(NSObject) | (Inherited from NSObject) |
| ObserveValue(NSString, NSObject, NSDictionary, IntPtr) | (Inherited from NSObject) |
| PerformSelector(Selector, NSObject, Double, NSString[]) | (Inherited from NSObject) |
| PerformSelector(Selector, NSObject, Double) | (Inherited from NSObject) |
| PerformSelector(Selector, NSObject, NSObject) | (Inherited from NSObject) |
| PerformSelector(Selector, NSObject) | (Inherited from NSObject) |
| PerformSelector(Selector, NSThread, NSObject, Boolean, NSString[]) | (Inherited from NSObject) |
| PerformSelector(Selector, NSThread, NSObject, Boolean) | (Inherited from NSObject) |
| PerformSelector(Selector) | (Inherited from NSObject) |
| PrepareForInterfaceBuilder() | (Inherited from NSObject) |
| RayTo(NVector2i, NVector2i) |
Returns a truncated 3D ray that points from the camera toward the 2D point that is specified by taking |
| RemoveObserver(NSObject, NSString, IntPtr) | (Inherited from NSObject) |
| RemoveObserver(NSObject, NSString) | (Inherited from NSObject) |
| RemoveObserver(NSObject, String, IntPtr) | (Inherited from NSObject) |
| RemoveObserver(NSObject, String) | (Inherited from NSObject) |
| RespondsToSelector(Selector) | (Inherited from NSObject) |
| SetComponent(IMDLComponent, Protocol) |
Associates |
| SetComponent(IMDLComponent, Type) |
Makes |
| SetNilValueForKey(NSString) | (Inherited from NSObject) |
| SetValueForKey(NSObject, NSString) | (Inherited from NSObject) |
| SetValueForKeyPath(NativeHandle, NSString) |
Sets the value for the property identified by a given key path to a given value. (Inherited from NSObject) |
| SetValueForKeyPath(NSObject, NSString) | (Inherited from NSObject) |
| SetValueForUndefinedKey(NSObject, NSString) | (Inherited from NSObject) |
| SetValuesForKeysWithDictionary(NSDictionary) | (Inherited from NSObject) |
| ToString() |
Returns a string representation of the value of the current instance. (Inherited from NSObject) |
| Unbind(NSString) | (Inherited from NSObject) |
| ValueForKey(NSString) | (Inherited from NSObject) |
| ValueForKeyPath(NSString) | (Inherited from NSObject) |
| ValueForUndefinedKey(NSString) | (Inherited from NSObject) |
| WillChange(NSKeyValueChange, NSIndexSet, NSString) | (Inherited from NSObject) |
| WillChange(NSString, NSKeyValueSetMutationKind, NSSet) | (Inherited from NSObject) |
| WillChangeValue(String) | (Inherited from NSObject) |