Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Class Members | File Members | Related Pages

VPPoint3D Class Reference

Storage and manipulation of 3D points. More...

#include <vppoint3d.h>

Inheritance diagram for VPPoint3D:

VPPoint VPVector3D VPVertex3D List of all members.

Public Member Functions

 VPPoint3D ()
 Creates the point 0,0,0.
 VPPoint3D (float xi, float yi, float zi)
 Class "VPPoint3D" constructor with parameters.
float vpGetX () const
float vpGetY () const
float vpGetZ () const
void vpGetXY (float &xx, float &yy) const
void vpGetXZ (float &xx, float &zz) const
void vpGetYZ (float &yy, float &zz) const
void vpGetXYZ (float &xx, float &yy, float &zz) const
VPPoint3D vpGetPoint3D (void) const
 Returns a copy of itself.
float * vpGetPointAsArray (void) const
 Get the point value.
void vpGetPoint (float v[]) const
 Put the point value in an array.
void vpSetX (float xx)
void vpSetY (float yy)
void vpSetZ (float zz)
void vpSetXY (float xx, float yy)
void vpSetXZ (float xx, float zz)
void vpSetYZ (float yy, float zz)
void vpSetXYZ (float xx, float yy, float zz)
VPPoint3D operator= (VPPoint3D p)
 Implements the overload of = operator.
VPPoint3D operator- (const VPPoint3D &) const
 Implements the overload of - operator.
VPPoint3D operator+ (const VPPoint3D &) const
 Implements the overload of + operator.
VPPoint3D operator * (float num)
 Implements the overload of * operator. Warning: (by Bruno) this operator actually behaves like *= !
VPPoint3D operator-= (int num)
 Implements the overload of -= operator.
bool operator!= (const VPPoint3D &) const
 Implements the overload of != operator.
bool operator== (const VPPoint3D &) const
 Implements the overload of == operator.
bool operator<= (const VPPoint3D &) const
 Compares two points, returns true if the points are equal or the point on the left is smaller.
bool operator< (const VPPoint3D &) const
 Compares two points, returns true if the point on the left is smaller.
bool operator>= (const VPPoint3D &) const
 Compares two points, returns true if the points are equal or the point on the left is bigger.
bool operator> (const VPPoint3D &) const
 Compares two points, returns true if the point on the left is bigger.
float vpDistance (VPPoint3D p1) const
 Calculates the distance between two points.

Public Attributes

float x
 Point's X coordinate.
float y
float z

Detailed Description

Storage and manipulation of 3D points.

Contain the VPPoint3D class implementation that is responsible for the 3D point operations. Warning: (by Bruno) IMHO the VPPoint4D turns this class decrepted. Before this class is removed from VPAT new methods must be added to VPPoint4D.
Superclass: VPPoint

Deprecated:

Definition at line 25 of file vppoint3d.h.


Constructor & Destructor Documentation

VPPoint3D::VPPoint3D  ) 
 

Creates the point 0,0,0.

Definition at line 27 of file vppoint3d.cpp.

References x, y, and z.

VPPoint3D::VPPoint3D float  xi,
float  yi,
float  zi
 

Class "VPPoint3D" constructor with parameters.

Parameters:
xi initial x
yi initial y
zi initial z

Definition at line 33 of file vppoint3d.cpp.

References x, y, and z.


Member Function Documentation

VPPoint3D VPPoint3D::operator * float  num  ) 
 

Implements the overload of * operator. Warning: (by Bruno) this operator actually behaves like *= !

Parameters:
float num (number for multiplication)
Returns:
VPPoint3D (current object)

Definition at line 150 of file vppoint3d.cpp.

References x, y, and z.

bool VPPoint3D::operator!= const VPPoint3D  )  const
 

Implements the overload of != operator.

Parameters:
const VPPoint3D& p (object to be compared)
Returns:
true or false

Definition at line 158 of file vppoint3d.cpp.

References x, y, and z.

VPPoint3D VPPoint3D::operator+ const VPPoint3D  )  const
 

Implements the overload of + operator.

Parameters:
VPPoint3D p (object that has the value for the operation)
const VPPoint3D& p
Returns:
VPPoint3D (result from "+" operation)

Definition at line 130 of file vppoint3d.cpp.

References x, y, and z.

VPPoint3D VPPoint3D::operator- const VPPoint3D  )  const
 

Implements the overload of - operator.

