C# Класс HelixToolkit.Wpf.CameraController

Provides a control that manipulates the camera by mouse and keyboard gestures.
Наследование: System.Windows.Controls.Grid
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
BackViewCommand System.Windows.Input.RoutedCommand
BottomViewCommand System.Windows.Input.RoutedCommand
CameraModeProperty System.Windows.DependencyProperty
CameraProperty System.Windows.DependencyProperty
CameraRotationModeProperty System.Windows.DependencyProperty
ChangeFieldOfViewCommand System.Windows.Input.RoutedCommand
ChangeFieldOfViewCursorProperty System.Windows.DependencyProperty
ChangeLookAtCommand System.Windows.Input.RoutedCommand
DefaultCameraProperty System.Windows.DependencyProperty
EnabledProperty System.Windows.DependencyProperty
FrontViewCommand System.Windows.Input.RoutedCommand
InertiaFactorProperty System.Windows.DependencyProperty
InfiniteSpinProperty System.Windows.DependencyProperty
IsChangeFieldOfViewEnabledProperty System.Windows.DependencyProperty
IsInertiaEnabledProperty System.Windows.DependencyProperty
IsMoveEnabledProperty System.Windows.DependencyProperty
IsPanEnabledProperty System.Windows.DependencyProperty
IsRotationEnabledProperty System.Windows.DependencyProperty
IsTouchZoomEnabledProperty System.Windows.DependencyProperty
IsZoomEnabledProperty System.Windows.DependencyProperty
LeftRightPanSensitivityProperty System.Windows.DependencyProperty
LeftRightRotationSensitivityProperty System.Windows.DependencyProperty
LeftViewCommand System.Windows.Input.RoutedCommand
LookAtChangedEvent RoutedEvent
MaximumFieldOfViewProperty DependencyProperty
MinimumFieldOfViewProperty DependencyProperty
ModelUpDirectionProperty DependencyProperty
MoveSensitivityProperty DependencyProperty
PageUpDownZoomSensitivityProperty DependencyProperty
PanCommand RoutedCommand
PanCursorProperty DependencyProperty
ResetCameraCommand RoutedCommand
RightViewCommand RoutedCommand
RotateAroundMouseDownPointProperty DependencyProperty
RotateCommand RoutedCommand
RotateCursorProperty DependencyProperty
RotationSensitivityProperty DependencyProperty
ShowCameraTargetProperty DependencyProperty
SpinReleaseTimeProperty DependencyProperty
TopViewCommand RoutedCommand
TouchModeProperty DependencyProperty
UpDownPanSensitivityProperty DependencyProperty
UpDownRotationSensitivityProperty DependencyProperty
ViewportProperty DependencyProperty
ZoomAroundMouseDownPointProperty DependencyProperty
ZoomCommand RoutedCommand
ZoomCursorProperty DependencyProperty
ZoomExtentsCommand RoutedCommand
ZoomRectangleCommand RoutedCommand
ZoomRectangleCursorProperty DependencyProperty
ZoomSensitivityProperty DependencyProperty
ZoomedByRectangleEvent RoutedEvent

Открытые методы

Метод Описание
AddMoveForce ( System.Windows.Media.Media3D.Vector3D delta ) : void

Adds the specified move force.

AddMoveForce ( double dx, double dy, double dz ) : void

Adds the specified move force.

AddPanForce ( System.Windows.Media.Media3D.Vector3D pan ) : void

The add pan force.

AddPanForce ( double dx, double dy ) : void

Adds the specified pan force.

AddRotateForce ( double dx, double dy ) : void

The add rotate force.

AddZoomForce ( double delta ) : void

Adds the zoom force.

AddZoomForce ( double delta, System.Windows.Media.Media3D.Point3D zoomOrigin ) : void

Adds the zoom force.

ChangeDirection ( System.Windows.Media.Media3D.Vector3D lookDir, System.Windows.Media.Media3D.Vector3D upDir, double animationTime = 500 ) : void

Changes the direction of the camera.

