public class ClusteredView extends DefaultIdentifiable
| Constructor and Description |
|---|
ClusteredView(ClusterGeometry clGeom,
int origin,
int viewCols,
int viewRows,
List<Camera> cameras)
Constructs a new ClusteredView.
|
| Modifier and Type | Method and Description |
|---|---|
Location |
centerOnRegion(Camera cam,
double x1,
double y1,
double x2,
double y2) |
Color |
getBackgroundColor()
Gets the background color.
|
ObjId |
getObjId()
Returns the ObjId of this Identifiable.
|
Dimension |
getSize()
Returns the size of this ClusteredView, in pixels.
|
void |
setBackgroundColor(Color color)
Sets the background color for this ClusteredView.
|
Point |
spaceToViewCoords(Camera cam,
double xPos,
double yPos) |
Point2D.Double |
viewToSpaceCoords(Camera cam,
int xPos,
int yPos)
Converts the coordinates of a point given in ClusteredView
coordinates into VirtualSpace coordinates.
|
isReplicated, setReplicatedpublic ClusteredView(ClusterGeometry clGeom, int origin, int viewCols, int viewRows, List<Camera> cameras)
clGeom - cluster geometryorigin - origin (bottom-left) block numberviewRows - number of rows in the view (viewRows <= nbRows)viewCols - number of columns in the view (viewCols <= nbCols)cameras - a list of cameras observed by this ClusteredView.public ObjId getObjId()
DefaultIdentifiablegetObjId in interface IdentifiablegetObjId in class DefaultIdentifiablepublic void setBackgroundColor(Color color)
color - new background colorpublic Color getBackgroundColor()
public Dimension getSize()
public Point spaceToViewCoords(Camera cam, double xPos, double yPos)
xPos - point x-coordinate, in VirtualSpace coordsyPos - point y-coordinate, in VirtualSpace coordsIllegalArgumentException - If cam does not belong to this
ClusteredViewpublic Point2D.Double viewToSpaceCoords(Camera cam, int xPos, int yPos)
xPos - point x-coodinate, in View coordsyPos - point y-coordinate, in View coordsIllegalArgumentException - If cam does not belong to this
ClusteredViewpublic Location centerOnRegion(Camera cam, double x1, double y1, double x2, double y2)
x1 - first point x-coordinate, in VirtualSpace coordsy1 - first point y-coordinate, in VirtualSpace coordsx2 - second point x-coordinate, in VirtualSpace coordsy2 - second point y-coordinate, in VirtualSpace coordsCopyright © 2000-2002 Xerox Corporation. All Rights Reserved
Copyright © 2003 World Wide Web Consortium. All Rights Reserved
Copyright © 2004-2015 INRIA. All Rights Reserved
Licensed under the GNU LGPL. For full terms see the file COPYING.