Parameters:
VPPoint3D p (object that has the value for the operation)
const VPPoint3D& p
Returns:
VPPoint3D (result from "-" operation)

Definition at line 125 of file vppoint3d.cpp.

References x, y, and z.

VPPoint3D VPPoint3D::operator-= int  num  ) 
 

Implements the overload of -= operator.

Parameters:
int num (number for subtraction)
Returns:
VPPoint3D (current object)

Definition at line 142 of file vppoint3d.cpp.

References x, y, and z.

bool VPPoint3D::operator< const VPPoint3D  )  const
 

Compares two points, returns true if the point on the left is smaller.

Parameters:
const VPPoint3D p (object to be compared)
Returns:
true or false

Definition at line 182 of file vppoint3d.cpp.

References x, y, and z.

bool VPPoint3D::operator<= const VPPoint3D  )  const
 

Compares two points, returns true if the points are equal or the point on the left is smaller.

Parameters:
const VPPoint3D p (object to be compared)
Returns:
true or false

Definition at line 174 of file vppoint3d.cpp.

References x, y, and z.

VPPoint3D VPPoint3D::operator= VPPoint3D  p  ) 
 

Implements the overload of = operator.

Parameters:
VPPoint3D p (object that has the new value for the attributes of the class)
const VPPoint3D& p
Returns:
VPPoint3D (current object)

Definition at line 135 of file vppoint3d.cpp.

References x, y, and z.

bool VPPoint3D::operator== const VPPoint3D  )  const
 

Implements the overload of == operator.

Parameters:
const VPPoint3D p (object to be compared)
Returns:
true or false

Definition at line 166 of file vppoint3d.cpp.

References x, y, and z.

bool VPPoint3D::operator> const VPPoint3D  )  const
 

Compares two points, returns true if the point on the left is bigger.

Parameters:
const VPPoint3D p (object to be compared)
Returns:
true or false

Definition at line 198 of file vppoint3d.cpp.

References x, y, and z.

bool VPPoint3D::operator>= const VPPoint3D  )  const
 

Compares two points, returns true if the points are equal or the point on the left is bigger.

Parameters:
const VPPoint3D p (object to be compared)
Returns:
true or false

Definition at line 190 of file vppoint3d.cpp.

References x, y, and z.

float VPPoint3D::vpDistance VPPoint3D  p1  )  const
 

Calculates the distance between two points.

Parameters:
VPPoint3D p
Returns:
float distance

Definition at line 205 of file vppoint3d.cpp.

References x, y, and z.

void VPPoint3D::vpGetPoint float  v[]  )  const
 

Put the point value in an array.

Parameters:
float v

Definition at line 85 of file vppoint3d.cpp.

References x, y, and z.

VPPoint3D VPPoint3D::vpGetPoint3D void   )  const
 

Returns a copy of itself.

Returns:
A copy of itself

Definition at line 72 of file vppoint3d.cpp.

float * VPPoint3D::vpGetPointAsArray void   )  const
 

Get the point value.

The user should free the array memory allocated by this method!

Returns:
pointer to the array

Definition at line 76 of file vppoint3d.cpp.

References x, y, and z.

float VPPoint3D::vpGetX  )  const
 

Definition at line 39 of file vppoint3d.cpp.

References x.

Referenced by VPVector3D::operator-(), VPPoint4D::operator=(), VPPlane::TestPoint(), VPCutPlane::vpDComputation(), VPSlice::vpFrontInnerStructRender(), VPSlice::vpFrontSliceRender(), VPVector3D::vpGetVector3D(), VPSlice::vpLineFrontSliceRender(), VPSlice::vpLineTopSliceRender(), VPMatrix::vpMultiply(), VPCutPlane::vpPlaneComputation(), VPPoint4D::VPPoint4D(), VPSlice::vpTopSliceRender(), and VPSlice::vpTrilinearInterpolation().

void VPPoint3D::vpGetXY float &  xx,
float &  yy
const
 

Definition at line 51 of file vppoint3d.cpp.

References x, and y.

void VPPoint3D::vpGetXYZ float &  xx,
float &  yy,
float &  zz
const
 

Definition at line 66 of file vppoint3d.cpp.

References x, y, and z.

void VPPoint3D::vpGetXZ float &  xx,
float &  zz
const
 

Definition at line 56 of file vppoint3d.cpp.

References x, and z.

float VPPoint3D::vpGetY  )  const
 

Definition at line 43 of file vppoint3d.cpp.

References y.

