Model Visual3D Класс
Определение
Предоставляет объект Visual3D, отображающий объекты Model3D. Provides a Visual3D that renders Model3D objects.
Примеры
В следующем примере показан экземпляр ModelVisual3D в разметке. The following example shows an instance of ModelVisual3D in markup. myTeapot ссылается на MeshGeometry3D определенный внешний. myTeapot refers to a MeshGeometry3D defined externally. Вы можете заменить любую геометрию своей собственной. You can substitute any geometry of your own.
Комментарии
Предоставляет службы и свойства, общие для всех визуальных объектов, включая проверку попадания, преобразование координат и вычисления ограничивающих прямоугольников. Provides services and properties that are common to all visual objects, including hit-testing, coordinate transformation, and bounding-box calculations.
ModelVisual3DКласс имеет Children свойство, которое позволяет построить древовидную структуру ModelVisual3D объектов. The ModelVisual3D class has a Children property that enables you to build a tree structure of ModelVisual3D objects.
ModelVisual3D объекты оптимизируются как узлы сцены. ModelVisual3D objects are optimized as scene nodes. Например, они кэшируют границы. For example, they cache bounds. Каждый раз, когда это возможно, используйте ModelVisual3D объекты для уникальных экземпляров объектов в сцене. Whenever you can, use ModelVisual3D objects for unique instances of objects within your scene. Это использование отличается от Model3D объектов, представляющих собой упрощенные объекты, которые оптимизированы для совместного использования и повторно используются. This usage contrasts with that of Model3D objects, which are lightweight objects that are optimized to be shared and reused. Например, используйте Model3D объект для создания модели автомобиля; и используйте десять ModelVisual3D объектов для размещения десяти автомобилей в сцене. For example, use a Model3D object to build a model of a car; and use ten ModelVisual3D objects to place ten cars in your scene.
Конструкторы
Инициализирует новый экземпляр класса ModelVisual3D. Initializes a new instance of the ModelVisual3D class.
Идентифицирует свойство зависимостей Content. Identifies the Content dependency property.
Идентифицирует свойство зависимостей Transform. Identifies the Transform dependency property.
Свойства
Получает коллекцию дочерних объектов Visual3D. Gets a collection of child Visual3D objects.
Получает или задает модель, которая включает содержимое объекта ModelVisual3D. Gets or sets the model that comprises the content of the ModelVisual3D.
Возвращает DependencyObjectType, который создает обертку для типа CLR CLR данного экземпляра. Gets the DependencyObjectType that wraps the CLR CLR type of this instance.
Возвращает объект Dispatcher, с которым связан этот объект DispatcherObject. Gets the Dispatcher this DispatcherObject is associated with.
Возвращает значение, указывающее, имеет ли объект Visual3D анимированные свойства. Gets a value that indicates whether this Visual3D has any animated properties.
Получает значение, указывающее, является ли этот экземпляр в данный момент запечатанным (доступным только для чтения). Gets a value that indicates whether this instance is currently sealed (read-only).
Получает или задает набор преобразований на объекте ModelVisual3D. Gets or sets the transform set on the ModelVisual3D.
Возвращает число дочерних объектов. Returns the number of child objects.
Получает или задает объект Model3D для отображения. Gets or sets the Model3D object to render.
Методы
Определяет связь «родитель-потомок» между двумя визуальными объектами 3-D. Defines the parent-child relationship between two 3-D visuals.
Применяет результат заданного объекта AnimationClock к указанному свойству зависимостей. Applies the effect of a given AnimationClock to a given dependency property.
Применяет результат заданного объекта AnimationClock к указанному свойству зависимостей. Applies the effect of a given AnimationClock to a given dependency property. Эффект нового объекта AnimationClock на любых текущих анимациях определяется значением параметра handoffBehavior . The effect of the new AnimationClock on any current animations is determined by the value of the handoffBehavior parameter.
Инициирует последовательность анимации для объекта DependencyProperty на основе указанной временной шкалы AnimationTimeline. Initiates an animation sequence for the DependencyProperty object, based on the specified AnimationTimeline.
Инициирует последовательность анимации для объекта DependencyProperty на основе заданных объектов AnimationTimeline и HandoffBehavior. Initiates an animation sequence for the DependencyProperty object, based on both the specified AnimationTimeline and HandoffBehavior.
Определяет, имеет ли вызывающий поток доступ к этому DispatcherObject. Determines whether the calling thread has access to this DispatcherObject.
Очищает локальное значение свойства. Clears the local value of a property. Очищаемое свойство задается идентификатором DependencyProperty. The property to be cleared is specified by a DependencyProperty identifier.
Очищает локальное значение доступного только для чтения свойства. Clears the local value of a read-only property. Очищаемое свойство задается ключом DependencyPropertyKey. The property to be cleared is specified by a DependencyPropertyKey.
Приводит значение указанного свойства зависимостей. 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.
Определяет, является ли указанный DependencyObject эквивалентом текущего DependencyObject. Determines whether a provided DependencyObject is equivalent to the current DependencyObject.
Возвращает общего предка визуального объекта и другой указанный виртуальный объект. Returns the common ancestor of the visual object and another specified visual object.
Возвращает базовое значение указанного объекта DependencyProperty. Retrieves the base value of the specified DependencyProperty object.
Возвращает хэш-код для данного объекта DependencyObject. Gets a hash code for this DependencyObject.
Создает специализированный перечислитель для определения свойств зависимостей, которые локально установили значения для данного DependencyObject. Creates a specialized enumerator for determining which dependency properties have locally set values on this DependencyObject.
Возвращает объект Type для текущего экземпляра. Gets the Type of the current instance.
Возвращает текущее действующее значение свойства зависимостей в этом экземпляре DependencyObject. Returns the current effective value of a dependency property on this instance of a DependencyObject.
Возвращает указанный объект Visual3D в родительскую коллекцию. Returns the specified Visual3D in the parent collection.
Повторно вычисляет действующее значение для указанного свойства зависимостей. Re-evaluates the effective value for the specified dependency property.
Определяет, является ли визуальный объект предком потомка визуального объекта. Determines whether the visual object is an ancestor of the descendant visual object.
Определяет, является ли визуальный объект потомком для предка визуального объекта. Determines whether the visual object is a descendant of the ancestor visual object.
Создает неполную копию текущего объекта Object. Creates a shallow copy of the current Object.
Вызывается каждый раз, когда обновляется действительное значение любого свойства зависимостей для данного DependencyObject. Invoked whenever the effective value of any dependency property on this DependencyObject has been updated. Конкретное измененное свойство зависимостей сообщается в данных события. The specific dependency property that changed is reported in the event data.
Вызывается при изменении коллекции Visual3DCollection визуального объекта. Called when the Visual3DCollection of the visual object is modified.
Вызывается, если изменяется родительский объект визуального объекта 3-D. Called when the parent of the 3-D visual object is changed.
Возвращает локальное значение свойства зависимостей, если таковое существует. Returns the local value of a dependency property, if it exists.
Удаляет связь «родитель-потомок» между двумя визуальными объектами 3-D. Removes the parent-child relationship between two 3-D visuals.
Задает значение свойства зависимостей, не меняя источник значения. Sets the value of a dependency property without changing its value source.
Задает локальное значение свойства зависимостей, указанного идентификатором этого свойства. Sets the local value of a dependency property, specified by its dependency property identifier.
Задает локальное значение свойства зависимости только для чтения, определяемое идентификатором DependencyPropertyKey свойства зависимостей. Sets the local value of a read-only dependency property, specified by the DependencyPropertyKey identifier of the dependency property.
Возвращает значение, которое указывает, следует ли процессам сериализации выполнять сериализацию значения для предоставленного свойства зависимостей. Returns a value that indicates whether serialization processes should serialize the value for the provided dependency property.
Возвращает строку, представляющую текущий объект. Returns a string that represents the current object.
Возвращает преобразование, которое может использоваться для преобразования координат из этого объекта Visual3D к заданному предку Visual объекта. Returns a transform that can be used to transform coordinates from this Visual3D object to the specified Visual ancestor of the object.
Возвращает преобразование, которое может использоваться для преобразования координат из этого объекта Visual3D к заданному предку Visual3D объекта. Returns a transform that can be used to transform coordinates from this Visual3D object to the specified Visual3D ancestor of the object.
Возвращает преобразование, которое может использоваться для преобразования координат из этого объекта Visual3D в указанный Visual3D объект спуска. Returns a transform that can be used to transform coordinates from this Visual3D object to the specified Visual3D descent object.
Обеспечивает наличие у вызывающего потока доступ к этому DispatcherObject. Enforces that the calling thread has access to this DispatcherObject.
Явные реализации интерфейса
Добавляет дочерний объект. Adds a child object.
Добавляет текстовое содержимое узла в объект. Adds the text content of a node to the object.
System. Windows. Media. Media3D Namespace
Contains types that support 3-D presentation in Windows Presentation Foundation (WPF) applications.
Classes
Base class from which all concrete affine 3-D transforms — translations, rotations, and scale transformations — derive.
Light object that applies light to objects uniformly, regardless of their shape.
Represents a 3-D rotation of a specified angle about a specified axis.
Specifies what portion of the 3D scene is rendered by the Viewport3DVisual or Viewport3D element.
Represents a container for Visual3D objects.
Allows the application of a 2-D brush, like a SolidColorBrush or TileBrush, to a diffusely-lit 3-D model.
Light object that projects its effect along a direction specified by a Vector3D.
Applies a Brush to a 3-D model so that it participates in lighting calculations as if the Material were emitting light equal to the color of the Brush.
Provides 2-D to 3-D transformation support.
Provides generalized transformation support for 3-D objects.
Represents an ordered collection of GeneralTransform3D objects.
Represents a GeneralTransform3D that is a composite of the transforms in its GeneralTransform3DCollection.
Provides 3-D to 2-D transformation support.
Classes that derive from this abstract base class define 3D geometric shapes. The Geometry3D class of objects can be used for hit-testing and rendering 3D graphic data.
Renders a Geometry3D with the specified Material.
Abstract class that represents the parameters of a 3D hit test.
Model3D object that represents lighting applied to a 3-D scene.
Abstract base class for materials.
Collection of Material objects.
Represents a Material that is a composite of the Materials in its collection.
Converts instances of other types to and from instances of Matrix3D.
Camera which specifies the view and projection transforms as Matrix3D objects.
Creates a transformation specified by a Matrix3D, used to manipulate objects or coordinate systems in 3-D world space.
Triangle primitive for building a 3-D shape.
Provides functionality for 3-D models.
Represents an ordered collection of Model3D objects.
Enables using a number of 3-D models as a unit.
Renders a 3-D model that supports input, focus, and events.
Provides a Visual3D that renders Model3D objects.
Represents an orthographic projection camera.
Represents a perspective projection camera.
Represents an ordered collection of Point3D objects.
Converts instances of other types to and from Point3DCollection instances.
Converts instances of other types to and from a Point3D structure.
Converts instances of other types to and from a Point4D structure.
Represents a light source that has a specified position in space and projects its light in all directions.
Abstract base class that represents a light object that has a position in space and projects its light in all directions.
An abstract base class for perspective and orthographic projection cameras.
Converts instances of other types to and from instances of Quaternion.
Represents a rotation transformation defined as a quaternion.
Specifies the parameters of a hit test along a ray.
Represents the result of a hit test along a ray.
Represents an intersection between a ray hit test and a MeshGeometry3D.
Converts instances of other types to and from instances of Rect3D.
Specifies a rotation transformation.
Specifies the 3-D rotation to be used in a transformation.
Scales an object in the three-dimensional x-y-z plane, starting from a defined center point. Scale factors are defined in x-, y-, and z- directions from this center point.
Converts instances of other types to and from a Size3D structure.
Allows a 2-D brush, like a SolidColorBrush or TileBrush, to be applied to a specularly-lit 3-D model.
Light object that projects its effect in a cone-shaped area along a specified direction.
Provides a parent class for all three-dimensional transformations, including translation, rotation, and scale transformations.
Represents an ordered collection of Transform3D objects.
Represents a transformation that is a composite of the Transform3D children in its Transform3DCollection.
Translates an object in the three-dimensional x-y-z plane.
Collection of Vector3D objects.
Converts instances of other types to and from instances of Vector3DCollection.
Converts instances of other types to and from a Vector3D structure.
Renders the 2-D children within the specified 3-D viewport bounds.
Renders the Visual3D children within the specified 2D viewport bounds.
Provides services and properties that are common to visual 3-D objects, including hit-testing, coordinate transformation, and bounding box calculations.
Represents an ordered collection of Visual3D objects.
Structs
Represents a 4 x 4 matrix used for transformations in 3-D space.
Enumerates items in a collection.
Represents an x-, y-, and z-coordinate point in 3-D space.
Represents an x-, y-, z-, and w-coordinate point in world space used in performing transformations with non-affine 3-D matrices.
Structure that represents a rotation in three dimensions.
Represents a 3-D rectangle: for example, a cube.
Data structure that describes the size of a three-dimensional object.
