STK Graphics PrimitivesSend comments on this topic.
Add Method (IAgStkGraphicsPrimitiveManager)
See Also
Primitive
The primitive to add to the manager.
Windows





Windows & Linux

Description

Adds a primitive to the manager. Primitives must be added to the manager to be rendered.

Syntax

[Visual Basic .NET]
Public Sub Add( _
    ByVal Primitive As IAgStkGraphicsPrimitive _
)
[C#]
public void Add(
    IAgStkGraphicsPrimitive Primitive
);
[Managed C++]
public: void Add(
    IAgStkGraphicsPrimitive ^ Primitive
);
[Unmanaged C++]
public: HRESULT Add(
    IAgStkGraphicsPrimitive * Primitive
);
[Java]
public void add(
    IAgStkGraphicsPrimitive Primitive
);
[Python - STK API ]
def Add(self, Primitive:"IAgStkGraphicsPrimitive") -> None:

Parameters

Primitive
The primitive to add to the manager.

Remarks

When a primitive is added to the manager, the scene is not automatically re-rendered, so the primitive doesn't immediately show up. The scene can be rendered explicitly using SceneManager.Render or Scene.Render. For best performance, add several primitives to the manager before re-rendering.

When a primitive is added to the manager, it appears in all scenes by default. To limit the number of scenes, assign a Scene Display Condition to the primitive's Display Condition.

See Also

© 2024 Analytical Graphics, Inc. All Rights Reserved.