View Javadoc

1   package cz.cuni.amis.pogamut.usar2004.communication.messages.datatypes;
2   
3   import cz.cuni.amis.pogamut.base3d.worldview.object.Location;
4   import cz.cuni.amis.pogamut.base3d.worldview.object.Rotation;
5   
6   /**
7    * Camera, Sensor and effecter mounts are composed from Name, Location,
8    * Orientaion and Mount name. This Class is used to offer geometry information
9    * composed from these atributes.
10   *
11   * @author vejmanm
12   */
13  public class SensorMount
14  {
15      private String Name = null;
16      private Location Location = null;
17      private Rotation Orientation = null;
18      private String Mount = null;
19  
20      public SensorMount()
21      {
22      }
23  
24      public Location getLocation()
25      {
26          return Location;
27      }
28  
29      /**
30       *
31       * @return Returns name of the base item that this item is mounted to.
32       */
33      public String getMount()
34      {
35          return Mount;
36      }
37  
38      public String getName()
39      {
40          return Name;
41      }
42  
43      public Rotation getOrientation()
44      {
45          return Orientation;
46      }
47  
48      public void setLocation(Location loc)
49      {
50          this.Location = loc;
51      }
52  
53      public void setLocation(double a, double b, double c)
54      {
55          this.Location = new Location(a, b, c);
56      }
57  
58      public void setMount(String mount)
59      {
60          this.Mount = mount;
61      }
62  
63      public void setName(String name)
64      {
65          this.Name = name;
66      }
67  
68      public void setOrientation(Rotation orientation)
69      {
70          this.Orientation = orientation;
71      }
72  
73      public void setOrientation(double x, double y, double z)
74      {
75          this.Orientation = new Rotation(x, y, z);
76      }
77  }