MAK RTIspy API Documentation for HLA 1.3
List of all members | Public Member Functions | Protected Attributes
DtNetworkMapNode Class Reference
+ Collaboration diagram for DtNetworkMapNode:

Public Member Functions

 DtNetworkMapNode ()
 default Constructor
 DtNetworkMapNode (int fedId, const MAKRti::DtString &federationName, const MAKRti::DtString &processName, const MAKRti::DtString &federateType, const MAKRti::DtString &federateName, float radius)
 Overloaded Constructor.
virtual ~DtNetworkMapNode ()
 Destructor.
void setTextureId (int id)
 Sets the texture ID.
int getTextureId ()
 gets the textureId
void setRadius (float radius)
 sets the radius
float getRadius ()
 returns the radius
int getFederateId ()
 Returns the federate id.
void update (float delta)
 Update function - does the animating.
void setDestination (const _vec2 &dest)
 Sets the destination.
bool isMoving () const
 Returns true if the node is currently moving.
const _vec2getPosition () const
 Gets the position.
void setPosition (const _vec2 &pos)
 Sets the position.
void resetTextureId ()
 No warning / error texture.
void showWarning ()
 Shows warning texture.
void showError ()
 Show Error texture.
void showDisconnect ()
bool isDisconnected ()
void showNotJoined ()
bool isNotJoined ()
void resetTouched ()
 rest whether we've been touched or not
void clearTouched ()
 clear touched flag
bool isTouched ()
 Have we been touched?
void setIsCentralForwarder ()
 Sets this node to be the forwarder.
bool IsCentralForwarder ()
 Gets whether this node is the forwarder.
void setIsPeerForwarder ()
 Sets this node to be a peer forwarder.
bool IsPeerForwarder ()
 Gets whether this node is a peer forwarder.
void setIsExec ()
 Sets this node to be the exec.
bool IsExec ()
 gets whether this node is the exec
void setIsLightweightCenter ()
 Sets this node to be the center node for lightweight connections.
bool IsLightweightCenter ()
 Gets whether this node is the forwarder.
bool shouldBeDelete ()
 gets whether this node should be deleted
void startShutdown ()
 Starts the shutdown/deletion process.
MAKRti::DtString & getFederationName ()
 Get the federation name.
MAKRti::DtString & getProcessName ()
MAKRti::DtString & getFederateType ()
MAKRti::DtString & getFederateName ()

Protected Attributes

int textureId
unsigned int federateId
bool isExec
bool isCentralForwarder
bool isPeerForwarder
bool isLightWeightCenter
bool wasTouched
bool deleteMe
bool startDelete
float radius
float speed
float elapsedTime
float elapsedDeleteTime
_vec2 position
_vec2 acceleration
_vec2 destination
MAKRti::DtString myFederationName
MAKRti::DtString myProcessName
MAKRti::DtString myFederateType
MAKRti::DtString myFederateName

Constructor & Destructor Documentation

DtNetworkMapNode::DtNetworkMapNode ( )

default Constructor

Constructor.

DtNetworkMapNode::DtNetworkMapNode ( int  fedId,
const MAKRti::DtString &  federationName,
const MAKRti::DtString &  processName,
const MAKRti::DtString &  federateType,
const MAKRti::DtString &  federateName,
float  radius 
)

Overloaded Constructor.

Constructor.

References acceleration, destination, federateId, position, radius, _vec2::x, and _vec2::y.

virtual DtNetworkMapNode::~DtNetworkMapNode ( )
inlinevirtual

Destructor.

Member Function Documentation

void DtNetworkMapNode::clearTouched ( )
inline

clear touched flag

References wasTouched.

int DtNetworkMapNode::getFederateId ( )
inline

Returns the federate id.

References federateId.

Referenced by DtNetworkMapWidget::getSelectedNodeInfo(), and DtNetworkMapWidget::selection().

MAKRti::DtString& DtNetworkMapNode::getFederateName ( )
inline
MAKRti::DtString& DtNetworkMapNode::getFederateType ( )
inline
MAKRti::DtString& DtNetworkMapNode::getFederationName ( )
inline
const _vec2& DtNetworkMapNode::getPosition ( ) const
inline
MAKRti::DtString& DtNetworkMapNode::getProcessName ( )
inline
float DtNetworkMapNode::getRadius ( )
inline

returns the radius

References radius.

int DtNetworkMapNode::getTextureId ( )
inline

gets the textureId

References textureId.

Referenced by DtNetworkMapWidget::drawNodes().

bool DtNetworkMapNode::IsCentralForwarder ( )
inline
bool DtNetworkMapNode::isDisconnected ( )
inline
bool DtNetworkMapNode::IsExec ( )
inline

gets whether this node is the exec

References isExec.

Referenced by DtNetworkMapWidget::drawNodes(), DtNetworkMapWidget::getSelectedNodeInfo(), and DtNetworkMapWidget::selection().

bool DtNetworkMapNode::IsLightweightCenter ( )
inline
bool DtNetworkMapNode::isMoving ( ) const
inline

Returns true if the node is currently moving.

