System windows media media3d

Orthographic Camera Класс

Определение

Представляет камеру ортогональной проекции. Represents an orthographic projection camera.

Примеры

В следующем примере показано, как создать OrthographicCamera и переключить проекции камеры. The following example shows how to create an OrthographicCamera and toggle camera projections.

Комментарии

Этот класс задает ортогональную проекцию трехмерной модели до двумерной визуальной поверхности. This class specifies an orthogonal projection of a 3-D model to a 2-D visual surface. Как и в PerspectiveCamera , он задает расположение, направление просмотра и направление вверх. Like PerspectiveCamera, it specifies a position, viewing direction, and «upward» direction. Однако, в отличие от PerspectiveCamera , OrthographicCamera описывает проекцию, которая не включает перспективу ракурс. Unlike PerspectiveCamera, however, OrthographicCamera describes a projection that does not include perspective foreshortening. Иными словами, OrthographicCamera описывает окно просмотра, стороны которого параллельны, а не один, стороны которого встречаются в точке на горизонте сцены. In other words, OrthographicCamera describes a viewing box whose sides are parallel, instead of one whose sides meet in a point at the scene’s horizon.

На следующей диаграмме показано различие между ортогональными и перспективными проекциями форешортенед. The following diagram shows the difference between orthographic and perspective-foreshortened camera projections.

Конструкторы

Инициализирует новый экземпляр класса OrthographicCamera. Initializes a new instance of the OrthographicCamera class.

Инициализирует новый экземпляр класса OrthographicCamera с заданной позицией, направлением проекции, направлением вверх и шириной. Initializes a new instance of the OrthographicCamera class with the specified position, projection direction, upward direction, and width.

Идентифицирует свойство зависимостей Width. Identifies the Width dependency property.

Свойства

Возвращает значение, которое указывает, можно ли сделать объект неизменяемым. Gets a value that indicates whether the object can be made unmodifiable.

(Унаследовано от Freezable) DependencyObjectType

Возвращает объект DependencyObjectType , который заключает в оболочку тип CLR данного экземпляра. Gets the DependencyObjectType that wraps the CLR type of this instance.

(Унаследовано от DependencyObject) Dispatcher

Возвращает объект Dispatcher, с которым связан этот объект DispatcherObject. Gets the Dispatcher this DispatcherObject is associated with.

(Унаследовано от DispatcherObject) FarPlaneDistance

Получает или задает значение, указывающее расстояние от камеры до дальней отсекающей плоскости камеры. Gets or sets a value that specifies the distance from the camera of the camera’s far clip plane.

(Унаследовано от ProjectionCamera) HasAnimatedProperties

Возвращает значение, которое указывает, сопоставлены ли один или несколько объектов AnimationClock любому из свойств зависимостей этого объекта. Gets a value that indicates whether one or more AnimationClock objects is associated with any of this object’s dependency properties.

(Унаследовано от Animatable) IsFrozen

Получает значение, указывающее, доступен ли объект для изменения в настоящее время. Gets a value that indicates whether the object is currently modifiable.

(Унаследовано от Freezable) IsSealed

Получает значение, указывающее, является ли этот экземпляр в данный момент запечатанным (доступным только для чтения). Gets a value that indicates whether this instance is currently sealed (read-only).

(Унаследовано от DependencyObject) LookDirection

Получает или задает объект Vector3D, который определяет направление просмотра камеры в мировых координатах. Gets or sets a Vector3D which defines the direction in which the camera is looking in world coordinates.

(Унаследовано от ProjectionCamera) NearPlaneDistance

Возвращает или задает значение, указывающее расстояние от камеры до ближней отсекающей плоскости камеры. Gets or sets a value that specifies the distance from the camera of the camera’s near clip plane.

(Унаследовано от ProjectionCamera) Position

Получает или задает позицию камеры в мировых координатах. Gets or sets the position of the camera in world coordinates.

(Унаследовано от ProjectionCamera) Transform

Получает или задает объект Transform3D, применяемый к камере. Gets or sets the Transform3D applied to the camera.

Читайте также:  Will linux replace windows

(Унаследовано от Camera) UpDirection

Получает или задает объект Vector3D, определяющий направление вверх для камеры. Gets or sets a Vector3D which defines the upward direction of the camera.

