OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
PositionVectorRecord.cpp
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 
13 
14 namespace ossimplugins
15 {
17 {
18 }
19 
21 {
22 }
23 
25 {
26  for (int i=0;i<3;i++)
27  {
28  os<<"pos["<<i<<"]:"<<data._pos[i]<<std::endl;
29  }
30 
31  for (int i=0;i<3;i++)
32  {
33  os<<"vel["<<i<<"]:"<<data._vel[i]<<std::endl;
34  }
35  return os;
36 }
37 
39 {
40  char buf[23];
41  buf[22] = '\0';
42 
43  for (int i=0;i<3;i++)
44  {
45  is.read(buf,22);
46  data._pos[i] = atof(buf);
47  }
48 
49  for (int i=0;i<3;i++)
50  {
51  is.read(buf,22);
52  data._vel[i] = atof(buf);
53  }
54  return is;
55 }
56 
58 {
59  for (int i=0;i<3;i++)
60  {
61  _pos[i] = rhs._pos[i];
62  }
63 
64  for (int i=0;i<3;i++)
65  {
66  _vel[i] = rhs._vel[i];
67  }
68 }
69 
71 {
72  for (int i=0;i<3;i++)
73  {
74  _pos[i] = rhs._pos[i];
75  }
76 
77  for (int i=0;i<3;i++)
78  {
79  _vel[i] = rhs._vel[i];
80  }
81  return *this;
82 }
83 }
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 _pos[3]
Data point position (m)
std::ostream & operator<<(std::ostream &os, const AlosPalsarData &data)
std::istream & operator>>(std::istream &is, AlosPalsarData &data)
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