VisDis API

VisDis API


CLASSES


CLASS DIS_EM_SYSTEMS_TYPE
  • Reference: vdis.h
  • Library: libvdis

    This class is used for easy access to the emitter systems in a DISPDU_emissions_type object.

    class dis_em_systems_type : public dbl_llist {

    };
    CLASS DIS_DATA
  • Reference: vdis.h
  • Library: libvdis

    This class is a DIS implementation of a platform_data object.

    class dis_data : public platform_data {

    };
    CLASS DIS_PLATFORM
  • Reference: vdis.h
  • Library: libvdis

    This class is a DIS implementation of the basic_platform object.

    class dis_platform : public basic_platform {

    };
    CLASS DIS_MCP_PLATFORM
  • Reference: vdis.h
  • Library: libvdis

    This class is a user controlled implementation of the dis_platform object.

    class dis_mcp_platform : public dis_platform {

    };
    CLASS DIS_IFACE
  • Reference: vdis.h
  • Library: libvdis

    This class is a DIS implementation of the iface object.

    class dis_iface : public iface {

    };
    CLASS DISPOST_OFFICE_TYPE
  • Reference: dismailbox.h
  • Library: libvdis

    This class is a DIS implementation of the post_office_type object.

    class dispost_office_type : public post_office_type {

    };
    CLASS DIS_HEADER_TYPE
  • Reference: discoord.h
  • Library: libvdis

    This class represents the header for all DIS PDUs.

    class DIS_header_type {

    };
    CLASS DIS_ENTITY_TYPE_TYPE
  • Reference: discoord.h
  • Library: libvdis

    This class represents the Kind field for all DIS PDUs.

    class DIS_entity_type_type {

    };
    CLASS DIS_BURST_DESCRIPTOR_TYPE
  • Reference: discoord.h
  • Library: libvdis

    This class represents the burst descriptor of a Fire/Detonate PDU.

    class DIS_burst_descriptor_type {

    };
    CLASS DISPDU_ENTITY_STATE_TYPE
  • Reference: discoord.h
  • Library: libvdis

    This class represents the Entity State PDU.

    class DISPDU_entity_state_type {

    };
    CLASS DISPDU_FIRE_TYPE
  • Reference: discoord.h
  • Library: libvdis

    This class represents the Fire PDU.

    class DISPDU_fire_type {

    };
    CLASS DISPDU_DETONATE_TYPE
  • Reference: discoord.h
  • Library: libvdis

    This class represents the Detonate PDU.

    class DISPDU_detonate_type {

    };
    CLASS DISPDU_ACTION_REQUEST_TYPE
  • Reference: discoord.h
  • Library: libvdis

    This class represents the Action Request PDU.

    class DISPDU_action_request_type {

    };
    CLASS DISPDU_ACTION_RESPONSE_TYPE
  • Reference: discoord.h
  • Library: libvdis

    This class represents the Action Response PDU.

    class DISPDU_action_response_type {

    };
    CLASS DIS_EMISSIONS_TRACKJAM_TYPE
  • Reference: discoord.h
  • Library: libvdis

    This class represents the Track/Jam section of the Emissions PDU.

    class DIS_emissions_trackjam_type : public dbl_llist {

    };
    CLASS DIS_EMISSIONS_BEAMS_TYPE
  • Reference: discoord.h
  • Library: libvdis

    This class represents the beam section of the Emissions PDU.

    class DIS_emissions_beams_type : public dbl_llist {

    };
    CLASS DIS_EMISSIONS_SYSTEMS_TYPE
  • Reference: discoord.h
  • Library: libvdis

    This class represents the systems section of the Emissions PDU.

    class DIS_emissions_systems_type : public dbl_llist {

    };
    CLASS DISPDU_EMISSIONS_TYPE
  • Reference: discoord.h
  • Library: libvdis

    This class represents the main section of the Emissions PDU.

    class DISPDU_emissions_type {

    };

    STRUCTURES


    STRUCTURE DIS_ID_TYPE
  • Reference: discoord.h

    This structure represents a DIS ID triple.

    typedef struct {

    } DIS_id_type;
    STRUCTURE LLA_TYPE
  • Reference: discoord.h

    This structure represents a latitude/longitude/altitude point.

    typedef struct {

    } lla_type;

    GLOBAL VARIABLES


    extern dispost_office_type disiface;

  • Reference: vdis.h

    This variable is an instantiation of the PDU mailbox object.


    extern char TOKEN_APP_STR[];

  • Reference: vdis.h

    This variable contains the command line arguement identifier for the DIS application id.


    extern char TOKEN_SITE_STR[];

  • Reference: vdis.h

    This variable contains the command line arguement identifier for the DIS site id.


    extern char TOKEN_EXERCISE_STR[];

  • Reference: vdis.h

    This variable contains the command line arguement identifier for the DIS exercise id.


    extern char TOKEN_COCKPIT_SITE_STR[];

  • Reference: vdis.h

    This variable contains the command line arguement identifier for the user controlled DIS site id.


    extern char TOKEN_COCKPIT_APP_STR[];

  • Reference: vdis.h

    This variable contains the command line arguement identifier for the user controlled DIS application id.


    extern char TOKEN_COCKPIT_ID_STR[];

  • Reference: vdis.h

    This variable contains the command line arguement identifier for the user controlled DIS entity id.


    FUNCTIONS


    void set_dis_interface(int exercise_id, int site_id, int app_id);

  • Reference: discoord.h
  • Library: libvdis

    Sets the DIS exercise, site, and application ID's for the library


    void get_dis_interface(int *exercise_id, int *site_id, int *app_id);

  • Reference: discoord.h
  • Library: libvdis

    Retrieves the DIS exercise, site, and application ID's from the library


    void init_dissweg(lla_type *center);

  • Reference: discoord.h
  • Library: libvdis

    Initializes the flat earth coordinate conversion routines for the JIMM/SWEG coordinate system. "Center" is the center of scenario.


    void init_disvissim(lla_type *center);

  • Reference: discoord.h
  • Library: libvdis

    Initializes the flat earth coordinate conversion routines for the VISPixcon coordinate system. "Center" is the center of scenario.


    void local2dis(vector3d local, vector3d dis, int type);

  • Reference: discoord.h
  • Library: libvdis

    Converts a point ("type" == DIS_POSITION) or a vector ("type" == DIS_POSITION) from the DIS world coordinate system to flat earth. "dis" is the DIS world coordinate, and "local" is the converted result.


    void dis2local(vector3d dis, vector3d local, int type);

  • Reference: discoord.h
  • Library: libvdis

    Converts a point ("type" == DIS_POSITION) or a vector ("type" == DIS_POSITION) from a flat earth system to DIS world coordinate system. "dis" is the DIS world coordinate, and "local" is the converted result.


    void local2disypr(vector3d localypr, vector3d disypr);

  • Reference: discoord.h
  • Library: libvdis

    Converts a (yaw, pitch, roll) triple from a flat earth system ("localypr") to DIS world coordinate system ("disypr").


    void dis2localypr(vector3d disypr, vector3d localypr);

  • Reference: discoord.h
  • Library: libvdis

    Converts a (yaw, pitch, roll) triple from the DIS world coordinate system ("disypr") to a flat earth system ("localypr").


    unsigned int distime(double *seconds);

  • Reference: discoord.h
  • Library: libvdis

    Converts and returns "seconds" from time from start of the scenario to a DIS timestamp.