ModelPose

Description

sealed class Tinman.Engine.Models.ModelPose

Derived from

VersionedBase abstract

A model pose modifies an existing hierarchy of IModel objects.

Public / Methods

Clear

2 overloads


public method Clear1 → ()

Clears all model poses.


public method Clear2 → (1)

model in : IModel

[not-null]
The model.

Clears the pose of the given model.

Flags

2 overloads


[Pure]
public method Flags1 → (1)

model in : IModel

[not-null]
The model.

returns → ModelPoseFlags

The model pose flags.

Returns the pose flags of the given model.


public method Flags2 → (3)

model in : IModel

[not-null]
The model.

flags in : ModelPoseFlags

The pose flags.

op opt : int32 = 0

The update operation:
< 0 : Remove flags in.
> 0 : Add flags in.
= 0 : Set flags in.

Updates the pose flags for the given model.

Material

2 overloads


[Pure]
public method Material1 → (1)

model in : IModel

[not-null]
The model.

returns → IMaterial

The custom material or null.

Returns the custom material of the given model.


public method Material2 → (3)

model in : IModel

[not-null]
The model.

material in : IMaterial

The material or null.

recursive opt : bool = false

Set material for descendant models, too?

Sets the material for the given model.

Select

2 overloads


[Pure]
public method Select1 → (1)

model in : IModel

[not-null]
The group model.

returns → int32

Index of the selected child of model in or -1 if none.

Returns the selected child of the given group model.


public method Select2 → (2)

model in : IModel

[not-null]
The group model.

child in : int32

Index of the child to select or negative to clear the current selection, if any.

Selects a child of a group model for rendering.

See also

ModelFlags.Group

Transform

2 overloads


[Pure]
public method Transform1 → (1)

model in : IModel

[not-null]
The model.

returns → AffineTransform

The custom transformation matrix.

Returns the custom transformation of the given model.

The custom transformation is applied after the animation keyframe transform (if present) and before the child-to-parent transform of the parent model (if existent).


public method Transform2 → (2)

model in : IModel

[not-null]
The model.

transform in : AffineTransform

The custom transformation to apply (see remarks).

Sets the custom transformation for the given model.

The custom transformation is applied after the animation keyframe transform (if present) and before the child-to-parent transform of the parent model (if existent).