Compartir a través de


Class LoadModelResult

Result data for a load model request.

class Microsoft::Azure::RemoteRendering::LoadModelResult final

Methods

GetLoadedObjectsOfType

Retrieves all objects of the given type that were loaded as part of this model.

A Result.InvalidType error occurs if 'type' is outside the specified range.

auto GetLoadedObjectsOfType(Microsoft::Azure::RemoteRendering::ObjectType type, std::vector<ApiHandle<Microsoft::Azure::RemoteRendering::ObjectBase>> & out) noexcept -> Microsoft::Azure::RemoteRendering::Status;

Parameters

Name Type Description
type ObjectType The requested type must specify a valid object type such as or .

Returns

Type Description
System.Collections.Generic.IReadOnlyList<Microsoft.Azure.RemoteRendering.ObjectBase>

GetLoadedResourceOfType

Retrieves all resources of the given type that were loaded as part of this model.

A Result.InvalidType error occurs if 'type' is outside the specified range.

auto GetLoadedResourceOfType(Microsoft::Azure::RemoteRendering::ObjectType type, std::vector<ApiHandle<Microsoft::Azure::RemoteRendering::ResourceBase>> & out) noexcept -> Microsoft::Azure::RemoteRendering::Status;

Parameters

Name Type Description
type ObjectType The requested type must specify a valid resource type such as or .

Returns

Type Description
System.Collections.Generic.IReadOnlyList<Microsoft.Azure.RemoteRendering.ResourceBase>

Properties

Root

Root Entity of the loaded model.

This is the top most Entity node in the model structure. You can place the model by setting this node's transform (see Entity.Position, Entity.Rotation, Entity.Scale).

auto GetRoot() const noexcept -> ApiHandle<Microsoft::Azure::RemoteRendering::Entity>;

See also