Click or drag to resize

Camera3D Class

LightningChart .NET Help
Camera in 3D view.

Defines how and from what direction the world is seen from.

Inheritance Hierarchy

Namespace:  Arction.Wpf.ChartingMVVM.Views.View3D
Assembly:  Arction.Wpf.ChartingMVVM.LightningChart (in Arction.Wpf.ChartingMVVM.LightningChart.dll) Version: 10.3.1
Syntax
[SerializableAttribute]
[TypeConverterAttribute(typeof(GeneralTypeConverter))]
public class Camera3D : ChartNode

The Camera3D type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyCanFreeze
Gets a value that indicates whether the object can be made unmodifiable.
(Inherited from Freezable.)
Public propertyDependencyObjectType
Gets the DependencyObjectType that wraps the CLR type of this instance. 
(Inherited from DependencyObject.)
Public propertyDispatcher
Gets the Dispatcher this DispatcherObject is associated with.
(Inherited from DispatcherObject.)
Public propertyFieldOfViewAngle
Field of view, that is, perspective angle.
Public propertyIsFrozen
Gets a value that indicates whether the object is currently modifiable.
(Inherited from Freezable.)
Public propertyIsSealed
Gets a value that indicates whether this instance is currently sealed (read-only).
(Inherited from DependencyObject.)
Public propertyMinimumViewDistance
Gets or sets minimum View distance. This is a dependency property. Limits the adjust range of ViewDistance. In some cases, you don't want to let the user set the camera too near.
Public propertyOrientationMode
Type of orientation angle definition used in camera orientation. This is a Dependency Property.

This affects how on the orientation angles (RotationX, RotationY and RotationZ) are interpreted and how do they affect the camera orientation / position.

See OrientationModes for more detailed description of options.

Public propertyProjection
Gets or sets camera projection type. This is a dependency property.
Public propertyRotationX
Part of defining camera orientation and position, by setting its looking direction rotation around X-axis (pitch, elevation) in degrees. This is a dependency property.

Selected Orientation mode (OrientationMode) defines how the value affects camera orientation and position. See OrientationModes enumeration for more information.

RotationY and RotationZ needs to be set as well for defining camera orientation. The rotation values are taken into account on a specific order, NOT on the order they are set.

In some orientation modes setting this value causes user device horizontal rotation axis to be set.

Public propertyRotationXMaximum
Maximum allowed value of RotationX property.

This can be used to limit camera orientation / location to some specific area.

Public propertyRotationXMinimum
Minimum allowed value of RotationX property.

This can be used to limit camera orientation / location to some specific area.

Public propertyRotationY
Part of defining camera orientation and position, by setting its looking direction rotation around Y-axis (Yaw, Heading, Bearing) in degrees. This is a dependency property.

Selected Orientation mode (OrientationMode) defines how the value affects camera orientation and position. See OrientationModes enumeration for more information.

RotationX and RotationZ needs to be set as well for defining camera orientation. The rotation values are taken into account on a specific order, NOT on the order they are set.

In some orientation modes setting this value causes user device horizontal rotation axis to be set.

Public propertyRotationYMaximum
Maximum allowed value of RotationY property.

This can be used to limit camera orientation / location to some specific area.

Public propertyRotationYMinimum
Minimum allowed value of RotationY property.

This can be used to limit camera orientation / location to some specific area.

Public propertyRotationZ
Part of defining camera orientation and position, by setting its looking direction rotation around Z-axis (pitch, elevation) in degrees. This property has highly different effects on different orientation modes. This is a dependency property.

Selected Orientation mode (OrientationMode) defines how the value affects camera orientation and position. See OrientationModes enumeration for more information.

RotationY and RotationX needs to be set as well for defining camera orientation. The rotation values are taken into account on a specific order, NOT on the order they are set.

In some orientation modes setting this value causes user device horizontal rotation axis to be set.

Public propertyRotationZMaximum
Maximum allowed value of RotationZ property.

This can be used to limit camera orientation / location to some specific area.

Public propertyRotationZMinimum
Minimum allowed value of RotationZ property.

This can be used to limit camera orientation / location to some specific area.

Public propertyTarget
Gets or sets target 3D world coordinate. Camera is targeted towards this coordinate. This is a dependency property. Use (0,0,0) to center in the 3D view. View distance is calculated from this target.
Public propertyViewDistance
Gets or sets view distance. This is a dependency property. You should use values in range 10...1000. Distance is calculated from Target
Top
Methods
  NameDescription