(Унаследовано от ProjectionCamera) Width

Получает или задает ширину наблюдательного отсека камеры в международных единицах измерения. Gets or sets the width of the camera’s viewing box, in world units.

Методы

Применяет AnimationClock к заданному DependencyProperty. Applies an AnimationClock to the specified DependencyProperty. Если свойство уже анимировано, используется эстафетное поведение SnapshotAndReplace. If the property is already animated, the SnapshotAndReplace handoff behavior is used.

(Унаследовано от Animatable) ApplyAnimationClock(DependencyProperty, AnimationClock, HandoffBehavior)

Применяет AnimationClock к заданному DependencyProperty. Applies an AnimationClock to the specified DependencyProperty. Если свойство уже является анимированным, используется указанное поведение HandoffBehavior. If the property is already animated, the specified HandoffBehavior is used.

(Унаследовано от Animatable) BeginAnimation(DependencyProperty, AnimationTimeline)

Применяет анимацию к указанному DependencyProperty. Applies an animation to the specified DependencyProperty. Анимация начинается при отрисовке следующего кадра. The animation is started when the next frame is rendered. Если указанное свойство уже анимировано, используется поведение перемещения SnapshotAndReplace. If the specified property is already animated, the SnapshotAndReplace handoff behavior is used.

(Унаследовано от Animatable) BeginAnimation(DependencyProperty, AnimationTimeline, HandoffBehavior)

Применяет анимацию к указанному DependencyProperty. Applies an animation to the specified DependencyProperty. Анимация начинается при отрисовке следующего кадра. The animation is started when the next frame is rendered. Если указанное свойство уже является анимированным, используется указанное поведение HandoffBehavior. If the specified property is already animated, the specified HandoffBehavior is used.

(Унаследовано от Animatable) CheckAccess()

Определяет, имеет ли вызывающий поток доступ к этому DispatcherObject. Determines whether the calling thread has access to this DispatcherObject.

(Унаследовано от DispatcherObject) ClearValue(DependencyProperty)

Очищает локальное значение свойства. Clears the local value of a property. Очищаемое свойство задается идентификатором DependencyProperty. The property to be cleared is specified by a DependencyProperty identifier.

(Унаследовано от DependencyObject) ClearValue(DependencyPropertyKey)

Очищает локальное значение доступного только для чтения свойства. Clears the local value of a read-only property. Очищаемое свойство задается ключом DependencyPropertyKey. The property to be cleared is specified by a DependencyPropertyKey.

(Унаследовано от DependencyObject) Clone()

Создает изменяемый клон данного объекта OrthographicCamera, делая глубокие копии значений этого объекта. Creates a modifiable clone of this OrthographicCamera, making deep copies of this object’s values. При копировании свойств зависимостей этот метод копирует ссылки на ресурсы и привязки данных (которые могут уже не быть разрешимыми), но не копирует анимации и их текущие значения. When copying dependency properties, this method copies resource references and data bindings (but they might no longer resolve) but not animations or their current values.

Делает экземпляр клоном (глубокой копией) указанного объекта Freezable, используя базовые (без анимации) значения свойств. Makes the instance a clone (deep copy) of the specified Freezable using base (non-animated) property values.

(Унаследовано от Freezable) CloneCurrentValue()

Создает модифицируемый клон данного объекта OrthographicCamera, делая глубокие копии текущих значений этого объекта. Creates a modifiable clone of this OrthographicCamera object, making deep copies of this object’s current values. Ссылки на ресурсы, привязки данных и анимации не копируются, но копируются их текущие значения. Resource references, data bindings, and animations are not copied, but their current values are.

Делает экземпляр изменяемым клоном (глубокой копией) указанного объекта Freezable с использованием текущих значений свойств. Makes the instance a modifiable clone (deep copy) of the specified Freezable using current property values.

(Унаследовано от Freezable) CoerceValue(DependencyProperty)

Приводит значение указанного свойства зависимостей. Coerces the value of the specified dependency property. Это осуществляется путем вызова какой-либо функции CoerceValueCallback, указанной в метаданных свойства зависимостей, которое существует в вызывающем объекте DependencyObject. This is accomplished by invoking any CoerceValueCallback function specified in property metadata for the dependency property as it exists on the calling DependencyObject.