Referenced by VPVector3D::operator-(), VPPoint4D::operator=(), VPPlane::TestPoint(), VPCutPlane::vpDComputation(), VPSlice::vpFrontInnerStructRender(), VPSlice::vpFrontSliceRender(), VPVector3D::vpGetVector3D(), VPSlice::vpLineFrontSliceRender(), VPSlice::vpLineSideSliceRender(), VPMatrix::vpMultiply(), VPCutPlane::vpPlaneComputation(), VPPoint4D::VPPoint4D(), VPSlice::vpSideInnerStructRender(), VPSlice::vpSideSliceRender(), and VPSlice::vpTrilinearInterpolation().

void VPPoint3D::vpGetYZ float &  yy,
float &  zz
const
 

Definition at line 61 of file vppoint3d.cpp.

References y, and z.

float VPPoint3D::vpGetZ  )  const
 

Definition at line 47 of file vppoint3d.cpp.

References z.

Referenced by VPVector3D::operator-(), VPPoint4D::operator=(), VPPlane::TestPoint(), VPCutPlane::vpDComputation(), VPVector3D::vpGetVector3D(), VPSlice::vpLineSideSliceRender(), VPSlice::vpLineTopSliceRender(), VPMatrix::vpMultiply(), VPCutPlane::vpPlaneComputation(), VPPoint4D::VPPoint4D(), VPSlice::vpSideInnerStructRender(), VPSlice::vpSideSliceRender(), VPSlice::vpTopSliceRender(), and VPSlice::vpTrilinearInterpolation().

void VPPoint3D::vpSetX float  xx  ) 
 

Definition at line 92 of file vppoint3d.cpp.

References x.

Referenced by VPSlice::vpLineSideSliceRender(), VPSlice::vpSideInnerStructRender(), and VPSlice::vpSideSliceRender().

void VPPoint3D::vpSetXY float  xx,
float  yy
 

Definition at line 104 of file vppoint3d.cpp.

References x, and y.

void VPPoint3D::vpSetXYZ float  xx,
float  yy,
float  zz
 

Definition at line 119 of file vppoint3d.cpp.

References x, y, and z.

Referenced by VPMatrix::vpMultiply().

void VPPoint3D::vpSetXZ float  xx,
float  zz
 

Definition at line 109 of file vppoint3d.cpp.

References x, and z.

void VPPoint3D::vpSetY float  yy  ) 
 

Definition at line 96 of file vppoint3d.cpp.

References y.

Referenced by VPSlice::vpLineTopSliceRender(), VPSlice::vpTopInnerStructRender(), and VPSlice::vpTopSliceRender().

void VPPoint3D::vpSetYZ float  yy,
float  zz
 

Definition at line 114 of file vppoint3d.cpp.

References y, and z.

void VPPoint3D::vpSetZ float  zz  ) 
 

Definition at line 100 of file vppoint3d.cpp.

References z.

Referenced by VPSlice::vpFrontInnerStructRender(), VPSlice::vpFrontSliceRender(), and VPSlice::vpLineFrontSliceRender().


Member Data Documentation

float VPPoint3D::x
 

Point's X coordinate.

Definition at line 28 of file vppoint3d.h.

