Cisco Packet Tracer Extensions API 8.1.0
API for communication between Cisco Packet Tracer application and its extension applications and modules.
Public Member Functions | List of all members
GeoView Class Reference

GeoView handles and manipulates the Physical Workspace excluding the wiring closet. More...

Public Member Functions

void setVisible (bool)
 Shows or hides this widget from view. More...
 
GeoIcon findGeoIconByDeviceName (QString)
 
GeoIcon findGeoIconContainerInCurrentViewByDeviceName (QString)
 
GeoIcon findGeoIconByPhysicalObjectName (QString)
 
GeoIcon getGeoIconByName (QString)
 
PhysicalObject getPhyObjForDevName (QString)
 
void centerOn (double, double)
 
void centerOnGeoIconByName (QString)
 
void linkStarted (QString, string, CONNECT_TYPES)
 This event is emitted when a link starts (i.e. user connects the first end of a link) More...
 
void linkCreated (QString, string, QString, string, CONNECT_TYPES)
 This event is emitted when a link starts (i.e. user connects the first end of a link) More...
 

Detailed Description

GeoView handles and manipulates the Physical Workspace excluding the wiring closet.

Member Function Documentation

◆ centerOn()

void GeoView::centerOn ( double  ,
double   
)

◆ centerOnGeoIconByName()

void GeoView::centerOnGeoIconByName ( QString  )

◆ findGeoIconByDeviceName()

GeoIcon GeoView::findGeoIconByDeviceName ( QString  )

◆ findGeoIconByPhysicalObjectName()

GeoIcon GeoView::findGeoIconByPhysicalObjectName ( QString  )

◆ findGeoIconContainerInCurrentViewByDeviceName()

GeoIcon GeoView::findGeoIconContainerInCurrentViewByDeviceName ( QString  )

◆ getGeoIconByName()

GeoIcon GeoView::getGeoIconByName ( QString  )

◆ getPhyObjForDevName()

PhysicalObject GeoView::getPhyObjForDevName ( QString  )

◆ linkCreated()

void GeoView::linkCreated ( QString  ,
string  ,
QString  ,
string  ,
CONNECT_TYPES   
)

This event is emitted when a link starts (i.e. user connects the first end of a link)

  • deviceName1, the name of the first device.
  • portName1, portName can be one of the following plus a port number where appropriate: Console, Aux, Ethernet, FastEthernet, GigabitEthernet, Serial, Wireless, Loopback, Vlan, Modem, Coaxial, Rs232, Async. Example: FastEthernet0/0
  • deviceName2, the name of the second device.
  • portName2, portName can be one of the following plus a port number where appropriate: Console, Aux, Ethernet, FastEthernet, GigabitEthernet, Serial, Wireless, Loopback, Vlan, Modem, Coaxial, Rs232, Async. Example: FastEthernet0/0
  • connType, the connection type. Connection types: ETHERNET_STRAIGHT = 8100, ETHERNET_CROSS = 8101, ETHERNET_ROLL = 8102, FIBER = 8103, PHONE = 8104, CABLE = 8105, SERIAL = 8106, AUTO = 8107, CONSOLE = 8108, WIRELESS = 8109, COAXIAL = 8110, OCTAL = 8111, CELLULAR = 8112, USB = 8113, CUSTOM_IO = 8114,

IPC event.

◆ linkStarted()

void GeoView::linkStarted ( QString  ,
string  ,
CONNECT_TYPES   
)

This event is emitted when a link starts (i.e. user connects the first end of a link)

  • deviceName1, the name of the first device.
  • portName1, portName can be one of the following plus a port number where appropriate: Console, Aux, Ethernet, FastEthernet, GigabitEthernet, Serial, Wireless, Loopback, Vlan, Modem, Coaxial, Rs232, Async. Example: FastEthernet0/0
  • connType, the connection type. Connection types: ETHERNET_STRAIGHT = 8100, ETHERNET_CROSS = 8101, ETHERNET_ROLL = 8102, FIBER = 8103, PHONE = 8104, CABLE = 8105, SERIAL = 8106, AUTO = 8107, CONSOLE = 8108, WIRELESS = 8109, COAXIAL = 8110, OCTAL = 8111, CELLULAR = 8112, USB = 8113, CUSTOM_IO = 8114,

IPC event.

◆ setVisible()

void GeoView::setVisible ( bool  )

Shows or hides this widget from view.

Parameters
bVisible,trueto show this widget, false to hide it.

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