ModelWidget

Description

sealed class Tinman.AddOns.Widgets.ModelWidget

Derived from

Widget abstract
ILightingContainer

Full source code is included in the Tinman 3D SDK download.

A GUI widget that displays a 3D IModel.

Public / Constants

Label​Bookmarks


[Localized]
public constant LabelBookmarks → ("Bookmarks":string)

Label for the bookmarks panel.

Label​Camera​Path


[Localized]
public constant LabelCameraPath → ("Camera Path":string)

Label for the camera path panel.

Label​Center​View


[Localized]
public constant LabelCenterView → ("Center view":string)

Label for centering the view on the model.

Label​Debug​Mode


[Localized]
public constant LabelDebugMode → ("Enable visual material debug mode?":string)

Label for toggling material debug mode.

Label​Lighting


[Localized]
public constant LabelLighting → ("Lighting":string)

Label for the lighting panel.

Label​Model


[Localized]
public constant LabelModel → ("Model":string)

Label for the model panel.

Label​Performance


[Localized]
public constant LabelPerformance → ("Performance":string)

Label for the performance panel.

Label​Reset​View


[Localized]
public constant LabelResetView → ("Reset view":string)

Label for resetting the model view.

Label​Shadow​Mapping


[Localized]
public constant LabelShadowMapping → ("Shadow Mapping":string)

Label for the shadow mapping panel.

Label​Show​Axes


[Localized]
public constant LabelShowAxes → ("Axes":string)

Label for toggling display of the coordinate axes.

Label​Show​Bounding​Box


[Localized]
public constant LabelShowBoundingBox → ("Box":string)

Label for toggling display of the bounding box.

Label​Show​Bounding​Sphere


[Localized]
public constant LabelShowBoundingSphere → ("Sphere":string)

Label for toggling display of the bounding sphere.

Label​Show​Ground


[Localized]
public constant LabelShowGround → ("Ground":string)

Label for toggling display of the ground disc.

Label​Show​Lighting


[Localized]
public constant LabelShowLighting → ("Lighting":string)

Label for toggling model lighting.

Label​Show​Normals


[Localized]
public constant LabelShowNormals → ("Normals":string)

Label for toggling display of model surface normals.

Label​Show​Octree


[Localized]
public constant LabelShowOctree → ("Octree":string)

Label for toggling display of model octree.

Label​Show​Wireframe


[Localized]
public constant LabelShowWireframe → ("Wireframe":string)

Label for toggling display of wireframe mode.

Public / Constructors

Model​Widget


public constructor ModelWidget → ()

Creates a new instance of ModelWidget.

Public / Methods

Load​Model


public method LoadModel → (1)

modelReader in : IModelReader own

The model to view or null.

returns → ModelWidget

this

Sets the model to view in the widget.

This method will return instantly and the given model data will be loaded in the background.

Reset​Camera


public method ResetCamera → (1)

selectRoot in : bool

Select the root model?

Resets the camera to the standard position for the model.

Public / Attributes

Bookmarks​Gui


public attribute BookmarksGui → (get)

value : BookmarksGui

The bookmarks GUI.

Returns the bookmarks GUI.

Camera​Azerty


public attribute CameraAzerty → (get,set)

value : bool

true to use the alternative binding, false to use the default one.

Use the alternative key binding for free camera control?

The default value is false.

Flags


public attribute Flags → (get,set)

value : ModelWidgetFlags

The model widget flags.

The current model widget flags.

Lighting


public attribute Lighting → (get,set)

value : Lighting

[not-null]
The lighting settings.

The global settings for high-dynamic range lighting.

Configuration

Config


public static attribute Config → (get)

value : IConfigurator<IWidget>

[not-null]
The configurator object.

The configurator object for this type.

Logging

Logger


public static readonly attribute Logger → (ILogger)

The logger object of this class.