ChangeDirection ( System.Windows.Media.Media3D.Vector3D lookDir, double animationTime = 500 ) : void

Changes the direction of the camera.

HideRectangle ( ) : void

Hides the rectangle.

HideTargetAdorner ( ) : void

Hides the target adorner.

PushCameraSetting ( ) : void

Push the current camera settings on an internal stack.

ResetCamera ( ) : void

Resets the camera.

ResetCameraUpDirection ( ) : void

Resets the camera up direction.

RestoreCameraSetting ( ) : bool

Restores the most recent camera setting from the internal stack.

ShowRectangle ( Rect rect, Color color1, Color color2 ) : void

Shows the rectangle.

ShowTargetAdorner ( Point position ) : void

Shows the target adorner.

StartSpin ( Vector speed, Point position, Point3D aroundPoint ) : void

Starts the spin.

StopSpin ( ) : void

Stops the spin.

UpdateRectangle ( Rect rect ) : void

Updates the rectangle.

Zoom ( double delta ) : void

Zooms by the specified delta value.

ZoomExtents ( double animationTime = 200 ) : void

Zooms to the extents of the model.

Защищенные методы

Метод Описание
OnLookAtChanged ( ) : void

Raises the LookAtChanged event.

OnMouseDown ( MouseButtonEventArgs e ) : void

DELETED BY SJT FOR .NET 3.5 Called when the E:System.Windows.UIElement.ManipulationCompleted event occurs.

DELETED BY SJT FOR .NET 3.5 Called when the E:System.Windows.UIElement.ManipulationDelta event occurs.

DELETED BY SJT FOR .NET 3.5 Called when the E:System.Windows.UIElement.ManipulationStarted event occurs.

Invoked when an unhandled MouseDown attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.

OnStylusSystemGesture ( StylusSystemGestureEventArgs e ) : void

Invoked when an unhandled StylusSystemGesture attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.

OnZoomedByRectangle ( ) : void

Raises the ZoomedByRectangle event.

Приватные методы

Метод Описание
BackViewHandler ( object sender, System.Windows.Input.ExecutedRoutedEventArgs e ) : void

The back view event handler.

BottomViewHandler ( object sender, System.Windows.Input.ExecutedRoutedEventArgs e ) : void

The bottom view event handler.

CameraChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void

The camera changed.

CameraController ( ) : System

Initializes static members of the CameraController class. Initializes static members of the CameraController class. Initializes static members of the class. Initializes static members of the CameraController class. Initializes static members of the class.

CameraControllerLoaded ( object sender, RoutedEventArgs e ) : void

The camera controller_ loaded.

CameraControllerUnloaded ( object sender, RoutedEventArgs e ) : void

Called when the CameraController is unloaded.

Clamp ( double value, double min, double max ) : double

Clamps the specified value between the limits.

FindPanVector ( double dx, double dy ) : System.Windows.Media.Media3D.Vector3D

Finds the pan vector.

FrontViewHandler ( object sender, System.Windows.Input.ExecutedRoutedEventArgs e ) : void

The front view event handler.

InitializeBindings ( ) : void

Initializes the input bindings.

LeftViewHandler ( object sender, System.Windows.Input.ExecutedRoutedEventArgs e ) : void

The left view event handler.

LookAt ( System.Windows.Media.Media3D.Point3D target, double animationTime ) : void
OnCameraChanged ( ) : void

The on camera changed.

OnCompositionTargetRendering ( object sender, RenderingEventArgs e ) : void

The rendering event handler.

OnKeyDown ( object sender, KeyEventArgs e ) : void

Called when a key is pressed.

OnMouseWheel ( object sender, MouseWheelEventArgs e ) : void

Called when the mouse wheel is moved.

OnTimeStep ( double time ) : void

The on time step.

OnViewportChanged ( ) : void

The on viewport changed.

RefreshViewport ( ) : void

The refresh viewport.

ResetCameraHandler ( object sender, ExecutedRoutedEventArgs e ) : void

The reset camera event handler.

