AGI STK Graphics 11 Send comments on this topic.
Scale Property (IAgStkGraphicsSolidPrimitive)
See Also 





Description

Gets or sets a non-uniform scale that is applied to the solid to increase or decrease its rendered size. The array contains the scale for each component of the size in the order x scale, y scale, z scale.

Property type

Read-write property

Syntax

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

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

[Managed C++]
public: __property System::Array^ get_Scale();
public: __property void set_Scale(
System::Array ^
);

[Unmanaged C++]
public: HRESULT get_Scale(
SAFEARRAY ** ppRetVal
);
public: HRESULT put_Scale(
SAFEARRAY * pNewScale
);

[Java]
public Object[] getScale();public void setScale(
Object[]
);

Remarks

A Scale of (1, 1, 1) renders the solid using its actual size. Values greater than 1 for a component increase the size of the rendered solid in the corresponding direction in the primitive's Reference Frame. Values less than 1 decrease the size.

If the solid's Automatically Compute Bounding Sphere property is true when setting Scale, the Radius of the solid's Bounding Sphere is set to fit around the scaled solid. Otherwise, it is the caller's responsibility to update the solid's Bounding Sphere to a sphere that encompasses the scaled solid.

See Also

© 2016 All Rights Reserved.

STK Programming Interface 11.0.1