Referenced by VPRayCasting::Gradient(), VPRayCasting::GradientSobel(), VPVector3D::operator *(), operator *(), VPVector3D::operator *=(), VPVector3D::operator!=(), operator!=(), operator+(), VPVector3D::operator+=(), VPVector3D::operator-(), operator-(), VPVector3D::operator-=(), operator-=(), VPVector3D::operator/(), VPVector3D::operator/=(), operator<(), operator<=(), operator=(), VPVector3D::operator==(), operator==(), operator>(), operator>=(), VPRayCasting::Shade(), VPVolume::vpAdjustScale(), VPVector3D::vpCrossProduct(), VPRayCasting::vpDefineA(), VPRayCasting::vpDefineB(), vpDistance(), VPVector3D::vpDotProduct(), VPRayCasting::vpFindIntersectionCandidatePlanes(), VPRayCasting::vpFindIntersectionPoints(), VPSlice::vpFindPntInsideFrontalSlice(), VPSlice::vpFindPointInsideAxialSlice(), VPRayCasting::vpFindSphereIntersectionPoints(), VPSlice::vpFrontInnerStructRender(), VPVolume::vpGetCentralDifferenceGradient(), VPVolume::vpGetLinearGradientEstimation(), vpGetPoint(), vpGetPointAsArray(), VPVolume::vpGetSobelGradient(), VPVector3D::vpGetVector3D(), VPVector3D::vpGetVector3DX(), VPVector3D::vpGetVector3DZ(), vpGetX(), vpGetXY(), vpGetXYZ(), vpGetXZ(), VPRayCasting::vpGradientComputation(), VPVector3D::vpModule(), VPVector3D::vpNormalize(), VPRayCasting::vpOtherSampleColorAndShading(), VPPoint3D(), VPVolume::vpProcessCenterFocalPoint(), VPVolume::vpProcessLightedVolume(), VPTable::vpProcessMaxGradient(), VPRayCasting::VPRayCasting(), VPRayCasting::vpRenderLivroInnerStructures(), VPRayCasting::vpRenderLivroMIP(), VPRayCasting::vpRenderLivroMonoColor(), VPRayCasting::vpRenderLivroMonoColorInnerStructures(), VPRayCasting::vpRenderLivroMonoGray(), VPRayCasting::vpRenderLivroMultiInnerStructures(), VPRayCasting::vpRenderLivroMultiModal(), VPRayCasting::vpRenderMIP(), VPRayCasting::vpRenderNoLightMonoGray(), VPRayCasting::vpSetCameraDefault(), VPRayCasting::vpSetDefaultParameters(), VPRayCasting::vpSetEndSBand(), VPRayCasting::vpSetEndTBand(), VPRayCasting::vpSetVariables(), VPVector3D::vpSetVector3D(), vpSetX(), vpSetXY(), vpSetXYZ(), vpSetXZ(), VPSlice::vpSideInnerStructRender(), VPSlice::vpTopInnerStructRender(), VPRayCasting::vpTriLinearGouraudInterpolation(), VPRayCasting::vpTrilinearInterpolation(), VPRayCasting::vpTriLinearInterpolationAndGradientComputation(), VPVector3D::VPVector3D(), and VPVertex3D::VPVertex3D().

float VPPoint3D::y
 

Definition at line 29 of file vppoint3d.h.

Referenced by VPRayCasting::Gradient(), VPRayCasting::GradientSobel(), VPVector3D::operator *(), operator *(), VPVector3D::operator *=(), VPVector3D::operator!=(), operator!=(), operator+(), VPVector3D::operator+=(), VPVector3D::operator-(), operator-(), VPVector3D::operator-=(), operator-=(), VPVector3D::operator/(), VPVector3D::operator/=(), operator<(), operator<=(), operator=(), VPVector3D::operator==(), operator==(), operator>(), operator>=(), VPRayCasting::Shade(), VPVolume::vpAdjustScale(), VPVector3D::vpCrossProduct(), VPRayCasting::vpDefineA(), VPRayCasting::vpDefineB(), vpDistance(), VPVector3D::vpDotProduct(), VPRayCasting::vpFindIntersectionCandidatePlanes(), VPRayCasting::vpFindIntersectionPoints(), VPSlice::vpFindPntInsideFrontalSlice(), VPSlice::vpFindPntInsideSagittalSlice(), VPRayCasting::vpFindSphereIntersectionPoints(), VPSlice::vpFrontInnerStructRender(), VPSlice::vpFrontSliceRender(), VPVolume::vpGetCentralDifferenceGradient(), VPVolume::vpGetLinearGradientEstimation(), vpGetPoint(), vpGetPointAsArray(), VPVolume::vpGetSobelGradient(), VPVector3D::vpGetVector3D(), VPVector3D::vpGetVector3DX(), vpGetXY(), vpGetXYZ(), vpGetY(), vpGetYZ(), VPRayCasting::vpGradientComputation(), VPSlice::vpLineFrontSliceRender(), VPSlice::vpLineSideSliceRender(), VPVector3D::vpModule(), VPVector3D::vpNormalize(), VPRayCasting::vpOtherSampleColorAndShading(), VPPoint3D(), VPVolume::vpProcessCenterFocalPoint(), VPVolume::vpProcessLightedVolume(), VPTable::vpProcessMaxGradient(), VPRayCasting::VPRayCasting(), VPRayCasting::vpRenderLivroInnerStructures(), VPRayCasting::vpRenderLivroMIP(), VPRayCasting::vpRenderLivroMonoColor(), VPRayCasting::vpRenderLivroMonoColorInnerStructures(), VPRayCasting::vpRenderLivroMonoGray(), VPRayCasting::vpRenderLivroMultiInnerStructures(), VPRayCasting::vpRenderLivroMultiModal(), VPRayCasting::vpRenderMIP(), VPRayCasting::vpRenderNoLightMonoGray(), VPRayCasting::vpSetCameraDefault(), VPRayCasting::vpSetDefaultParameters(), VPRayCasting::vpSetEndSBand(), VPRayCasting::vpSetEndTBand(), VPRayCasting::vpSetVariables(), VPVector3D::vpSetVector3D(), vpSetXY(), vpSetXYZ(), vpSetY(), vpSetYZ(), VPSlice::vpSideInnerStructRender(), VPSlice::vpSideSliceRender(), VPSlice::vpTopInnerStructRender(), VPRayCasting::vpTriLinearGouraudInterpolation(), VPRayCasting::vpTrilinearInterpolation(), VPRayCasting::vpTriLinearInterpolationAndGradientComputation(), VPVector3D::VPVector3D(), and VPVertex3D::VPVertex3D().

