cz.cuni.amis.pogamut.usar2004.communication.messages.usarcommands
Class SetViewports
java.lang.Object
cz.cuni.amis.pogamut.base.communication.messages.CommandMessage
cz.cuni.amis.pogamut.usar2004.communication.messages.usarcommands.SetViewports
public class SetViewports
- extends cz.cuni.amis.pogamut.base.communication.messages.CommandMessage
This command is used to manage the viewports.
When USARSim initially starts up, users can freely move around the world
using the mouse and keyboard. Pressing the left mouse button of the mouse
attaches the view to the robot’s viewport controller. The robot viewport
controller currently supports two configurations: SingleView and QuadView.
The SingleView configuration provides users with a single view coming from a
single camera. The QuadView configuration provides user with four views,
giving them the possibility of viewing up to four cameras simultaneously (the
screen is divided up into four equal portions, each of which is used for a
camera). When a robot is added to a world, the viewport configuration is
automatically set to accommodate for the maximum number of cameras. In other
words, if a robot has zero or one camera, it will automatically start in
SingleView; otherwise, it will automatically start in QuadView. Since a robot
might have more than four cameras and users might want to cycle through all
the cameras using SingleView, USARSim gives the possibility of configuring
the viewports
Corresponding GameBots command is SET.
Type
protected String Type
Config
protected String Config
Viewport1
protected String Viewport1
Viewport2
protected String Viewport2
Viewport3
protected String Viewport3
Viewport4
protected String Viewport4
SetViewports
public SetViewports(String Config,
String Viewport1,
String Viewport2,
String Viewport3,
String Viewport4)
SetViewports
public SetViewports()
- WARNING: this is empty-command constructor, you have to use
Setters to fill it up!
SetViewports
public SetViewports(SetViewports original)
- Cloning constructor.
getType
public String getType()
getConfig
public String getConfig()
setConfig
public SetViewports setConfig(String Config)
getViewport1
public String getViewport1()
setViewport1
public SetViewports setViewport1(String Viewport1)
getViewport2
public String getViewport2()
setViewport2
public SetViewports setViewport2(String Viewport2)
getViewport3
public String getViewport3()
setViewport3
public SetViewports setViewport3(String Viewport3)
getViewport4
public String getViewport4()
setViewport4
public SetViewports setViewport4(String Viewport4)
toString
public String toString()
- Overrides:
toString in class cz.cuni.amis.pogamut.base.communication.messages.CommandMessage
toHtmlString
public String toHtmlString()
toMessage
public String toMessage()
Copyright © 2015 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.