40#ifndef LOCATION_DEFINITIONS_H
41#define LOCATION_DEFINITIONS_H
52 #define LOCATION_COMPARISON_DISTANCE (0.0)
80 Location(
double latitude,
double longitude,
double depth = 0,
double dist = LOCATION_COMPARISON_DISTANCE );
95 virtual Location*
create(
double latitude,
double longitude,
double depth = 0,
double dist = LOCATION_COMPARISON_DISTANCE )
const {
96 return new Location(latitude, longitude, depth, dist); }
151 virtual void setDepth(
double depth );
198 virtual double getX();
204 virtual double getY();
210 virtual double getZ();
3D-Coordinates (lat, long, depth) class definitions and functions library
Definition coordinates-definitions.h:403
virtual bool isValid() const
Definition coordinates-definitions.h:645
double getDepth() const
Definition coordinates-definitions.h:525
double getLatitude() const
Definition coordinates-definitions.h:175
double getLongitude() const
Definition coordinates-definitions.h:181
Class that stores the coordinates of moving entity.
Definition location-definitions.h:60
double bearing
Definition location-definitions.h:276
virtual void setVerticalOrientation(double angle)
Definition location-definitions.cpp:90
virtual void setLocation(const CoordZ &coordz)
Definition location-definitions.cpp:70
virtual Location * create(const CoordZ &coordz=CoordZ(), double dist=LOCATION_COMPARISON_DISTANCE) const
Definition location-definitions.h:104
virtual ~Location()
Definition location-definitions.h:85
virtual Location * create(double latitude, double longitude, double depth=0, double dist=LOCATION_COMPARISON_DISTANCE) const
Definition location-definitions.h:95
virtual double getLongitude()
Definition location-definitions.cpp:111
double comparison_distance
Definition location-definitions.h:252
virtual double getY()
Definition location-definitions.cpp:129
virtual double getVerticalOrientation()
Definition location-definitions.cpp:141
virtual double getLatitude()
Definition location-definitions.cpp:105
virtual void setLatitude(double lat)
Definition location-definitions.cpp:75
virtual void setHorizontalOrientation(double angle)
Definition location-definitions.cpp:95
virtual double getX()
Definition location-definitions.cpp:123
virtual double getZ()
Definition location-definitions.cpp:135
friend::std::ostream & operator<<(::std::ostream &os, const Location &instance)
Definition location-definitions.h:239
virtual bool isValid() const
Definition location-definitions.h:118
virtual void setLongitude(double lon)
Definition location-definitions.cpp:80
virtual double getHorizontalOrientation()
Definition location-definitions.cpp:146
virtual CoordZ getLocation()
Definition location-definitions.cpp:100
virtual double getBearing()
Definition location-definitions.cpp:151
double vertical_orientation
Definition location-definitions.h:265
virtual double getDepth()
Definition location-definitions.cpp:117
virtual bool isEquivalentTo(const woss::CoordZ &coordz)
Definition location-definitions.cpp:63
double horizontal_orientation
Definition location-definitions.h:271
virtual void setDepth(double depth)
Definition location-definitions.cpp:85
virtual Location * clone() const
Definition location-definitions.h:111
CoordZ curr_coordz
Definition location-definitions.h:258
Provides the interface for the woss::Coord and woss::CoordZ classes.