AGI STK Graphics 11 Send comments on this topic.
Position Property (IAgStkGraphicsModelPrimitive)
See Also  Example





Description

Gets or sets the position of the model. The position is defined in the model's Reference Frame. The array contains the components of the position in the order x, y, z.

Property type

Read-write property

Syntax

[Visual Basic .NET]
Public Property Position() As System.Array

[C#]
public System.Array Position {get; set;}

[Managed C++]
public: __property System::Array^ get_Position();
public: __property void set_Position(
System::Array ^
);

[Unmanaged C++]
public: HRESULT get_Position(
SAFEARRAY ** ppRetVal
);
public: HRESULT put_Position(
SAFEARRAY * pNewPosition
);

[Java]
public Object[] getPosition();public void setPosition(
Object[]
);

Remarks

If the model's Automatically Compute Bounding Sphere property is true when setting the model's position, the Center of the model's Bounding Sphere is set to the new position. Otherwise, it is the caller's responsibility to update the model's Bounding Sphere to a sphere that encompasses the model.

Example

Shows the format of the model's Position property.
[C#] Copy Code
Array position = new object[] 

    31378.1
    0
    0 
}; 
 
model.Position = position; 
 

Shows the format of the model's Position property.
[Visual Basic .NET] Copy Code
Dim position As Array = New Object() {31378.1, 0, 0}

model.Position = position

See Also

© 2016 All Rights Reserved.

STK Programming Interface 11.0.1