AGI STK Graphics 11Send comments on this topic.
LoadWithStringUriAndUpAxis Method (IAgStkGraphicsModelPrimitive)
See Also 
Uri
The path to the model file.
UpAxis
The axis representing the up direction of the model file.
Windows






Windows & Linux

Description

For convenience. Loads a COLLADA (DAE) or AGI MDL (MDL) model using a file path.

Syntax

[Visual Basic .NET]
Public Sub LoadWithStringUriAndUpAxis( _
   ByVal Uri As String, _
   ByVal UpAxis As AgEStkGraphicsModelUpAxis _
) 
[C#]
public void LoadWithStringUriAndUpAxis(
   string Uri,
   AgEStkGraphicsModelUpAxis UpAxis
);
[Managed C++]
public: void LoadWithStringUriAndUpAxis(
   String __gc ^ Uri,
   AgEStkGraphicsModelUpAxis UpAxis
);
[Java]
public  loadWithStringUriAndUpAxis(
   String Uri,
   AgEStkGraphicsModelUpAxis UpAxis
);
[Unmanaged C++]
public: HRESULT LoadWithStringUriAndUpAxis(
   BSTR Uri,
   AgEStkGraphicsModelUpAxis UpAxis
);

Parameters

Uri
The path to the model file.
UpAxis
MemberValueDescription
eStkGraphicsModelUpAxisX0The positive X axis.
eStkGraphicsModelUpAxisY1The positive Y axis.
eStkGraphicsModelUpAxisZ2The positive Z axis.
eStkGraphicsModelUpAxisNegativeX3The negative X axis.
eStkGraphicsModelUpAxisNegativeY4The negative Y axis.
eStkGraphicsModelUpAxisNegativeZ5The negative Z axis.
The axis representing the up direction of the model file.

Remarks

If the model includes articulations, they can be accessed using Articulations.

If the model's Automatically Compute Bounding Sphere property is true, Bounding Sphere is set to fit around the model. Otherwise, it is the caller's responsibility to update the model's Bounding Sphere to a sphere that encompasses the model.

Loading a new model does not change the model's Position, Orientation, or Scale.

See Also

© 2018 Analytical Graphics, Inc. All Rights Reserved.