RightViewHandler ( object sender, ExecutedRoutedEventArgs e ) : void

The right view event handler.

StopAnimations ( ) : void

The stop animations.

SubscribeEvents ( ) : void

The subscribe events.

TopViewHandler ( object sender, ExecutedRoutedEventArgs e ) : void

The top view event handler.

UnSubscribeEvents ( ) : void

The un subscribe events.

ViewportChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void

The viewport changed.

ZoomExtentsHandler ( object sender, ExecutedRoutedEventArgs e ) : void

The Zoom extents event handler.

Описание методов

AddMoveForce() публичный Метод

Adds the specified move force.
public AddMoveForce ( System.Windows.Media.Media3D.Vector3D delta ) : void
delta System.Windows.Media.Media3D.Vector3D /// The delta. ///
Результат void

AddMoveForce() публичный Метод

Adds the specified move force.
public AddMoveForce ( double dx, double dy, double dz ) : void
dx double /// The delta x. ///
dy double /// The delta y. ///
dz double /// The delta z. ///
Результат void

AddPanForce() публичный Метод

The add pan force.
public AddPanForce ( System.Windows.Media.Media3D.Vector3D pan ) : void
pan System.Windows.Media.Media3D.Vector3D /// The pan. ///
Результат void

AddPanForce() публичный Метод

Adds the specified pan force.
public AddPanForce ( double dx, double dy ) : void
dx double /// The delta x. ///
dy double /// The delta y. ///
Результат void

AddRotateForce() публичный Метод

The add rotate force.
public AddRotateForce ( double dx, double dy ) : void
dx double /// The delta x. ///
dy double /// The delta y. ///
Результат void

AddZoomForce() публичный Метод

Adds the zoom force.
public AddZoomForce ( double delta ) : void
delta double /// The delta. ///
Результат void

AddZoomForce() публичный Метод

Adds the zoom force.
public AddZoomForce ( double delta, System.Windows.Media.Media3D.Point3D zoomOrigin ) : void
delta double /// The delta. ///
zoomOrigin System.Windows.Media.Media3D.Point3D /// The zoom origin. ///
Результат void

ChangeDirection() публичный Метод

Changes the direction of the camera.
public ChangeDirection ( System.Windows.Media.Media3D.Vector3D lookDir, System.Windows.Media.Media3D.Vector3D upDir, double animationTime = 500 ) : void
lookDir System.Windows.Media.Media3D.Vector3D /// The look direction. ///
upDir System.Windows.Media.Media3D.Vector3D /// The up direction. ///
animationTime double /// The animation time. ///
Результат void

ChangeDirection() публичный Метод

Changes the direction of the camera.
public ChangeDirection ( System.Windows.Media.Media3D.Vector3D lookDir, double animationTime = 500 ) : void
lookDir System.Windows.Media.Media3D.Vector3D /// The look direction. ///
animationTime double /// The animation time. ///
Результат void

HideRectangle() публичный Метод

Hides the rectangle.
public HideRectangle ( ) : void
Результат void

HideTargetAdorner() публичный Метод

Hides the target adorner.
public HideTargetAdorner ( ) : void
Результат void

OnLookAtChanged() защищенный Метод

Raises the LookAtChanged event.
protected OnLookAtChanged ( ) : void
Результат void

OnMouseDown() защищенный Метод

DELETED BY SJT FOR .NET 3.5 Called when the E:System.Windows.UIElement.ManipulationCompleted event occurs. DELETED BY SJT FOR .NET 3.5 Called when the E:System.Windows.UIElement.ManipulationDelta event occurs. DELETED BY SJT FOR .NET 3.5 Called when the E:System.Windows.UIElement.ManipulationStarted event occurs. Invoked when an unhandled MouseDown attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.
protected OnMouseDown ( MouseButtonEventArgs e ) : void
e MouseButtonEventArgs /// The data for the event. ///
Результат void

OnStylusSystemGesture() защищенный Метод

Invoked when an unhandled StylusSystemGesture attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.
protected OnStylusSystemGesture ( StylusSystemGestureEventArgs e ) : void
e StylusSystemGestureEventArgs /// The that contains the event data. ///
Результат void

