us.ihmc.simulationconstructionset.ViewportConfiguration Maven / Gradle / Ivy
Show all versions of simulation-construction-set
package us.ihmc.simulationconstructionset;
import java.util.ArrayList;
/**
*
* Title: SimulationConstructionSet
*
*
* Description: Class for storing camera view configurations for display in a ViewportPanel.
*
* This class can store the position and size information of several cameras as shown in the
* following example:
*
* {@code view2.addCameraView("camera 1", 0, 0, 1, 2);}
* {@code view2.addCameraView("camera 2", 1, 0, 3, 2);}
* {@code view2.addCameraView("robot cam", 0, 2, 2, 1);}
*
* The above code adds three cameras named camera 1, camera 2 and robot cam. The next component of
* each camera is its column and row. In this example camera's 1 and 2 are both in the same row, row
* 0, but are separated into columns 0 and 1 respectively. The final two components, width and
* height, indicate the number of columns and rows that the camera fills. Camera 1 has a width of 1
* and a height of 2. When placing cameras ensure that no overlap occurs as it will cause
* unpredictable behavior.
*
*
* @author Jerry Pratt
* @version 1.0
*/
public class ViewportConfiguration
{
private String name;
private ArrayList panelConfigurations = new ArrayList<>();
// private ArrayList