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 SummaryConstructors 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 SummaryAll 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- 
ListeningSpotpublic ListeningSpot() 
 - 
ListeningSpotpublic ListeningSpot(javax.vecmath.Vector3f position) 
 - 
ListeningSpotpublic ListeningSpot(java.lang.String name, javax.vecmath.Vector3d loc, javax.vecmath.Vector3d up, javax.vecmath.Vector3d at) 
 
- 
 - 
Method Detail- 
getNamepublic java.lang.String getName() 
 - 
getLocationpublic javax.vecmath.Vector3d getLocation() 
 - 
getPhysicalLocationpublic PhysicalLocation getPhysicalLocation() 
 - 
getUpVectorpublic javax.vecmath.Vector3d getUpVector() 
 - 
getLookAtVectorpublic javax.vecmath.Vector3d getLookAtVector() 
 - 
getBearingpublic java.lang.Double getBearing() 
 - 
getAzimuthpublic java.lang.Double getAzimuth() 
 - 
setNamepublic void setName(java.lang.String n) 
 - 
setLocationpublic void setLocation(javax.vecmath.Vector3d loc) 
 - 
setLocationpublic void setLocation(java.lang.Double x, java.lang.Double y, java.lang.Double z) 
 - 
setLocationpublic void setLocation(PhysicalLocation l) 
 - 
setUpVectorpublic void setUpVector(javax.vecmath.Vector3d up) 
 - 
setLookAtVectorpublic void setLookAtVector(javax.vecmath.Vector3d at) 
 - 
setOrientationpublic void setOrientation(PhysicalLocation target) 
 - 
setOrientationpublic void setOrientation(java.lang.Double bearing, java.lang.Double azimuth) 
 - 
equalspublic java.lang.Boolean equals(ListeningSpot other) 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.lang.Object
 
 - 
parseListeningSpotpublic ListeningSpot parseListeningSpot(org.jdom2.Element e) 
 - 
getXmlpublic org.jdom2.Element getXml(java.lang.String elementName) 
 - 
setXmlpublic void setXml(org.jdom2.Element e) 
 
- 
 
-