Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

geometry.h File Reference

#include <string>
#include <vector>
#include <algorithm>

Include dependency graph for geometry.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Namespaces

namespace  EMAN

Classes

class  EMAN::IntSize
 IntSize is used to describe a 1D, 2D or 3D rectangular size in integers. More...
class  EMAN::FloatSize
 FloatSize is used to describe a 1D, 2D or 3D rectangular size in floating numbers. More...
class  EMAN::IntPoint
 IntPoint defines an integer-coordinate point in a 1D/2D/3D space. More...
class  EMAN::FloatPoint
 FloatPoint defines a float-coordinate point in a 1D/2D/3D space. More...
class  EMAN::Pixel
 Pixel describes a 3D pixel's coordinates and its intensity value. More...
class  EMAN::Region
 Region defines a 2D or 3D rectangular region specified by its origin coordinates and all edges' sizes. More...

Functions

IntPoint operator- (const IntPoint &p)
bool operator< (const Pixel &p1, const Pixel &p2)
bool operator== (const Pixel &p1, const Pixel &p2)
bool operator!= (const Pixel &p1, const Pixel &p2)


Function Documentation

bool EMAN::operator!= const Pixel p1,
const Pixel p2
 

Definition at line 62 of file geometry.cpp.

00063 {
00064         return !(p1 == p2);
00065 }

IntPoint EMAN::operator- const IntPoint p  ) 
 

Definition at line 41 of file geometry.cpp.

00042 {
00043         return IntPoint(-p[0],-p[1],-p[2]);
00044 }

bool EMAN::operator< const Pixel p1,
const Pixel p2
 

Definition at line 46 of file geometry.cpp.

References EMAN::Pixel::value.

00047 {
00048         if (p1.value < p2.value) {
00049                 return true;
00050         }
00051         return false;
00052 }

bool EMAN::operator== const Pixel p1,
const Pixel p2
 

Definition at line 54 of file geometry.cpp.

References EMAN::Pixel::value, EMAN::Pixel::x, EMAN::Pixel::y, and EMAN::Pixel::z.

00055 {
00056         if (p1.x == p2.x && p1.y == p2.y && p1.z == p2.z && p1.value == p2.value) {
00057                 return true;
00058         }
00059         return false;
00060 }


Generated on Tue Jun 11 13:46:49 2013 for EMAN2 by  doxygen 1.3.9.1