WSF
WsfVisualization Class Reference

#include <WsfVisualization.hpp>

Classes

struct  Behavior
 Defines a platform's behavior. More...

Public Types

typedef std::map< size_t, BehaviorBehaviorMap

Public Member Functions

int GetBehavior (size_t aPlatformIndex)
void SetBehavior (double aSimTime, Behavior aBehavior)
 Sets the behavior to be visualized for a platform.
const BehaviorMapGetBehaviors () const

Static Public Member Functions

static std::unique_ptr< UtScriptClass > CreateScriptClass (UtScriptTypes *aScriptTypesPtr)
static WsfVisualizationGetInstance ()
static void Destroy ()

Static Public Attributes

static UtCallbackListN< void(double, Behavior)> BehaviorChange
 Callback list invoked when a platform changes behavior.
static UtCallbackListN< void(double, WsfPlatform *, bool)> VisibleChange
 Callback list invoked when a platform changes visibility.

Member Typedef Documentation

◆ BehaviorMap

typedef std::map<size_t, Behavior> WsfVisualization::BehaviorMap

Member Function Documentation

◆ CreateScriptClass()

std::unique_ptr< UtScriptClass > WsfVisualization::CreateScriptClass ( UtScriptTypes * aScriptTypesPtr)
static

◆ Destroy()

void WsfVisualization::Destroy ( )
static

◆ GetBehavior()

int WsfVisualization::GetBehavior ( size_t aPlatformIndex)

Returns the current behavior type for the platform with the given index. Returns -1 if no behavior was given.

◆ GetBehaviors()

const BehaviorMap & WsfVisualization::GetBehaviors ( ) const
inline

◆ GetInstance()

WsfVisualization & WsfVisualization::GetInstance ( )
static

◆ SetBehavior()

void WsfVisualization::SetBehavior ( double aSimTime,
Behavior aBehavior )

Sets the behavior to be visualized for a platform.

References BehaviorChange, WsfPlatform::GetIndex(), and WsfVisualization::Behavior::mPlatformPtr.

Referenced by UT_DEFINE_SCRIPT_METHOD().

Member Data Documentation

◆ BehaviorChange

UtCallbackListN< void(double, WsfVisualization::Behavior)> WsfVisualization::BehaviorChange
static

Callback list invoked when a platform changes behavior.

Referenced by WsfDisVisualization::Connected(), and SetBehavior().

◆ VisibleChange

UtCallbackListN< void(double, WsfPlatform *, bool)> WsfVisualization::VisibleChange
static

Callback list invoked when a platform changes visibility.

Referenced by WsfDisVisualization::Connected(), and UT_DEFINE_SCRIPT_METHOD().


The documentation for this class was generated from the following files:
Copyrights Multiple, All Rights Reserved