C# Class WPF.JoshSmith.Panels.Viewport3DEx

A Viewport3D subclass that shields Panel3D from needing to arrange the 3D models in a specific order. For models to be truly transparent, and have the models 'behind' them be visible, they must exist in the Children collection in the opposite order of the way you see them on-screen. The front model must be the last child, and the back model must be the first child (not including the scene's light source).
Inheritance: System.Windows.Controls.Viewport3D
Exibir arquivo Open project: Warewolf-ESB/Warewolf Class Usage Examples

Private Properties

Property Type Description
AddToBack void
AddToFront void
GetModelAt System.Windows.Media.Media3D.Viewport2DVisual3D
GetModels IEnumerable
GetVisualIndex int
RemoveAllModels void
RemoveBackModel System.Windows.Media.Media3D.Viewport2DVisual3D
RemoveFrontModel System.Windows.Media.Media3D.Viewport2DVisual3D

Private Methods

Method Description
AddToBack ( System.Windows.Media.Media3D.Viewport2DVisual3D model ) : void

Adds the specified model to the rear of the 3D scene.

AddToFront ( System.Windows.Media.Media3D.Viewport2DVisual3D model ) : void

Adds the specified model to the front of the 3D scene.

GetModelAt ( int modelIndex ) : System.Windows.Media.Media3D.Viewport2DVisual3D

Returns the model at the specified model index.

GetModels ( ) : IEnumerable

Returns an enumerable object with which the models are enumerated, from front to back.

GetVisualIndex ( System.Windows.Media.Media3D.Viewport2DVisual3D model ) : int

Returns the index of the specified model where 0 is the front item. If the model is not in the scene, returns -1.

RemoveAllModels ( ) : void

Removes all of the models from the scene.

RemoveBackModel ( ) : System.Windows.Media.Media3D.Viewport2DVisual3D

Removes and returns the back model in the scene.

RemoveFrontModel ( ) : System.Windows.Media.Media3D.Viewport2DVisual3D

Removes and returns the front model in the scene.