Public methodClearValue(DependencyProperty)
Clears the local value of a property. The property to be cleared is specified by a DependencyProperty identifier.
(Inherited from DependencyObject.)
Public methodClearValue(DependencyPropertyKey)
Clears the local value of a read-only property. The property to be cleared is specified by a DependencyPropertyKey.
(Inherited from DependencyObject.)
Public methodClone
Creates a modifiable clone of the Freezable, making deep copies of the object's values. When copying the object's dependency properties, this method copies expressions (which might no longer resolve) but not animations or their current values.
(Inherited from Freezable.)
Public methodCloneCurrentValue
Creates a modifiable clone (deep copy) of the Freezable using its current values.
(Inherited from Freezable.)
Public methodCoerceValue
Coerces the value of the specified dependency property. This is accomplished by invoking any CoerceValueCallback function specified in property metadata for the dependency property as it exists on the calling DependencyObject.
(Inherited from DependencyObject.)
Public methodDispose
Release all resources used by this instance.
(Inherited from ChartNode.)
Public methodDistanceToOrthographicViewArea
Converts view distance value into a orthographic view area. Used for building projection matrix.
Public methodEquals
Determines whether a provided DependencyObject is equivalent to the current DependencyObject.
(Inherited from DependencyObject.)
Public methodFreeze
Makes the current object unmodifiable and sets its IsFrozen property to true.
(Inherited from Freezable.)
Public methodGetAsFrozen
Creates a frozen copy of the Freezable, using base (non-animated) property values. Because the copy is frozen, any frozen sub-objects are copied by reference.
(Inherited from Freezable.)
Public methodGetCurrentValueAsFrozen
Creates a frozen copy of the Freezable using current property values. Because the copy is frozen, any frozen sub-objects are copied by reference.
(Inherited from Freezable.)
Public methodGetFarClipDistance
Getter of the far clipping distance for the 3D projection. This is an advanced setting that is not supported in normal use and should not be modified.
Public methodGetHashCode
Gets a hash code for this DependencyObject.
(Inherited from DependencyObject.)
Public methodGetLocalValueEnumerator
Creates a specialized enumerator for determining which dependency properties have locally set values on this DependencyObject.
(Inherited from DependencyObject.)
Public methodGetLocationAs3DWorldCoord
Gets camera location in 3D world space.
Public methodGetNearClipDistance
Getter of the near clipping distance for the 3D projection. This is an advanced setting that is not supported in normal use and should not be modified.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGetValue
Returns the current effective value of a dependency property on this instance of a DependencyObject.
(Inherited from DependencyObject.)
Public methodInvalidateProperty
Re-evaluates the effective value for the specified dependency property
(Inherited from DependencyObject.)
Public methodLockPointerDeviceHorizRotationAxis
Locks user pointer device (mouse etc) based rotation to use current camera orientation settings for rotation axis. This affects the way horizontal rotation behaves on certain OrientationModes values.

This has no effect when OrientationMode is XYZ_Mixed.

This method is intended mostly as internal operation of LC. It's run when RotationX, RotationY or RotationZ properties are changed, causing horizontal rotation axis to be locked based on the current rotation settings. The method has been left as public for special cases, where users need to make the same operation without modifying the rotation parameters.

Public methodOrthographicViewAreaToDistance(SizeFloat)
Converts orthographic view's area into a view distance value.
Public methodStatic memberOrthographicViewAreaToDistance(SizeFloat, Double, Double)
Converts orthographic view's area into a view distance value.
Public methodReadLocalValue
Returns the local value of a dependency property, if it exists.
(Inherited from DependencyObject.)
Public methodSetCurrentValue
Sets the value of a dependency property without changing its value source.
(Inherited from DependencyObject.)
Public methodSetEulerAngles
Same as setting RotationX, RotationY and RotationZ properties separately. Allows easier setting of the properties and is faster than separate setting of the properties.
Public methodSetFarClipDistance
Setter of the far clipping distance for the 3D projection. This is an advanced setting that is not supported in normal use and should not be modified.
Public methodSetNearClipDistance
Setter of the near clipping distance for the 3D projection. This is an advanced setting that is not supported in normal use and should not be modified.
Public methodSetPredefinedCamera
Sets camera orientation angles to values based given predefined orientation setting.
Public methodSetValue(DependencyProperty, Object)
Sets the local value of a dependency property, specified by its dependency property identifier.
(Inherited from DependencyObject.)
Public methodSetValue(DependencyPropertyKey, Object)
Sets the local value of a read-only dependency property, specified by the DependencyPropertyKey identifier of the dependency property.
(Inherited from DependencyObject.)
Public methodToString
Convert class description to string
(Overrides ObjectToString.)
Top
Events
  NameDescription
Public eventChanged
Occurs when the Freezable or an object it contains is modified.
(Inherited from Freezable.)
Top
Fields
  NameDescription
Public fieldStatic memberFieldOfViewAngleProperty
Identifies the FieldOfViewAngle dependency property.
Public fieldStatic memberMinimumViewDistanceProperty
Identifies the MinimumViewDistance dependency property.
Public fieldStatic memberOrientationModeProperty
Identifies the OrientationMode dependency property.
Public fieldStatic memberProjectionProperty
Identifies the Projection dependency property.
Public fieldStatic memberRotationXMaximumProperty
Identifies the RotationXMaximum dependency property.
Public fieldStatic memberRotationXMinimumProperty
Identifies the RotationXMinimum dependency property.
Public fieldStatic memberRotationXProperty
Identifies the RotationX dependency property.
Public fieldStatic memberRotationYMaximumProperty
Identifies the RotationYMaximum dependency property.
Public fieldStatic memberRotationYMinimumProperty
Identifies the RotationYMinimum dependency property.
Public fieldStatic memberRotationYProperty
Identifies the RotationY dependency property.
Public fieldStatic memberRotationZMaximumProperty
Identifies the RotationZMaximum dependency property.
Public fieldStatic memberRotationZMinimumProperty
Identifies the RotationZMinimum dependency property.
Public fieldStatic memberRotationZProperty
Identifies the RotationZ dependency property.
Public fieldStatic memberTargetProperty
Identifies the Target dependency property.
Public fieldStatic memberViewDistanceProperty
Identifies the ViewDistance dependency property.
Top
See Also