Читайте также:  Xerox phaser 3635 mfp драйвер сканера windows 10

(Унаследовано от DependencyObject) CreateInstance()

Инициализирует новый экземпляр класса Freezable. Initializes a new instance of the Freezable class.

(Унаследовано от Freezable) CreateInstanceCore()

Если реализуется в производном классе, создает новый экземпляр производного класса Freezable. When implemented in a derived class, creates a new instance of the Freezable derived class.

(Унаследовано от Freezable) Equals(Object)

Определяет, является ли указанный DependencyObject эквивалентом текущего DependencyObject. Determines whether a provided DependencyObject is equivalent to the current DependencyObject.

(Унаследовано от DependencyObject) Freeze()

Делает текущий объект неизменяемым и присваивает его свойству IsFrozen значение true . Makes the current object unmodifiable and sets its IsFrozen property to true .

(Унаследовано от Freezable) FreezeCore(Boolean)

Делает данный объект Animatable неизменяемым или определяет, может ли он быть сделан неизменяемым. Makes this Animatable object unmodifiable or determines whether it can be made unmodifiable.

(Унаследовано от Animatable) GetAnimationBaseValue(DependencyProperty)

Возвращает не анимированное значение указанного объекта DependencyProperty. Returns the non-animated value of the specified DependencyProperty.

(Унаследовано от Animatable) GetAsFrozen()

Создает фиксированную копию объекта Freezable, используя базовые (не анимационные) значения свойств. 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.

(Унаследовано от Freezable) GetAsFrozenCore(Freezable)

Делает экземпляр зафиксированной копией указанного Freezable, используя базовые (без анимации) значения свойств. Makes the instance a frozen clone of the specified Freezable using base (non-animated) property values.

(Унаследовано от Freezable) GetCurrentValueAsFrozen()

Создает фиксированную копию объекта Freezable с использованием текущих значений свойств. Creates a frozen copy of the Freezable using current property values. Так как копия является фиксированной, копируются только ссылки на фиксированные вложенные объекты. Because the copy is frozen, any frozen sub-objects are copied by reference.

(Унаследовано от Freezable) GetCurrentValueAsFrozenCore(Freezable)

Создает текущий экземпляр замороженной копии указанного объекта Freezable. Makes the current instance a frozen clone of the specified Freezable. Если объект имеет анимированные свойства зависимостей, копируются их текущие анимированные значения. If the object has animated dependency properties, their current animated values are copied.

(Унаследовано от Freezable) GetHashCode()

Возвращает хэш-код для данного объекта DependencyObject. Gets a hash code for this DependencyObject.

(Унаследовано от DependencyObject) GetLocalValueEnumerator()

Создает специализированный перечислитель для определения свойств зависимостей, которые локально установили значения для данного DependencyObject. Creates a specialized enumerator for determining which dependency properties have locally set values on this DependencyObject.

(Унаследовано от DependencyObject) GetType()

Возвращает объект Type для текущего экземпляра. Gets the Type of the current instance.

(Унаследовано от Object) GetValue(DependencyProperty)

Возвращает текущее действующее значение свойства зависимостей в этом экземпляре DependencyObject. Returns the current effective value of a dependency property on this instance of a DependencyObject.

(Унаследовано от DependencyObject) InvalidateProperty(DependencyProperty)

Повторно вычисляет действующее значение для указанного свойства зависимостей. Re-evaluates the effective value for the specified dependency property.

(Унаследовано от DependencyObject) MemberwiseClone()

Создает неполную копию текущего объекта Object. Creates a shallow copy of the current Object.

(Унаследовано от Object) OnChanged()

Вызывается при изменении текущего объекта Freezable. Called when the current Freezable object is modified.

(Унаследовано от Freezable) OnFreezablePropertyChanged(DependencyObject, DependencyObject)

Обеспечивает создание соответствующих указателей контекста для элемента данных типа DependencyObjectType, который был только что задан. Ensures that appropriate context pointers are established for a DependencyObjectType data member that has just been set.

Читайте также:  Настройка параметров работы windows

