NetSim Source Code Help
Loading...
Searching...
No Matches
Animation.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  stru_move_node
 
struct  stru_transmit_packet
 
struct  stru_line
 

Macros

#define _NETSIM_ANIMATION_H_
 
#define MAX_PACKET_TYPE_LEN   100
 

Typedefs

typedef unsigned int NETSIM_ID
 
typedef void * ANIM_HANDLE
 
typedef enum enum_anim_flag ANIM_FLAG
 
typedef enum enum_anim_fileType ANIMFILETYPE
 
typedef enum enum_anim_type ANIM_TYPE
 
typedef struct stru_move_node MOVENODE
 
typedef struct stru_move_nodeptrMOVENODE
 
typedef struct stru_transmit_packet TRANSMITPACKET
 
typedef struct stru_transmit_packetptrTRANSMITPACKET
 
typedef struct stru_line LINE
 
typedef struct stru_lineptrLINE
 

Enumerations

enum  enum_anim_flag { ANIMFLAG_DISABLE , ANIMFLAG_OFFLINE , ANIMFLAG_ONLINE }
 
enum  enum_anim_fileType {
  ANIMFILETYPE_GENERIC , ANIMFILETYPE_TABLE , ANIMFILETYPE_2DPLOT , ANIMFILETYPE_3DPLOT ,
  ANIMFILETYPE_GRAPH , ANIMFILETYPE_BATTERY
}
 
enum  enum_anim_type {
  ANIM_EXIT , ANIM_MOVENODE , ANIM_NODEJOIN , ANIM_NODELEAVE ,
  ANIM_TRANSMITPACKET , ANIM_LABEL , ANIM_LINE , ANIM_CIRCLE ,
  ANIM_REACTANGLE , ANIM_GRAPH , ANIM_PLOT2D , ANIM_PLOT3D ,
  ANIM_TABLE , ANIM_BATTERY , ANIM_CUSTOM
}
 

Functions

ANIM_FLAG anim_get_anim_flag ()
 
void anim_set_anim_flag (char *flag)
 
ANIM_HANDLE anim_add_new_menu (ANIM_HANDLE handle, char *name, bool isThreadReq, bool isNewScreen, bool isFile, UINT maxDataLen, ANIMFILETYPE fileType)
 
void fn_NetSim_Anim_Init (char *ioPath)
 
void fn_NetSim_Anim_Close ()
 
void animation_table_new (ANIM_HANDLE animHandle, char *heading)
 
void animation_table_time (ANIM_HANDLE animHandle, double time)
 
void animation_table_row (ANIM_HANDLE animHandle, char *format,...)
 
void animation_add_new_entry (ANIM_HANDLE animHandle, ANIM_TYPE type, void *format,...)
 
void anim_set_file_name (ANIM_HANDLE handle, char *name)
 

Variables

static char animFileType [][50] = { "generic","table","2dplot","3dplot","graph","battery" }
 
static char animType [][50]
 

Macro Definition Documentation

◆ _NETSIM_ANIMATION_H_

#define _NETSIM_ANIMATION_H_

Definition at line 36 of file Animation.h.

◆ MAX_PACKET_TYPE_LEN

#define MAX_PACKET_TYPE_LEN   100

Definition at line 49 of file Animation.h.

Typedef Documentation

◆ ANIM_FLAG

typedef enum enum_anim_flag ANIM_FLAG

◆ ANIM_HANDLE

typedef void* ANIM_HANDLE

Definition at line 52 of file Animation.h.

◆ ANIM_TYPE

typedef enum enum_anim_type ANIM_TYPE

◆ ANIMFILETYPE

◆ LINE

typedef struct stru_line LINE

◆ MOVENODE

typedef struct stru_move_node MOVENODE

◆ NETSIM_ID

typedef unsigned int NETSIM_ID

Definition at line 45 of file Animation.h.

◆ ptrLINE

typedef struct stru_line * ptrLINE

◆ ptrMOVENODE

typedef struct stru_move_node* ptrMOVENODE

◆ ptrTRANSMITPACKET

◆ TRANSMITPACKET

Enumeration Type Documentation

◆ enum_anim_fileType

Enumerator
ANIMFILETYPE_GENERIC 
ANIMFILETYPE_TABLE 
ANIMFILETYPE_2DPLOT 
ANIMFILETYPE_3DPLOT 
ANIMFILETYPE_GRAPH 
ANIMFILETYPE_BATTERY 

Definition at line 61 of file Animation.h.

◆ enum_anim_flag

Enumerator
ANIMFLAG_DISABLE 
ANIMFLAG_OFFLINE 
ANIMFLAG_ONLINE 

Definition at line 54 of file Animation.h.

◆ enum_anim_type

Enumerator
ANIM_EXIT 
ANIM_MOVENODE 
ANIM_NODEJOIN 
ANIM_NODELEAVE 
ANIM_TRANSMITPACKET 
ANIM_LABEL 
ANIM_LINE 
ANIM_CIRCLE 
ANIM_REACTANGLE 
ANIM_GRAPH 
ANIM_PLOT2D 
ANIM_PLOT3D 
ANIM_TABLE 
ANIM_BATTERY 
ANIM_CUSTOM 

Definition at line 72 of file Animation.h.

Function Documentation

◆ anim_add_new_menu()

ANIM_HANDLE anim_add_new_menu ( ANIM_HANDLE  handle,
char *  name,
bool  isThreadReq,
bool  isNewScreen,
bool  isFile,
UINT  maxDataLen,
ANIMFILETYPE  fileType 
)
Here is the caller graph for this function:

◆ anim_get_anim_flag()

ANIM_FLAG anim_get_anim_flag ( )
Here is the caller graph for this function:

◆ anim_set_anim_flag()

void anim_set_anim_flag ( char *  flag)

◆ anim_set_file_name()

void anim_set_file_name ( ANIM_HANDLE  handle,
char *  name 
)

◆ animation_add_new_entry()

void animation_add_new_entry ( ANIM_HANDLE  animHandle,
ANIM_TYPE  type,
void *  format,
  ... 
)
Here is the caller graph for this function:

◆ animation_table_new()

void animation_table_new ( ANIM_HANDLE  animHandle,
char *  heading 
)

◆ animation_table_row()

void animation_table_row ( ANIM_HANDLE  animHandle,
char *  format,
  ... 
)

◆ animation_table_time()

void animation_table_time ( ANIM_HANDLE  animHandle,
double  time 
)

◆ fn_NetSim_Anim_Close()

void fn_NetSim_Anim_Close ( )

◆ fn_NetSim_Anim_Init()

void fn_NetSim_Anim_Init ( char *  ioPath)

Variable Documentation

◆ animFileType

char animFileType[][50] = { "generic","table","2dplot","3dplot","graph","battery" }
static

Definition at line 70 of file Animation.h.

◆ animType

char animType[][50]
static
Initial value:
= { "EXIT",
"MOVENODE",
"NODEJOIN",
"NODELEAVE",
"TRANSMITPACKET",
"LABEL",
"LINE",
"CIRCLE",
"REACTANGLE",
"GRAPH",
"PLOT2D",
"PLOT3D",
"TABLE",
"BATTERY",
"" }

Definition at line 90 of file Animation.h.