6 #ifndef _networkMapNode_H_
7 #define _networkMapNode_H_
11 #include <vlutil/vlString.h>
22 #define RTI_NODE_SPEED 1.25
26 #define RTI_NODE_DEST_RANGE 0.008
37 const MAKRti::DtString& processName,
const MAKRti::DtString& federateType,
38 const MAKRti::DtString& federateName,
float radius );
41 DtNetworkMapNode(
int compId,
const MAKRti::DtString& forwarderName,
int port,
float radius );
44 DtNetworkMapNode(
int compId,
const MAKRti::DtString& execName,
float radius );
81 void update(
float delta );
bool isPeerForwarder
Definition: networkMapNode.h:214
bool IsPeerForwarder()
Gets whether this node is a peer forwarder.
Definition: networkMapNode.h:181
bool deleteMe
Definition: networkMapNode.h:217
bool startDelete
Definition: networkMapNode.h:218
float getRadius()
returns the radius
Definition: networkMapNode.h:69
void showDisconnect()
Definition: networkMapNode.h:138
bool isTouched()
Have we been touched?
Definition: networkMapNode.h:169
int textureId
Definition: networkMapNode.h:210
const _vec2 & getPosition() const
Gets the position.
Definition: networkMapNode.h:110
float speed
Definition: networkMapNode.h:220
void setTextureId(int id)
Sets the texture ID.
Definition: networkMapNode.h:50
void setIsCentralForwarder()
Sets this node to be the forwarder.
Definition: networkMapNode.h:172
void setIsPeerForwarder()
Sets this node to be a peer forwarder.
Definition: networkMapNode.h:178
void update(float delta)
Update function - does the animating.
void resetTextureId()
No warning / error texture.
Definition: networkMapNode.h:120
void setIsLightweightCenter()
Sets this node to be the center node for lightweight connections.
Definition: networkMapNode.h:190
void clearTouched()
clear touched flag
Definition: networkMapNode.h:163
DtNetworkMapNode()
default Constructor
void setPosition(const _vec2 &pos)
Sets the position.
Definition: networkMapNode.h:113
int getTextureId()
gets the textureId
Definition: networkMapNode.h:57
bool shouldBeDelete()
gets whether this node should be deleted
Definition: networkMapNode.h:196
Includes –—.
Definition: networkMapNode.h:15
void setRadius(float radius)
sets the radius
Definition: networkMapNode.h:63
int myPort
Definition: networkMapNode.h:230
float elapsedDeleteTime
Definition: networkMapNode.h:222
MAKRti::DtString myFederateType
Definition: networkMapNode.h:228
MAKRti::DtString myFederationName
Definition: networkMapNode.h:226
bool IsCentralForwarder()
Gets whether this node is the forwarder.
Definition: networkMapNode.h:175
Definition: iconAndTextureManager.h:24
MAKRti::DtString & getFederateName()
Definition: networkMapNode.h:205
MAKRti::DtString & getFederationName()
Get the federation name.
Definition: networkMapNode.h:202
void setIsExec()
Sets this node to be the exec.
Definition: networkMapNode.h:184
MAKRti::DtString myProcessName
Definition: networkMapNode.h:227
float y
Definition: networkMapNode.h:18
unsigned int federateId
Definition: networkMapNode.h:211
Definition: iconAndTextureManager.h:21
float radius
Definition: networkMapNode.h:219
bool isNotJoined()
Definition: networkMapNode.h:151
float x
Definition: networkMapNode.h:17
_vec2 position
Definition: networkMapNode.h:223
virtual ~DtNetworkMapNode()
Destructor.
Definition: networkMapNode.h:47
Definition: iconAndTextureManager.h:23
Definition: networkMapNode.h:28
_vec2 destination
Definition: networkMapNode.h:225
MAKRti::DtString myFederateName
Definition: networkMapNode.h:229
void setDestination(const _vec2 &dest)
Sets the destination.
Definition: networkMapNode.h:84
int getFederateId()
Returns the federate id.
Definition: networkMapNode.h:75
bool IsLightweightCenter()
Gets whether this node is the forwarder.
Definition: networkMapNode.h:193
float elapsedTime
Definition: networkMapNode.h:221
bool isMoving() const
Returns true if the node is currently moving.
Definition: networkMapNode.h:91
bool isLightWeightCenter
Definition: networkMapNode.h:215
bool IsExec()
gets whether this node is the exec
Definition: networkMapNode.h:187
MAKRti::DtString & getFederateType()
Definition: networkMapNode.h:204
int getPort()
Definition: networkMapNode.h:206
bool isCentralForwarder
Definition: networkMapNode.h:213
MAKRti::DtString & getProcessName()
Definition: networkMapNode.h:203
bool isExec
Definition: networkMapNode.h:212
void showNotJoined()
Definition: networkMapNode.h:147
void showWarning()
Shows warning texture.
Definition: networkMapNode.h:126
bool wasTouched
Definition: networkMapNode.h:216
#define RTI_NODE_DEST_RANGE
Defines how close a node should be to its destination before we consider it there.
Definition: networkMapNode.h:26
Definition: iconAndTextureManager.h:22
void showError()
Show Error texture.
Definition: networkMapNode.h:132
bool isDisconnected()
Definition: networkMapNode.h:142
void resetTouched()
rest whether we've been touched or not
Definition: networkMapNode.h:157
_vec2 acceleration
Definition: networkMapNode.h:224
void startShutdown()
Starts the shutdown/deletion process.
Definition: networkMapNode.h:199
MAKRti::DtString getHostPort()
Definition: networkMapNode.h:207