Package jmri.jmrit.vsdecoder.listener
Class ListeningSpot
- java.lang.Object
-
- jmri.jmrit.vsdecoder.listener.ListeningSpot
-
public class ListeningSpot extends java.lang.Object
Represents a defined spot for viewing (and therefore listening to) a layout.
This file is part of JMRI.JMRI is free software; you can redistribute it and/or modify it under the terms of version 2 of the GNU General Public License as published by the Free Software Foundation. See the "COPYING" file for a copy of this license.
JMRI is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
-
-
Constructor Summary
Constructors Constructor Description ListeningSpot()ListeningSpot(java.lang.String name, javax.vecmath.Vector3d loc, javax.vecmath.Vector3d up, javax.vecmath.Vector3d at)ListeningSpot(javax.vecmath.Vector3f position)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Booleanequals(ListeningSpot other)java.lang.DoublegetAzimuth()java.lang.DoublegetBearing()javax.vecmath.Vector3dgetLocation()javax.vecmath.Vector3dgetLookAtVector()java.lang.StringgetName()PhysicalLocationgetPhysicalLocation()javax.vecmath.Vector3dgetUpVector()org.jdom2.ElementgetXml(java.lang.String elementName)ListeningSpotparseListeningSpot(org.jdom2.Element e)voidsetLocation(java.lang.Double x, java.lang.Double y, java.lang.Double z)voidsetLocation(javax.vecmath.Vector3d loc)voidsetLocation(PhysicalLocation l)voidsetLookAtVector(javax.vecmath.Vector3d at)voidsetName(java.lang.String n)voidsetOrientation(java.lang.Double bearing, java.lang.Double azimuth)voidsetOrientation(PhysicalLocation target)voidsetUpVector(javax.vecmath.Vector3d up)voidsetXml(org.jdom2.Element e)java.lang.StringtoString()
-
-
-
Constructor Detail
-
ListeningSpot
public ListeningSpot()
-
ListeningSpot
public ListeningSpot(javax.vecmath.Vector3f position)
-
ListeningSpot
public ListeningSpot(java.lang.String name, javax.vecmath.Vector3d loc, javax.vecmath.Vector3d up, javax.vecmath.Vector3d at)
-
-
Method Detail
-
getName
public java.lang.String getName()
-
getLocation
public javax.vecmath.Vector3d getLocation()
-
getPhysicalLocation
public PhysicalLocation getPhysicalLocation()
-
getUpVector
public javax.vecmath.Vector3d getUpVector()
-
getLookAtVector
public javax.vecmath.Vector3d getLookAtVector()
-
getBearing
public java.lang.Double getBearing()
-
getAzimuth
public java.lang.Double getAzimuth()
-
setName
public void setName(java.lang.String n)
-
setLocation
public void setLocation(javax.vecmath.Vector3d loc)
-
setLocation
public void setLocation(java.lang.Double x, java.lang.Double y, java.lang.Double z)
-
setLocation
public void setLocation(PhysicalLocation l)
-
setUpVector
public void setUpVector(javax.vecmath.Vector3d up)
-
setLookAtVector
public void setLookAtVector(javax.vecmath.Vector3d at)
-
setOrientation
public void setOrientation(PhysicalLocation target)
-
setOrientation
public void setOrientation(java.lang.Double bearing, java.lang.Double azimuth)
-
equals
public java.lang.Boolean equals(ListeningSpot other)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
parseListeningSpot
public ListeningSpot parseListeningSpot(org.jdom2.Element e)
-
getXml
public org.jdom2.Element getXml(java.lang.String elementName)
-
setXml
public void setXml(org.jdom2.Element e)
-
-