References destination, position, RTI_NODE_DEST_RANGE, _vec2::x, and _vec2::y.

Referenced by DtNetworkMapWidget::drawNodes().

bool DtNetworkMapNode::isNotJoined ( )
inline
bool DtNetworkMapNode::IsPeerForwarder ( )
inline

Gets whether this node is a peer forwarder.

References isPeerForwarder.

Referenced by DtNetworkMapWidget::drawNodes(), DtNetworkMapWidget::getSelectedNodeInfo(), and DtNetworkMapWidget::selection().

bool DtNetworkMapNode::isTouched ( )
inline

Have we been touched?

References wasTouched.

void DtNetworkMapNode::resetTextureId ( )
inline

No warning / error texture.

References textureId.

Referenced by DtNetworkMapWidget::clearFederateFlags(), and DtNetworkMapWidget::updateFederateInfo().

void DtNetworkMapNode::resetTouched ( )
inline

rest whether we've been touched or not

References wasTouched.

void DtNetworkMapNode::setDestination ( const _vec2 dest)
inline

Sets the destination.

References destination, _vec2::x, and _vec2::y.

void DtNetworkMapNode::setIsCentralForwarder ( )
inline

Sets this node to be the forwarder.

References isCentralForwarder, isExec, isLightWeightCenter, and isPeerForwarder.

Referenced by DtNetworkMapCentralNode::insertCentralNode().

void DtNetworkMapNode::setIsExec ( )
inline

Sets this node to be the exec.

References isCentralForwarder, isExec, isLightWeightCenter, and isPeerForwarder.

Referenced by DtNetworkMapWidget::addExecNode().

void DtNetworkMapNode::setIsLightweightCenter ( )
inline

Sets this node to be the center node for lightweight connections.

References isCentralForwarder, isExec, isLightWeightCenter, and isPeerForwarder.

Referenced by DtNetworkMapCentralNode::insertCentralNode().

void DtNetworkMapNode::setIsPeerForwarder ( )
inline

Sets this node to be a peer forwarder.

References isCentralForwarder, isExec, isLightWeightCenter, and isPeerForwarder.

Referenced by DtNetworkMapWidget::addPeerForwarderNode().

void DtNetworkMapNode::setPosition ( const _vec2 pos)
inline

Sets the position.

References position, _vec2::x, and _vec2::y.

void DtNetworkMapNode::setRadius ( float  radius)
inline

sets the radius

References radius.

void DtNetworkMapNode::setTextureId ( int  id)
inline

Sets the texture ID.

References textureId.

bool DtNetworkMapNode::shouldBeDelete ( )
inline

gets whether this node should be deleted

References deleteMe.

void DtNetworkMapNode::showDisconnect ( )
inline
void DtNetworkMapNode::showError ( )
inline

Show Error texture.

References DtErrorTexture, and textureId.

Referenced by DtNetworkMapWidget::addFederateNode().

void DtNetworkMapNode::showNotJoined ( )
inline
void DtNetworkMapNode::showWarning ( )
inline

Shows warning texture.

References DtWarningTexture, and textureId.

Referenced by DtNetworkMapWidget::updateFederateInfo().

void DtNetworkMapNode::startShutdown ( )
inline

Starts the shutdown/deletion process.

References startDelete.

void DtNetworkMapNode::update ( float  delta)

Update function - does the animating.

Update Function.

References acceleration, deleteMe, destination, elapsedDeleteTime, position, RTI_NODE_SPEED, startDelete, _vec2::x, and _vec2::y.

Member Data Documentation

_vec2 DtNetworkMapNode::acceleration
protected

Referenced by DtNetworkMapNode(), and update().

bool DtNetworkMapNode::deleteMe
protected

Referenced by shouldBeDelete(), and update().

_vec2 DtNetworkMapNode::destination
protected
float DtNetworkMapNode::elapsedDeleteTime
protected

Referenced by update().

float DtNetworkMapNode::elapsedTime
protected
unsigned int DtNetworkMapNode::federateId
protected

Referenced by DtNetworkMapNode(), and getFederateId().

bool DtNetworkMapNode::isCentralForwarder
protected
bool DtNetworkMapNode::isExec
protected
bool DtNetworkMapNode::isLightWeightCenter
protected
bool DtNetworkMapNode::isPeerForwarder
protected
MAKRti::DtString DtNetworkMapNode::myFederateName
protected
MAKRti::DtString DtNetworkMapNode::myFederateType
protected

Referenced by getFederateType().

MAKRti::DtString DtNetworkMapNode::myFederationName
protected

Referenced by getFederationName().

MAKRti::DtString DtNetworkMapNode::myProcessName
protected

Referenced by getProcessName().

_vec2 DtNetworkMapNode::position
protected
float DtNetworkMapNode::radius
protected
float DtNetworkMapNode::speed
protected
bool DtNetworkMapNode::startDelete
protected

Referenced by startShutdown(), and update().

int DtNetworkMapNode::textureId
protected
bool DtNetworkMapNode::wasTouched
protected

The documentation for this class was generated from the following files:

Document ID: Generated on Tue May 7 16:26:47 EDT 2013 from SVN revision 126903
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)