|
Cisco Packet Tracer Extensions API 8.1.0
API for communication between Cisco Packet Tracer application and its extension applications and modules.
|
An object in the Physical Workspace. More...
Public Member Functions | |
| QString | getName () |
| Returns the name of this physical object. More... | |
| PhysicalObjectType | getType () |
| Returns the type of physical object. INTER_CITY = 0, CITY = 1, BUILDING = 2, WIRING_CLOSET = 3, RACK = 4, TABLE = 5, DEVICE = 6 MULTIUSER = 7, GENERIC_CONTAINER = 8, More... | |
| int | getX () |
| Returns X coordinate. More... | |
| int | getY () |
| Returns Y coordinate. More... | |
| int | getCenterX () |
| Returns center X coordinate. More... | |
| int | getCenterY () |
| Returns center Y coordinate. More... | |
| double | getGlobalX () |
| Returns global X coordinate. More... | |
| double | getGlobalY () |
| Returns global Y coordinate. More... | |
| Device | getDevice () |
| Returns the device if the type is DEVICE. More... | |
| PhysicalObject | getParent () |
| Returns the parent that contains the physical object. More... | |
| bool | moveOutOfCurrentObject () |
| Moves the physical object out of the current parent object and returns whether it was successful. More... | |
| bool | moveIntoObject (QString) |
| Moves the physical object into an object in the same level with the specified name and returns whether it was successful. More... | |
| int | getChildCount () |
| Returns the number of children the physical object has. More... | |
| PhysicalObject | getChildAt (int) |
| Returns the child at the given index in the physical object. More... | |
| PhysicalObject | getChild (QString) |
| Returns the child with the specified name in the physical object. More... | |
| PhysicalObject | getChildByPath (QString) |
| Returns the child recursively with the specified path separated by comma (,) in the physical object. More... | |
| void | setBackground (QString, bool) |
| Sets the background image path to use when inside the physical object. More... | |
| QString | getBackground () |
| Sets the background image path to use when inside the physical object. More... | |
| Environment | getEnvironment () |
| Gets the environment for the physical object. More... | |
| void | deviceMoved (Device, PhysicalObject, PhysicalObject) |
| IPC event. More... | |
| void | setX (int) |
| void | setY (int) |
| Sets the y-coordinate of the component item. More... | |
| void | moveBy (int, int) |
| Moves the component item by the specified x and y values. More... | |
| void | moveTo (int, int) |
| Moves the component item to the specified coordinates. More... | |
| double | getXScale () |
| double | getYScale () |
| double | getWidth () |
| double | getHeight () |
| void | setXVelocity (double) |
| Sets the x-axis velocity of the component item. More... | |
| void | setYVelocity (double) |
| Sets the y-axis velocity of the component item. More... | |
| void | setVelocity (double, double) |
| Sets the x-axis and y-axis velocity of the component item. More... | |
| double | xVelocity () |
| Returns the x-axis velocity of the component item. More... | |
| double | yVelocity () |
| Returns the y-axis velocity of the component item. More... | |
| QString | getPathUuid () |
| Returns the UUID of the physical object. More... | |
| QString | nameToUuidPath (QString) |
| Returns the comma-separated UUID path of the physical object from the given comma-separated physical location name path. More... | |
| QString | uuidToNamePath (QString) |
| Returns the comma-separated name path of the physical object from the given comma-separated physical location UUID path. More... | |
An object in the Physical Workspace.
| void PhysicalObject::deviceMoved | ( | Device | , |
| PhysicalObject | , | ||
| PhysicalObject | |||
| ) |
IPC event.
This event is emitted when the device is moved from one physical object to another.
| QString PhysicalObject::getBackground | ( | ) |
Sets the background image path to use when inside the physical object.
| int PhysicalObject::getCenterX | ( | ) |
Returns center X coordinate.
| int PhysicalObject::getCenterY | ( | ) |
Returns center Y coordinate.
| PhysicalObject PhysicalObject::getChild | ( | QString | ) |
Returns the child with the specified name in the physical object.
| name,name | of the child. |
| PhysicalObject PhysicalObject::getChildAt | ( | int | ) |
Returns the child at the given index in the physical object.
| index,index | to get a child from. |
| PhysicalObject PhysicalObject::getChildByPath | ( | QString | ) |
Returns the child recursively with the specified path separated by comma (,) in the physical object.
| path,path | of the child separated by comma (,). |
| int PhysicalObject::getChildCount | ( | ) |
Returns the number of children the physical object has.
| Device PhysicalObject::getDevice | ( | ) |
Returns the device if the type is DEVICE.
| Environment PhysicalObject::getEnvironment | ( | ) |
Gets the environment for the physical object.
| double PhysicalObject::getGlobalX | ( | ) |
Returns global X coordinate.
| double PhysicalObject::getGlobalY | ( | ) |
Returns global Y coordinate.
| double PhysicalObject::getHeight | ( | ) |
| QString PhysicalObject::getName | ( | ) |
Returns the name of this physical object.
| PhysicalObject PhysicalObject::getParent | ( | ) |
Returns the parent that contains the physical object.
| QString PhysicalObject::getPathUuid | ( | ) |
Returns the UUID of the physical object.
| PhysicalObjectType PhysicalObject::getType | ( | ) |
Returns the type of physical object. INTER_CITY = 0, CITY = 1, BUILDING = 2, WIRING_CLOSET = 3, RACK = 4, TABLE = 5, DEVICE = 6 MULTIUSER = 7, GENERIC_CONTAINER = 8,
| double PhysicalObject::getWidth | ( | ) |
| int PhysicalObject::getX | ( | ) |
Returns X coordinate.
| double PhysicalObject::getXScale | ( | ) |
| int PhysicalObject::getY | ( | ) |
Returns Y coordinate.
| double PhysicalObject::getYScale | ( | ) |
| void PhysicalObject::moveBy | ( | int | , |
| int | |||
| ) |
Moves the component item by the specified x and y values.
| x,the | value to move the component item by on the x-axis. |
| y,the | value to move the component item by on the y-axis. |
| bool PhysicalObject::moveIntoObject | ( | QString | ) |
Moves the physical object into an object in the same level with the specified name and returns whether it was successful.
| name,the | name of the object in the same level |
| bool PhysicalObject::moveOutOfCurrentObject | ( | ) |
Moves the physical object out of the current parent object and returns whether it was successful.
| void PhysicalObject::moveTo | ( | int | , |
| int | |||
| ) |
Moves the component item to the specified coordinates.
| x,the | value to move the component item to on the x-axis. |
| y,the | value to move the component item to on the y-axis. |
| QString PhysicalObject::nameToUuidPath | ( | QString | ) |
Returns the comma-separated UUID path of the physical object from the given comma-separated physical location name path.
| void PhysicalObject::setBackground | ( | QString | , |
| bool | |||
| ) |
Sets the background image path to use when inside the physical object.
| path,path | to the image to use. |
| tiled,true | to tile the background false to just show one image. |
| void PhysicalObject::setVelocity | ( | double | , |
| double | |||
| ) |
Sets the x-axis and y-axis velocity of the component item.
| xv,the | x-axis velocity of the component item. |
| yv,the | y-axis velocity of the component item. |
| void PhysicalObject::setX | ( | int | ) |
| void PhysicalObject::setXVelocity | ( | double | ) |
Sets the x-axis velocity of the component item.
| xv,the | x-axis velocity of the component item. |
| void PhysicalObject::setY | ( | int | ) |
Sets the y-coordinate of the component item.
| y,the | y-coordinate of the component item. |
| void PhysicalObject::setYVelocity | ( | double | ) |
Sets the y-axis velocity of the component item.
| yv,the | y-axis velocity of the component item. |
| QString PhysicalObject::uuidToNamePath | ( | QString | ) |
Returns the comma-separated name path of the physical object from the given comma-separated physical location UUID path.
| double PhysicalObject::xVelocity | ( | ) |
Returns the x-axis velocity of the component item.
| double PhysicalObject::yVelocity | ( | ) |
Returns the y-axis velocity of the component item.