OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimFpt3d.cpp
Go to the documentation of this file.
1 //*******************************************************************
2 //
3 // License: See top level LICENSE.txt file.
4 //
5 // Author: David Burken (dburken@imagelinks.com)
6 // Description:
7 //
8 // Contains class definitions for ossimFpt3d.
9 //
10 //*******************************************************************
11 // $Id: ossimFpt3d.cpp 9963 2006-11-28 21:11:01Z gpotts $
12 
13 #include <iostream>
14 #include <iomanip>
15 using namespace std;
16 
17 #include <ossim/base/ossimFpt3d.h>
18 
19 //*******************************************************************
20 // Public Method:
21 //*******************************************************************
23 {
24  os << setiosflags(ios::fixed) << setprecision(14)
25  << "( " << x << " " << y << " " << z << " )";
26  return os;
27 }
28 
29 //*******************************************************************
30 // friend function:
31 //*******************************************************************
33 {
34  return pt.print(os);
35 }
36 
37 //*******************************************************************
38 // friend function:
39 //*******************************************************************
41 {
42  is >> pt.x >> pt.y >> pt.z;
43 
44  return is;
45 }
ossim_float32 z
Definition: ossimFpt3d.h:46
ossim_uint32 x
ostream & operator<<(ostream &os, const ossimFpt3d &pt)
Definition: ossimFpt3d.cpp:32
ossim_uint32 y
ostream & print(ostream &os) const
Definition: ossimFpt3d.cpp:22
ossim_float32 y
Definition: ossimFpt3d.h:45
std::basic_istream< char > istream
Base class for char input streams.
Definition: ossimIosFwd.h:20
ossim_float32 x
Definition: ossimFpt3d.h:44
std::basic_ostream< char > ostream
Base class for char output streams.
Definition: ossimIosFwd.h:23
istream & operator>>(istream &is, ossimFpt3d &pt)
Definition: ossimFpt3d.cpp:40