OnZoomedByRectangle() защищенный Метод

Raises the ZoomedByRectangle event.
protected OnZoomedByRectangle ( ) : void
Результат void

PushCameraSetting() публичный Метод

Push the current camera settings on an internal stack.
public PushCameraSetting ( ) : void
Результат void

ResetCamera() публичный Метод

Resets the camera.
public ResetCamera ( ) : void
Результат void

ResetCameraUpDirection() публичный Метод

Resets the camera up direction.
public ResetCameraUpDirection ( ) : void
Результат void

RestoreCameraSetting() публичный Метод

Restores the most recent camera setting from the internal stack.
public RestoreCameraSetting ( ) : bool
Результат bool

ShowRectangle() публичный Метод

Shows the rectangle.
public ShowRectangle ( Rect rect, Color color1, Color color2 ) : void
rect Rect /// The rectangle. ///
color1 Color /// The color 1. ///
color2 Color /// The color 2. ///
Результат void

ShowTargetAdorner() публичный Метод

Shows the target adorner.
public ShowTargetAdorner ( Point position ) : void
position Point /// The position. ///
Результат void

StartSpin() публичный Метод

Starts the spin.
public StartSpin ( Vector speed, Point position, Point3D aroundPoint ) : void
speed Vector /// The speed. ///
position Point /// The position. ///
aroundPoint Point3D /// The spin around point. ///
Результат void

StopSpin() публичный Метод

Stops the spin.
public StopSpin ( ) : void
Результат void

UpdateRectangle() публичный Метод

Updates the rectangle.
public UpdateRectangle ( Rect rect ) : void
rect Rect /// The rectangle. ///
Результат void

Zoom() публичный Метод

Zooms by the specified delta value.
public Zoom ( double delta ) : void
delta double /// The delta value. ///
Результат void

ZoomExtents() публичный Метод

Zooms to the extents of the model.
public ZoomExtents ( double animationTime = 200 ) : void
animationTime double /// The animation time (milliseconds). ///
Результат void

Описание свойств

BackViewCommand публичное статическое свойство

The back view command.
public static RoutedCommand,System.Windows.Input BackViewCommand
Результат System.Windows.Input.RoutedCommand

BottomViewCommand публичное статическое свойство

The bottom view command.
public static RoutedCommand,System.Windows.Input BottomViewCommand
Результат System.Windows.Input.RoutedCommand

CameraModeProperty публичное статическое свойство

Identifies the CameraMode dependency property.
public static DependencyProperty,System.Windows CameraModeProperty
Результат System.Windows.DependencyProperty

CameraProperty публичное статическое свойство

Identifies the Camera dependency property.
public static DependencyProperty,System.Windows CameraProperty
Результат System.Windows.DependencyProperty

CameraRotationModeProperty публичное статическое свойство

Identifies the CameraRotationMode dependency property.
public static DependencyProperty,System.Windows CameraRotationModeProperty
Результат System.Windows.DependencyProperty

ChangeFieldOfViewCommand публичное статическое свойство

The change fov command.
public static RoutedCommand,System.Windows.Input ChangeFieldOfViewCommand
Результат System.Windows.Input.RoutedCommand

ChangeFieldOfViewCursorProperty публичное статическое свойство

Identifies the ChangeFieldOfViewCursor dependency property.
public static DependencyProperty,System.Windows ChangeFieldOfViewCursorProperty
Результат System.Windows.DependencyProperty

ChangeLookAtCommand публичное статическое свойство

The change look at command.
public static RoutedCommand,System.Windows.Input ChangeLookAtCommand
Результат System.Windows.Input.RoutedCommand

DefaultCameraProperty публичное статическое свойство

Identifies the DefaultCamera dependency property.
public static DependencyProperty,System.Windows DefaultCameraProperty
Результат System.Windows.DependencyProperty

EnabledProperty публичное статическое свойство

