Main Content

Aero.Camera Class

Namespace: Aero

Construct camera object for use with animation object

Description

The Aero.Camera object follows the trajectory of an Aero.Body object. The camera object uses the registered coordinate transform, which by default is an aerospace body coordinate system. Axes of custom coordinate systems must be orthogonal.

By default, an Aero.Body object natively uses aircraft x-y-z coordinates for the body geometry and the time series data. Convert time series data from other coordinate systems on the fly by registering a different CoordTransformFcn function.

The Aero.Camera class is a handle class.

Class Attributes

Abstract
false
ConstructOnLoad
false
HandleCompatible
true
Hidden
false
Sealed
false
RestrictsSubclassing
false

For information on class attributes, see Class Attributes.

Creation

Description

h = Aero.Camera constructs a camera object, h, for use with an animation object.

Output Arguments

expand all

Camera object, returned as an Aero.Camera object.

Properties

expand all

Function that controls coordinate transformation, specified as a function handle name.

Example: h.Camera.CoordTransformFcn=@newCoordTransform

Attributes:

GetAccess
public
SetAccess
public
Transient
true
SetObservable
true
HasDefault
true

Data Types: string | char

Function that controls coordinate transformation, specified as a function handle name.

Example: h.Camera.PositionFcn=@newCameraPosition

Attributes:

GetAccess
public
SetAccess
public
Transient
true
SetObservable
true
HasDefault
true

Data Types: string | char

Camera position relative to animation body, specified as a MATLAB array.

Example: h.Camera.Position=[-150,-50,0]

Attributes:

GetAccess
public
SetAccess
public
Transient
true
SetObservable
true
HasDefault
true

Camera offset, specified as a MATLAB array.

Example: h.Camera.Offset=[-150,-50,0]

Attributes:

GetAccess
public
SetAccess
public
Transient
true
SetObservable
true
HasDefault
true

Camera aim point, specified as a MATLAB array.

Example: h.Camera.AimPoint=[0 0 0]

Attributes:

GetAccess
public
SetAccess
public
Transient
true
SetObservable
true
HasDefault
true

Camera up vector, specified as a MATLAB array.

Example: h.Camera.UpVector=[0 0 0]

Attributes:

GetAccess
public
SetAccess
public
Transient
true
SetObservable
true
HasDefault
true

Camera view angle, specified as a real scalar integer or MATLAB array.

Example: h.Camera.ViewAngle=5

Attributes:

GetAccess
public
SetAccess
public
Transient
true
SetObservable
true
HasDefault
true

Camera view extent, specified as a MATLAB array.

Example: h.Camera.ViewExtent=[-50,50]

Attributes:

GetAccess
public
SetAccess
public
Transient
true
SetObservable
true
HasDefault
true

Camera x-axis limit, specified as a MATLAB array.

Example: h.Camera.xlim=[-50,50]

Attributes:

GetAccess
public
SetAccess
public
Transient
true
SetObservable
true
HasDefault
true

Camera y-axis limit, specified as a MATLAB array.

Example: h.Camera.ylim=[-50,50]

Attributes:

GetAccess
public
SetAccess
public
Transient
true
SetObservable
true
HasDefault
true

Camera z-axis limit, specified as a MATLAB array.

Example: h.Camera.zlim=[-50,50]

Attributes:

GetAccess
public
SetAccess
public
Transient
true
SetObservable
true
HasDefault
true

Camera previous time, specified as a real scalar integer or MATLAB array.

Example: h.Camera.PrevTime=0

Attributes:

GetAccess
public
SetAccess
public
Transient
true
SetObservable
true
HasDefault
true

Custom data, specified as a real scalar integer or MATLAB array.

Example: h.Camera.UserData=[1]

Attributes:

GetAccess
public
SetAccess
public
Transient
true
SetObservable
true
HasDefault
true

Methods

expand all

Version History

Introduced in R2007a