(Унаследовано от Freezable) OnFreezablePropertyChanged(DependencyObject, DependencyObject, DependencyProperty)

Этот элемент поддерживает инфраструктуру Windows Presentation Foundation (WPF) и не предназначен для непосредственного использования из кода. This member supports the Windows Presentation Foundation (WPF) infrastructure and is not intended to be used directly from your code.

(Унаследовано от Freezable) OnPropertyChanged(DependencyPropertyChangedEventArgs)

Переопределяет реализацию DependencyObject для OnPropertyChanged(DependencyPropertyChangedEventArgs), чтобы также вызвать любой обработчик Changed в ответ на изменение свойства зависимостей типа Freezable. Overrides the DependencyObject implementation of OnPropertyChanged(DependencyPropertyChangedEventArgs) to also invoke any Changed handlers in response to a changing dependency property of type Freezable.

(Унаследовано от Freezable) ReadLocalValue(DependencyProperty)

Возвращает локальное значение свойства зависимостей, если таковое существует. Returns the local value of a dependency property, if it exists.

(Унаследовано от DependencyObject) ReadPreamble()

Обеспечивает доступ к Freezable из допустимого потока. Ensures that the Freezable is being accessed from a valid thread. Наследники объекта Freezable должны вызывать данный метод в начале любого API, который считывает элементы данных, не являющиеся свойствами зависимостей. Inheritors of Freezable must call this method at the beginning of any API that reads data members that are not dependency properties.

(Унаследовано от Freezable) SetCurrentValue(DependencyProperty, Object)

Задает значение свойства зависимостей, не меняя источник значения. Sets the value of a dependency property without changing its value source.

(Унаследовано от DependencyObject) SetValue(DependencyProperty, Object)

Задает локальное значение свойства зависимостей, указанного идентификатором этого свойства. Sets the local value of a dependency property, specified by its dependency property identifier.

(Унаследовано от DependencyObject) SetValue(DependencyPropertyKey, Object)

Задает локальное значение свойства зависимости только для чтения, определяемое идентификатором DependencyPropertyKey свойства зависимостей. Sets the local value of a read-only dependency property, specified by the DependencyPropertyKey identifier of the dependency property.

(Унаследовано от DependencyObject) ShouldSerializeProperty(DependencyProperty)

Возвращает значение, которое указывает, следует ли процессам сериализации выполнять сериализацию значения для предоставленного свойства зависимостей. Returns a value that indicates whether serialization processes should serialize the value for the provided dependency property.

(Унаследовано от DependencyObject) ToString()

Создает строковое представление этого объекта на базе текущих значений региональных параметров. Creates a string representation of this object based on the current culture settings.

(Унаследовано от Camera) ToString(IFormatProvider)

Создает строковое представление объекта Camera. Creates a string representation of the Camera.

(Унаследовано от Camera) VerifyAccess()

Обеспечивает наличие у вызывающего потока доступ к этому DispatcherObject. Enforces that the calling thread has access to this DispatcherObject.

(Унаследовано от DispatcherObject) WritePostscript()

Вызывает событие Changed для объекта Freezable и вызывает его метод OnChanged(). Raises the Changed event for the Freezable and invokes its OnChanged() method. Классы, производные от Freezable, должны вызывать этот метод в конце любого API, который изменяет члены класса, не сохраненные в виде свойств зависимостей. Classes that derive from Freezable should call this method at the end of any API that modifies class members that are not stored as dependency properties.

(Унаследовано от Freezable) WritePreamble()

Проверяет, что объект Freezable не заморожен и доступ к нему осуществляется из допустимого контекста потока. Verifies that the Freezable is not frozen and that it is being accessed from a valid threading context. Наследники объекта Freezable должны вызывать данный метод в начале любого API, который выполняет запись в элементах данных, не являющихся свойствами зависимостей. Freezable inheritors should call this method at the beginning of any API that writes to data members that are not dependency properties.

(Унаследовано от Freezable)

События

Происходит, когда изменяется класс Freezable или объект, который входит в его состав. Occurs when the Freezable or an object it contains is modified.

(Унаследовано от Freezable)

Явные реализации интерфейса

Форматирует значение текущего экземпляра, используя указанный формат. Formats the value of the current instance using the specified format.

Оцените статью