Identifies the Enabled dependency property.
public static DependencyProperty,System.Windows EnabledProperty
Результат System.Windows.DependencyProperty

FrontViewCommand публичное статическое свойство

The front view command.
public static RoutedCommand,System.Windows.Input FrontViewCommand
Результат System.Windows.Input.RoutedCommand

InertiaFactorProperty публичное статическое свойство

Identifies the InertiaFactor dependency property.
public static DependencyProperty,System.Windows InertiaFactorProperty
Результат System.Windows.DependencyProperty

InfiniteSpinProperty публичное статическое свойство

Identifies the InfiniteSpin dependency property.
public static DependencyProperty,System.Windows InfiniteSpinProperty
Результат System.Windows.DependencyProperty

IsChangeFieldOfViewEnabledProperty публичное статическое свойство

Identifies the IsChangeFieldOfViewEnabled dependency property.
public static DependencyProperty,System.Windows IsChangeFieldOfViewEnabledProperty
Результат System.Windows.DependencyProperty

IsInertiaEnabledProperty публичное статическое свойство

Identifies the IsInertiaEnabled dependency property.
public static DependencyProperty,System.Windows IsInertiaEnabledProperty
Результат System.Windows.DependencyProperty

IsMoveEnabledProperty публичное статическое свойство

Identifies the IsMoveEnabled dependency property.
public static DependencyProperty,System.Windows IsMoveEnabledProperty
Результат System.Windows.DependencyProperty

IsPanEnabledProperty публичное статическое свойство

Identifies the IsPanEnabled dependency property.
public static DependencyProperty,System.Windows IsPanEnabledProperty
Результат System.Windows.DependencyProperty

IsRotationEnabledProperty публичное статическое свойство

Identifies the IsRotationEnabled dependency property.
public static DependencyProperty,System.Windows IsRotationEnabledProperty
Результат System.Windows.DependencyProperty

IsTouchZoomEnabledProperty публичное статическое свойство

Identifies the IsTouchZoomEnabled dependency property.
public static DependencyProperty,System.Windows IsTouchZoomEnabledProperty
Результат System.Windows.DependencyProperty

IsZoomEnabledProperty публичное статическое свойство

Identifies the IsZoomEnabled dependency property.
public static DependencyProperty,System.Windows IsZoomEnabledProperty
Результат System.Windows.DependencyProperty

LeftRightPanSensitivityProperty публичное статическое свойство

Identifies the LeftRightPanSensitivity dependency property.
public static DependencyProperty,System.Windows LeftRightPanSensitivityProperty
Результат System.Windows.DependencyProperty

LeftRightRotationSensitivityProperty публичное статическое свойство

Identifies the LeftRightRotationSensitivity dependency property.
public static DependencyProperty,System.Windows LeftRightRotationSensitivityProperty
Результат System.Windows.DependencyProperty

LeftViewCommand публичное статическое свойство

The left view command.
public static RoutedCommand,System.Windows.Input LeftViewCommand
Результат System.Windows.Input.RoutedCommand

LookAtChangedEvent публичное статическое свойство

The look at (target) point changed event
public static RoutedEvent LookAtChangedEvent
Результат RoutedEvent

MaximumFieldOfViewProperty публичное статическое свойство

Identifies the MaximumFieldOfView dependency property.
public static DependencyProperty MaximumFieldOfViewProperty
Результат DependencyProperty

MinimumFieldOfViewProperty публичное статическое свойство

Identifies the MinimumFieldOfView dependency property.
public static DependencyProperty MinimumFieldOfViewProperty
Результат DependencyProperty

ModelUpDirectionProperty публичное статическое свойство

Identifies the ModelUpDirection dependency property.
public static DependencyProperty ModelUpDirectionProperty
Результат DependencyProperty

MoveSensitivityProperty публичное статическое свойство

Identifies the MoveSensitivity dependency property.
public static DependencyProperty MoveSensitivityProperty
Результат DependencyProperty

PageUpDownZoomSensitivityProperty публичное статическое свойство

