Class StreetsideImage
- java.lang.Object
-
- org.openstreetmap.josm.plugins.streetside.StreetsideAbstractImage
-
- org.openstreetmap.josm.plugins.streetside.StreetsideImage
-
- All Implemented Interfaces:
java.lang.Comparable<StreetsideAbstractImage>
public class StreetsideImage extends StreetsideAbstractImage
A StreetsideImage object represents each of the images stored in Streetside.- See Also:
StreetsideSequence,StreetsideData
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classStreetsideImage.RnRn is a Bing Streetside image attribute - currently not used, mapped or supported in the Streetside plugin - left out initially because it's an unrequired complex object.
-
Field Summary
Fields Modifier and Type Field Description private intadprivate doublealprivate java.lang.Stringblprivate doublelaprivate doubleloprivate intmlprivate java.util.List<java.lang.String>nbnprivate java.util.List<java.lang.String>pbnprivate doublepiprivate StreetsideImage.Rnrnprivate doublero-
Fields inherited from class org.openstreetmap.josm.plugins.streetside.StreetsideAbstractImage
he, id, latLon, movingHe
-
-
Constructor Summary
Constructors Constructor Description StreetsideImage()StreetsideImage(java.lang.String id)StreetsideImage(java.lang.String id, double la, double lo)StreetsideImage(java.lang.String id, LatLon latLon, double he)Main constructor of the class StreetsideImage
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidcheckModified()intcompareTo(StreetsideAbstractImage image)booleanequals(java.lang.Object object)intgetAd()doublegetAl()java.lang.StringgetBl()java.lang.StringgetId()Returns the unique identifier of the object.doublegetLa()doublegetLo()intgetMl()java.util.List<java.lang.String>getNbn()java.util.List<java.lang.String>getPbn()doublegetPi()StreetsideImage.RngetRn()doublegetRo()UserProfilegetUser()inthashCode()voidsetAd(int ad)voidsetAl(double altitude)voidsetBl(java.lang.String blurring)voidsetId(java.lang.String id)voidsetLa(double la)voidsetLo(double lo)voidsetMl(int ml)voidsetNbn(java.util.List<java.lang.String> nbn)voidsetPbn(java.util.List<java.lang.String> pbn)voidsetPi(double pitch)voidsetRn(StreetsideImage.Rn rn)voidsetRo(double roll)voidstopMoving()Called when the mouse button is released, meaning that the picture has stopped being dragged, so the temporal values are saved.java.lang.StringtoString()voidturn(double ca)Turns the image direction.-
Methods inherited from class org.openstreetmap.josm.plugins.streetside.StreetsideAbstractImage
getHe, getLatLon, getMovingHe, getMovingLatLon, getNe, getPr, getSequence, getTempHe, getTempLatLon, isModified, isVisible, move, next, previous, setHe, setLatLon, setNe, setPr, setSequence, setVisible
-
-
-
-
Field Detail
-
la
private double la
-
lo
private double lo
-
al
private double al
-
ro
private double ro
-
pi
private double pi
-
bl
private java.lang.String bl
-
ml
private int ml
-
nbn
private java.util.List<java.lang.String> nbn
-
pbn
private java.util.List<java.lang.String> pbn
-
ad
private int ad
-
rn
private StreetsideImage.Rn rn
-
-
Constructor Detail
-
StreetsideImage
public StreetsideImage(java.lang.String id, LatLon latLon, double he)
Main constructor of the class StreetsideImage- Parameters:
id- The unique identifier of the image.latLon- The latitude and longitude where it is positioned.he- The direction of the images in degrees, meaning 0 north.
-
StreetsideImage
public StreetsideImage(java.lang.String id, double la, double lo)
-
StreetsideImage
public StreetsideImage(java.lang.String id)
-
StreetsideImage
public StreetsideImage()
-
-
Method Detail
-
getId
public java.lang.String getId()
Returns the unique identifier of the object.- Overrides:
getIdin classStreetsideAbstractImage- Returns:
- A
Stringcontaining the unique identifier of the object.
-
getUser
public UserProfile getUser()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object object)
- Overrides:
equalsin classjava.lang.Object
-
compareTo
public int compareTo(StreetsideAbstractImage image)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
stopMoving
public void stopMoving()
Description copied from class:StreetsideAbstractImageCalled when the mouse button is released, meaning that the picture has stopped being dragged, so the temporal values are saved.- Overrides:
stopMovingin classStreetsideAbstractImage
-
checkModified
private void checkModified()
-
turn
public void turn(double ca)
Description copied from class:StreetsideAbstractImageTurns the image direction.- Overrides:
turnin classStreetsideAbstractImage- Parameters:
ca- The angle the image is moving.
-
getAl
public double getAl()
- Returns:
- the altitude
-
setAl
public void setAl(double altitude)
- Parameters:
altitude- the altitude to set
-
getRo
public double getRo()
- Returns:
- the roll
-
setRo
public void setRo(double roll)
- Parameters:
roll- the roll to set
-
getPi
public double getPi()
- Returns:
- the pi
-
setPi
public void setPi(double pitch)
- Parameters:
pitch- the pi to set
-
getBl
public java.lang.String getBl()
- Returns:
- the burringl
-
setBl
public void setBl(java.lang.String blurring)
- Parameters:
blurring- the blurring to set
-
getMl
public int getMl()
- Returns:
- the ml
-
setMl
public void setMl(int ml)
- Parameters:
ml- the ml to set
-
getNbn
public java.util.List<java.lang.String> getNbn()
- Returns:
- the nbn
-
setNbn
public void setNbn(java.util.List<java.lang.String> nbn)
- Parameters:
nbn- the nbn to set
-
getPbn
public java.util.List<java.lang.String> getPbn()
- Returns:
- the pbn
-
setPbn
public void setPbn(java.util.List<java.lang.String> pbn)
- Parameters:
pbn- the pbn to set
-
getAd
public int getAd()
- Returns:
- the ad
-
setAd
public void setAd(int ad)
- Parameters:
ad- the ad to set
-
getLa
public double getLa()
- Returns:
- the la
-
setLa
public void setLa(double la)
- Parameters:
la- the la to set
-
getLo
public double getLo()
- Returns:
- the lo
-
setLo
public void setLo(double lo)
- Parameters:
lo- the lo to set
-
setId
public void setId(java.lang.String id)
- Overrides:
setIdin classStreetsideAbstractImage- Parameters:
id- the id to set
-
getRn
public StreetsideImage.Rn getRn()
- Returns:
- the rn
-
setRn
public void setRn(StreetsideImage.Rn rn)
- Parameters:
rn- the rn to set
-
-