Share via


MDLCamera Class

Definition

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 (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 null if this is a top-level object.

(Inherited from MDLObject)
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 child to this MDLObject object's Children property, creating Children, if necessary.

(Inherited from MDLObject)
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) (Inherited from NSObject)
BeginInvokeOnMainThread(Selector, NSObject)

Invokes asynchrously 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 handler on each component in root's object hierarchy that matches the specified objectClass.

(Inherited from MDLObject)
Equals(NSObject) (Inherited from NSObject)
Equals(Object) (Inherited from NSObject)
FrameBoundingBox(MDLAxisAlignedBoundingBox, Boolean)

Moves the camera to view boundingBox looking parallel to the Z axis in a negative direction, and sets the near and far clipping planes to the bounding box if setNearAndFar is true.

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 protocol.

(Inherited from MDLObject)
GetComponent(Type)

Gets this object's component that matches the supplied type.

(Inherited from MDLObject)
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() (Inherited from NSObject)
InitializeHandle(NativeHandle, String) (Inherited from NSObject)
InitializeHandle(NativeHandle) (Inherited from NSObject)
Invoke(Action, Double) (Inherited from NSObject)
Invoke(Action, TimeSpan) (Inherited from NSObject)
InvokeOnMainThread(Action) (Inherited from NSObject)
InvokeOnMainThread(Selector, NSObject)

Invokes synchrously 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 focusPosition, and points it at focusPosition.

LookAt(Vector3)

Points the camera at focusPosition.

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 pixel as coordinates in a viewport with the dimensions in size.

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 component with this MDLOBject for the specified protocol.

(Inherited from MDLObject)
SetComponent(IMDLComponent, Type)

Makes component the object to provide for the specified type.

(Inherited from MDLObject)
SetNilValueForKey(NSString) (Inherited from NSObject)
SetValueForKey(NSObject, NSString) (Inherited from NSObject)
SetValueForKeyPath(NativeHandle, NSString) (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)

Extension Methods

Name Description
ObjectDidBeginEditing(NSObject, INSEditor)
ObjectDidEndEditing(NSObject, INSEditor)
GetValidModes(NSObject, NSFontPanel)
ValidateToolbarItem(NSObject, NSToolbarItem)
BrowserAccessibilityDeleteTextAtCursor(NSObject, IntPtr)
BrowserAccessibilityInsertTextAtCursor(NSObject, String)
GetAccessibilityLineEndPositionFromCurrentSelection(NSObject)
GetAccessibilityLineRangeForPosition(NSObject, IntPtr)
GetAccessibilityLineStartPositionFromCurrentSelection(NSObject)
GetBrowserAccessibilityAttributedValue(NSObject, NSRange)
GetBrowserAccessibilityContainerType(NSObject)
GetBrowserAccessibilityCurrentStatus(NSObject)
GetBrowserAccessibilityHasDomFocus(NSObject)
GetBrowserAccessibilityIsRequired(NSObject)
GetBrowserAccessibilityPressedState(NSObject)
GetBrowserAccessibilityRoleDescription(NSObject)
GetBrowserAccessibilitySelectedTextRange(NSObject)
GetBrowserAccessibilitySortDirection(NSObject)
GetBrowserAccessibilityValue(NSObject, NSRange)
SetBrowserAccessibilityContainerType(NSObject, BEAccessibilityContainerType)
SetBrowserAccessibilityCurrentStatus(NSObject, String)
SetBrowserAccessibilityHasDomFocus(NSObject, Boolean)
SetBrowserAccessibilityIsRequired(NSObject, Boolean)
SetBrowserAccessibilityPressedState(NSObject, BEAccessibilityPressedState)
SetBrowserAccessibilityRoleDescription(NSObject, String)
SetBrowserAccessibilitySelectedTextRange(NSObject, NSRange)
SetBrowserAccessibilitySortDirection(NSObject, String)
ProvideImageData(NSObject, IntPtr, UIntPtr, UIntPtr, UIntPtr, UIntPtr, UIntPtr, NSObject)
ProvideImageToMTLTexture(NSObject, IMTLTexture, IMTLCommandBuffer, UIntPtr, UIntPtr, UIntPtr, UIntPtr, NSObject)
SetSharedObservers(NSObject, NSKeyValueSharedObserversSnapshot)
GetDebugDescription(INSObjectProtocol)
GetHandle(INativeObject)
GetNonNullHandle(INativeObject, String)
AcceptsPreviewPanelControl(NSObject, QLPreviewPanel)
BeginPreviewPanelControl(NSObject, QLPreviewPanel)
EndPreviewPanelControl(NSObject, QLPreviewPanel)
GetAccessibilityCustomRotors(NSObject)

Gets the array of UIAccessibilityCustomRotor objects appropriate for this object.

SetAccessibilityCustomRotors(NSObject, UIAccessibilityCustomRotor[])

Sets the array of UIAccessibilityCustomRotor objects appropriate for this object.

AccessibilityHitTest(NSObject, CGPoint, UIEvent)
GetAccessibilityNextTextNavigationElement(NSObject)
GetAccessibilityNextTextNavigationElementBlock(NSObject)
GetAccessibilityPreviousTextNavigationElement(NSObject)
GetAccessibilityPreviousTextNavigationElementBlock(NSObject)
SetAccessibilityNextTextNavigationElement(NSObject, NSObject)
SetAccessibilityNextTextNavigationElementBlock(NSObject, AXObjectReturnBlock)
SetAccessibilityPreviousTextNavigationElement(NSObject, NSObject)
SetAccessibilityPreviousTextNavigationElementBlock(NSObject, AXObjectReturnBlock)
GetAccessibilityTextInputResponder(NSObject)
GetAccessibilityTextInputResponderHandler(NSObject)
SetAccessibilityTextInputResponder(NSObject, IUITextInput)
SetAccessibilityTextInputResponderHandler(NSObject, UITextInputReturnHandler)

Applies to

See also