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 position)
ListeningSpot(java.lang.String name, javax.vecmath.Vector3d loc, javax.vecmath.Vector3d up, javax.vecmath.Vector3d at)
ListeningSpot(javax.vecmath.Vector3d position)
ListeningSpot(javax.vecmath.Vector3f position)
ListeningSpot(org.jdom2.Element e)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Boolean
equals(ListeningSpot other)
java.lang.Double
getAzimuth()
java.lang.Double
getBearing()
javax.vecmath.Vector3d
getLocation()
javax.vecmath.Vector3d
getLookAtVector()
java.lang.String
getName()
PhysicalLocation
getPhysicalLocation()
javax.vecmath.Vector3d
getUpVector()
org.jdom2.Element
getXml(java.lang.String elementName)
void
setLocation(java.lang.Double x, java.lang.Double y, java.lang.Double z)
void
setLocation(javax.vecmath.Vector3d loc)
void
setLocation(PhysicalLocation l)
void
setLookAtVector(javax.vecmath.Vector3d at)
void
setName(java.lang.String n)
void
setOrientation(java.lang.Double bearing, java.lang.Double azimuth)
void
setOrientation(PhysicalLocation target)
void
setUpVector(javax.vecmath.Vector3d up)
void
setXml(org.jdom2.Element e)
java.lang.String
toString()
-
-
-
Constructor Detail
-
ListeningSpot
public ListeningSpot()
-
ListeningSpot
public ListeningSpot(javax.vecmath.Vector3f position)
-
ListeningSpot
public ListeningSpot(javax.vecmath.Vector3d position)
-
ListeningSpot
public ListeningSpot(java.lang.String name, javax.vecmath.Vector3d position)
-
ListeningSpot
public ListeningSpot(java.lang.String name, javax.vecmath.Vector3d loc, javax.vecmath.Vector3d up, javax.vecmath.Vector3d at)
-
ListeningSpot
public ListeningSpot(org.jdom2.Element e)
-
-
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:
toString
in classjava.lang.Object
-
getXml
public org.jdom2.Element getXml(java.lang.String elementName)
-
setXml
public void setXml(org.jdom2.Element e)
-
-