Identifies the PageUpDownZoomSensitivity dependency property.
public static DependencyProperty PageUpDownZoomSensitivityProperty
Результат DependencyProperty

PanCommand публичное статическое свойство

The pan command.
public static RoutedCommand PanCommand
Результат RoutedCommand

PanCursorProperty публичное статическое свойство

Identifies the PanCursor dependency property.
public static DependencyProperty PanCursorProperty
Результат DependencyProperty

ResetCameraCommand публичное статическое свойство

The reset camera command.
public static RoutedCommand ResetCameraCommand
Результат RoutedCommand

RightViewCommand публичное статическое свойство

The right view command.
public static RoutedCommand RightViewCommand
Результат RoutedCommand

RotateAroundMouseDownPointProperty публичное статическое свойство

Identifies the RotateAroundMouseDownPoint dependency property.
public static DependencyProperty RotateAroundMouseDownPointProperty
Результат DependencyProperty

RotateCommand публичное статическое свойство

The rotate command.
public static RoutedCommand RotateCommand
Результат RoutedCommand

RotateCursorProperty публичное статическое свойство

Identifies the RotateCursor dependency property.
public static DependencyProperty RotateCursorProperty
Результат DependencyProperty

RotationSensitivityProperty публичное статическое свойство

Identifies the RotationSensitivity dependency property.
public static DependencyProperty RotationSensitivityProperty
Результат DependencyProperty

ShowCameraTargetProperty публичное статическое свойство

Identifies the ShowCameraTarget dependency property.
public static DependencyProperty ShowCameraTargetProperty
Результат DependencyProperty

SpinReleaseTimeProperty публичное статическое свойство

Identifies the SpinReleaseTime dependency property.
public static DependencyProperty SpinReleaseTimeProperty
Результат DependencyProperty

TopViewCommand публичное статическое свойство

The top view command.
public static RoutedCommand TopViewCommand
Результат RoutedCommand

TouchModeProperty публичное статическое свойство

Identifies the TouchMode dependency property.
public static DependencyProperty TouchModeProperty
Результат DependencyProperty

UpDownPanSensitivityProperty публичное статическое свойство

Identifies the UpDownPanSensitivity dependency property.
public static DependencyProperty UpDownPanSensitivityProperty
Результат DependencyProperty

UpDownRotationSensitivityProperty публичное статическое свойство

Identifies the UpDownRotationSensitivity dependency property.
public static DependencyProperty UpDownRotationSensitivityProperty
Результат DependencyProperty

ViewportProperty публичное статическое свойство

Identifies the Viewport dependency property.
public static DependencyProperty ViewportProperty
Результат DependencyProperty

ZoomAroundMouseDownPointProperty публичное статическое свойство

Identifies the ZoomAroundMouseDownPoint dependency property.
public static DependencyProperty ZoomAroundMouseDownPointProperty
Результат DependencyProperty

ZoomCommand публичное статическое свойство

The zoom command.
public static RoutedCommand ZoomCommand
Результат RoutedCommand

ZoomCursorProperty публичное статическое свойство

Identifies the ZoomCursor dependency property.
public static DependencyProperty ZoomCursorProperty
Результат DependencyProperty

ZoomExtentsCommand публичное статическое свойство

The zoom extents command.
public static RoutedCommand ZoomExtentsCommand
Результат RoutedCommand

ZoomRectangleCommand публичное статическое свойство

The zoom rectangle command.
public static RoutedCommand ZoomRectangleCommand
Результат RoutedCommand

ZoomRectangleCursorProperty публичное статическое свойство

Identifies the ZoomRectangleCursor dependency property.
public static DependencyProperty ZoomRectangleCursorProperty
Результат DependencyProperty

ZoomSensitivityProperty публичное статическое свойство

Identifies the ZoomSensitivity dependency property.
public static DependencyProperty ZoomSensitivityProperty
Результат DependencyProperty

ZoomedByRectangleEvent публичное статическое свойство

The zoomed by rectangle event
public static RoutedEvent ZoomedByRectangleEvent
Результат RoutedEvent