C# Класс Panel3D.ElementWithDescription

Наследование: IModelVisual3D
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
CreateTextLabel3D ( string text, System.Windows.Media.Brush textColor, bool isDoubleSided, double height, System.Windows.Media.Media3D.Point3D basePoint, bool isBasePointCenterPoint, System.Windows.Media.Media3D.Vector3D vectorOver, System.Windows.Media.Media3D.Vector3D vectorUp ) : System.Windows.Media.Media3D.ModelVisual3D

Creates a ModelVisual3D containing a text label.

Two vectors: vectorOver and vectorUp are creating the surface on which we are drawing the text. Both those vectors are used for calculation of label size, so it is resonable that each co-ordinate should be 0 or 1. e.g. [1,1,0] or [1,0,1], etc...

ElementWithDescription ( double x, double y, double z, double size, string description ) : System.Windows
GetModelVisual3D ( ModelVisual3DFilter filterSettings ) : System.Windows.Media.Media3D.ModelVisual3D
GetUIElement ( ModelVisual3DFilter filterSettings, System.Windows.Controls.Viewport3D destinationViewport3D ) : UIElement
UpdateViewToLookDirection ( System.Windows.Media.Media3D.Vector3D lookDirection ) : void

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

CreateTextLabel3D() публичный статический Метод

Creates a ModelVisual3D containing a text label.
Two vectors: vectorOver and vectorUp are creating the surface on which we are drawing the text. Both those vectors are used for calculation of label size, so it is resonable that each co-ordinate should be 0 or 1. e.g. [1,1,0] or [1,0,1], etc...
public static CreateTextLabel3D ( string text, System.Windows.Media.Brush textColor, bool isDoubleSided, double height, System.Windows.Media.Media3D.Point3D basePoint, bool isBasePointCenterPoint, System.Windows.Media.Media3D.Vector3D vectorOver, System.Windows.Media.Media3D.Vector3D vectorUp ) : System.Windows.Media.Media3D.ModelVisual3D
text string The string to be drawn
textColor System.Windows.Media.Brush The color of the text.
isDoubleSided bool Visible from both sides?
height double Height of the characters
basePoint System.Windows.Media.Media3D.Point3D The base point of the label
isBasePointCenterPoint bool if set to true the base point /// is center point of the label.
vectorOver System.Windows.Media.Media3D.Vector3D Horizontal direction of the label
vectorUp System.Windows.Media.Media3D.Vector3D Vertical direction of the label
Результат System.Windows.Media.Media3D.ModelVisual3D

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

public ElementWithDescription ( double x, double y, double z, double size, string description ) : System.Windows
x double
y double
z double
size double
description string
Результат System.Windows

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

public GetModelVisual3D ( ModelVisual3DFilter filterSettings ) : System.Windows.Media.Media3D.ModelVisual3D
filterSettings ModelVisual3DFilter
Результат System.Windows.Media.Media3D.ModelVisual3D

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

public GetUIElement ( ModelVisual3DFilter filterSettings, System.Windows.Controls.Viewport3D destinationViewport3D ) : UIElement
filterSettings ModelVisual3DFilter
destinationViewport3D System.Windows.Controls.Viewport3D
Результат UIElement

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

public UpdateViewToLookDirection ( System.Windows.Media.Media3D.Vector3D lookDirection ) : void
lookDirection System.Windows.Media.Media3D.Vector3D
Результат void