OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
Functions
ossimPointRecord.cpp File Reference
#include <ossim/point_cloud/ossimPointRecord.h>

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &out, const ossimPointRecord &p)
 

Function Documentation

◆ operator<<()

std::ostream& operator<< ( std::ostream &  out,
const ossimPointRecord p 
)

Definition at line 124 of file ossimPointRecord.cpp.

References ossimPointRecord::Blue, ossimPointRecord::GpsTime, ossimPointRecord::Green, ossimPointRecord::Infrared, ossimPointRecord::Intensity, ossimPointRecord::m_fieldMap, ossimPointRecord::m_pointId, ossimPointRecord::m_position, ossimPointRecord::NumberOfReturns, ossimPointRecord::Red, and ossimPointRecord::ReturnNumber.

125 {
126  out << "ossimPointCloudRecord for pointId: " << p.m_pointId
127  << "\n Position: " << p.m_position << ends;
128 
129  std::map<ossimPointRecord::FIELD_CODES, ossim_float32>::const_iterator iter = p.m_fieldMap.begin();
130  while (iter != p.m_fieldMap.end())
131  {
132  switch (iter->first)
133  {
135  out << "\n Intensity: ";
136  break;
138  out << "\n ReturnNumber: ";
139  break;
141  out << "\n NumberOfReturns: ";
142  break;
144  out << "\n Red: ";
145  break;
147  out << "\n Green: ";
148  break;
150  out << "\n Blue: ";
151  break;
153  out << "\n GpsTime: ";
154  break;
156  out << "\n Infrared: ";
157  break;
158  default:
159  out << "\n Unidentified: ";
160  }
161  out << iter->second;
162  ++iter;
163  }
164  return out;
165 }
ossim_uint32 m_pointId
std::map< FIELD_CODES, ossim_float32 > m_fieldMap