AGI STK Objects 11 Send comments on this topic.
IAgVOModelFile Interface





Description

IAgVOModelFile Interface. Used to specify the model's file.

Public Properties

Public Property Filename Path and filename of the model file.
Public Property FilePath Absolute path and filename of the model file.

Example

Configure 3D model file
[C#] Copy Code
// Set new ModelFile.Filename 
model.ModelType = AgEModelType.eModelFile; 
IAgVOModelFile modelFile = model.ModelData as IAgVOModelFile; 
modelFile.Filename = @"\STKData\VO\Models\Space\alexis.mdl"
 
// Configure basic settings 
model.Visible = true
model.ScaleValue = 4.800
 

Configure 3D model level of detail
[C#] Copy Code
// Configure level of details 
IAgVODetailThreshold detail = model.DetailThreshold; 
detail.EnableDetailThreshold = true
 
// (assuming unit preferences set to km) 
detail.All = 2.51189
detail.ModelLabel = 158489
detail.MarkerLabel = 2.51189e+006
detail.Marker = 2.511e+007
detail.Point = 1e+012
 

Configure 3D model file
[Visual Basic .NET] Copy Code
' Set new ModelFile.Filename
model.ModelType = AgEModelType.eModelFile
Dim modelFile As IAgVOModelFile = TryCast(model.ModelData, IAgVOModelFile)
modelFile.Filename = "\STKData\VO\Models\Space\alexis.mdl"

' Configure basic settings
model.Visible = True
model.ScaleValue = 4.8

Configure 3D model level of detail
[Visual Basic .NET] Copy Code
' Configure level of details
Dim detail As IAgVODetailThreshold = model.DetailThreshold
detail.EnableDetailThreshold = True

' (assuming unit preferences set to km)
detail.All = 2.51189
detail.ModelLabel = 158489
detail.MarkerLabel = 2511890
detail.Marker = 25110000
detail.Point = 1000000000000

CoClasses that Implement IAgVOModelFile

© 2016 Analytical Graphics, Inc. All Rights Reserved.

STK Programming Interface 11.0.1