C# 클래스 Panel3D.ElementWithDescription

상속: IModelVisual3D
파일 보기 프로젝트 열기: loic-lavergne/mckineap 1 사용 예제들

공개 메소드들

메소드 설명
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