OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
PositionVectorRecord.h
Go to the documentation of this file.
1 //----------------------------------------------------------------------------
2 //
3 // "Copyright Centre National d'Etudes Spatiales"
4 //
5 // License: LGPL
6 //
7 // See LICENSE.txt file in the top level directory for more details.
8 //
9 //----------------------------------------------------------------------------
10 // $Id$
11 
12 #ifndef PositionVectorRecord_h
13 #define PositionVectorRecord_h
14 
15 #include <iostream>
17 
18 namespace ossimplugins
19 {
25 {
26 public:
31 
36 
41 
49  friend std::ostream& operator<<(std::ostream& os, const PositionVectorRecord& data);
50 
55 
59  double* get_pos()
60  {
61  return _pos;
62  };
63 
67  double* get_vel()
68  {
69  return _vel;
70  };
71 
72 protected:
76  double _pos[3];
80  double _vel[3];
81 private:
82 
83 };
84 }
85 #endif
This class is able to read a position vector record.
PositionVectorRecord & operator=(const PositionVectorRecord &rhs)
Copy operator.
double _vel[3]
Data point velocity (mm/s)
double * get_pos()
Data point position (m)
friend std::ostream & operator<<(std::ostream &os, const PositionVectorRecord &data)
This function writes the PositionVectorRecord in a stream.
double * get_vel()
Data point velocity (mm/s)
friend std::istream & operator>>(std::istream &is, PositionVectorRecord &data)
This function reads a PositionVectorRecord from a stream.
double _pos[3]
Data point position (m)
std::basic_istream< char > istream
Base class for char input streams.
Definition: ossimIosFwd.h:20
std::basic_ostream< char > ostream
Base class for char output streams.
Definition: ossimIosFwd.h:23