C# Class Panel3D.ElementWithDescription

Inheritance: IModelVisual3D
Afficher le fichier Open project: loic-lavergne/mckineap Class Usage Examples

Méthodes publiques

Méthode Description
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

Method Details

CreateTextLabel3D() public static méthode

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
Résultat System.Windows.Media.Media3D.ModelVisual3D

ElementWithDescription() public méthode

public ElementWithDescription ( double x, double y, double z, double size, string description ) : System.Windows
x double
y double
z double
size double
description string
Résultat System.Windows

GetModelVisual3D() public méthode

public GetModelVisual3D ( ModelVisual3DFilter filterSettings ) : System.Windows.Media.Media3D.ModelVisual3D
filterSettings ModelVisual3DFilter
Résultat System.Windows.Media.Media3D.ModelVisual3D

GetUIElement() public méthode

public GetUIElement ( ModelVisual3DFilter filterSettings, System.Windows.Controls.Viewport3D destinationViewport3D ) : UIElement
filterSettings ModelVisual3DFilter
destinationViewport3D System.Windows.Controls.Viewport3D
Résultat UIElement

UpdateViewToLookDirection() public méthode

public UpdateViewToLookDirection ( System.Windows.Media.Media3D.Vector3D lookDirection ) : void
lookDirection System.Windows.Media.Media3D.Vector3D
Résultat void