float VPPoint3D::z
 

Definition at line 30 of file vppoint3d.h.

Referenced by VPRayCasting::Gradient(), VPRayCasting::GradientSobel(), VPVector3D::operator *(), operator *(), VPVector3D::operator *=(), VPVector3D::operator!=(), operator!=(), operator+(), VPVector3D::operator+=(), VPVector3D::operator-(), operator-(), VPVector3D::operator-=(), operator-=(), VPVector3D::operator/(), VPVector3D::operator/=(), operator<(), operator<=(), operator=(), VPVector3D::operator==(), operator==(), operator>(), operator>=(), VPRayCasting::Shade(), VPVolume::vpAdjustScale(), VPVector3D::vpCrossProduct(), VPRayCasting::vpDefineA(), VPRayCasting::vpDefineB(), vpDistance(), VPVector3D::vpDotProduct(), VPRayCasting::vpFindIntersectionCandidatePlanes(), VPRayCasting::vpFindIntersectionPoints(), VPSlice::vpFindPntInsideSagittalSlice(), VPSlice::vpFindPointInsideAxialSlice(), VPRayCasting::vpFindSphereIntersectionPoints(), VPSlice::vpFrontInnerStructRender(), VPVolume::vpGetCentralDifferenceGradient(), VPVolume::vpGetLinearGradientEstimation(), vpGetPoint(), vpGetPointAsArray(), VPVolume::vpGetSobelGradient(), VPVector3D::vpGetVector3D(), VPVector3D::vpGetVector3DX(), vpGetXYZ(), vpGetXZ(), vpGetYZ(), vpGetZ(), VPRayCasting::vpGradientComputation(), VPVector3D::vpModule(), VPVector3D::vpNormalize(), VPRayCasting::vpOtherSampleColorAndShading(), VPPoint3D(), VPVolume::vpProcessCenterFocalPoint(), VPVolume::vpProcessLightedVolume(), VPTable::vpProcessMaxGradient(), VPRayCasting::VPRayCasting(), VPRayCasting::vpRenderLivroInnerStructures(), VPRayCasting::vpRenderLivroMIP(), VPRayCasting::vpRenderLivroMonoColor(), VPRayCasting::vpRenderLivroMonoColorInnerStructures(), VPRayCasting::vpRenderLivroMonoGray(), VPRayCasting::vpRenderLivroMultiInnerStructures(), VPRayCasting::vpRenderLivroMultiModal(), VPRayCasting::vpRenderMIP(), VPRayCasting::vpRenderNoLightMonoGray(), VPRayCasting::vpSetCameraDefault(), VPRayCasting::vpSetDefaultParameters(), VPRayCasting::vpSetEndSBand(), VPRayCasting::vpSetEndTBand(), VPRayCasting::vpSetVariables(), VPVector3D::vpSetVector3D(), vpSetXYZ(), vpSetXZ(), vpSetYZ(), vpSetZ(), VPSlice::vpSideInnerStructRender(), VPSlice::vpTopInnerStructRender(), VPRayCasting::vpTriLinearGouraudInterpolation(), VPRayCasting::vpTrilinearInterpolation(), VPRayCasting::vpTriLinearInterpolationAndGradientComputation(), VPVector3D::VPVector3D(), and VPVertex3D::VPVertex3D().


The documentation for this class was generated from the following files:
Generated on Tue Sep 6 10:00:17 2005 for VPAT by  doxygen 1.4.4