Main Page   Packages   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Search  

C:/temp/src/j2k/Beta/3D/Sommet.cpp File Reference

#include "sommet.hpp"
#include <math.h>

Go to the source code of this file.

Functions

istream & operator>> (istream &in, const Pixel &p)
istream & operator>> (istream &in, const Sommet2D &s)
istream & operator>> (istream &in, const Sommet3D &s)
istream & operator>> (istream &in, const Sommet3DH &s)
ostream & operator<< (ostream &out, const Pixel &&p)
ostream & operator<< (ostream &out, const Sommet2D &s)
ostream & operator<< (ostream &out, const Sommet3D &s)
ostream & operator<< (ostream &out, const Sommet3DH &s)


Function Documentation

ostream& operator<< ostream &    out,
const Sommet3DH   s
 

Definition at line 181 of file Sommet.cpp.

00182 {
00183   return out << s.x << ' ' << s.y << ' '
00184              << s.z << ' ' << s.w << '\n';
00185 }

ostream& operator<< ostream &    out,
const Sommet3D   s
 

Definition at line 176 of file Sommet.cpp.

00177 {
00178   return out << s.x << ' ' << s.y << ' ' << s.z << '\n';
00179 }

ostream& operator<< ostream &    out,
const Sommet2D   s
 

Definition at line 171 of file Sommet.cpp.

00172 { 
00173   return out << s.x << ' ' << s.y << '\n';
00174 }

ostream& operator<< ostream &    out,
const Pixel &&    p
 

Definition at line 166 of file Sommet.cpp.

00167 {
00168   return out << p.x << ' ' << p.y;
00169 }

istream& operator>> istream &    in,
const Sommet3DH   s
 

Definition at line 142 of file Sommet.cpp.

00143  {
00144  static char buf[20];  // static for optimization
00145 
00146  in >> buf;
00147  s.x = atof(buf);
00148 
00149  in >> buf;
00150  s.y = atof(buf);
00151 
00152  in >> buf;
00153  s.z = atof(buf);
00154 
00155  in >> buf;
00156  s.w = atof(buf);
00157 
00158  return in;
00159 }

istream& operator>> istream &    in,
const Sommet3D   s
 

Definition at line 126 of file Sommet.cpp.

00127  {
00128  static char buf[20];  // static for optimization
00129 
00130  in >> buf;
00131  s.x = atof(buf);
00132 
00133  in >> buf;
00134  s.y = atof(buf);
00135 
00136  in >> buf;
00137  s.z = atof(buf);
00138 
00139  return in;
00140  }

istream& operator>> istream &    in,
const Sommet2D   s
 

Definition at line 113 of file Sommet.cpp.

00114 {
00115  static char buf[20];  // static for optimization
00116 
00117  in >> buf;
00118  s.x = atof(buf);
00119 
00120  in >> buf;
00121  s.y = atof(buf);
00122 
00123  return in;
00124 }

istream& operator>> istream &    in,
const Pixel   p
 

Definition at line 93 of file Sommet.cpp.

00094 {
00095  return in >> p.x >> p.y;
00096 }


Generated on Sun Oct 14 18:46:48 2001 for Standard J2K Library by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001