#include <vppoint3d.h>
Inheritance diagram for VPPoint3D:
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 |
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
Definition at line 25 of file vppoint3d.h.
|
Creates the point 0,0,0.
Definition at line 27 of file vppoint3d.cpp. |
|
Class "VPPoint3D" constructor with parameters.
Definition at line 33 of file vppoint3d.cpp. |
|
Implements the overload of * operator. Warning: (by Bruno) this operator actually behaves like *= !
Definition at line 150 of file vppoint3d.cpp. |
|
Implements the overload of != operator.
Definition at line 158 of file vppoint3d.cpp. |
|
Implements the overload of + operator.
Definition at line 130 of file vppoint3d.cpp. |
|
Implements the overload of - operator.
Definition at line 125 of file vppoint3d.cpp. |
|
Implements the overload of -= operator.
Definition at line 142 of file vppoint3d.cpp. |
|
Compares two points, returns true if the point on the left is smaller.
Definition at line 182 of file vppoint3d.cpp. |
|
Compares two points, returns true if the points are equal or the point on the left is smaller.
Definition at line 174 of file vppoint3d.cpp. |
|
Implements the overload of = operator.
Definition at line 135 of file vppoint3d.cpp. |
|
Implements the overload of == operator.
Definition at line 166 of file vppoint3d.cpp. |
|
Compares two points, returns true if the point on the left is bigger.
Definition at line 198 of file vppoint3d.cpp. |
|
Compares two points, returns true if the points are equal or the point on the left is bigger.
Definition at line 190 of file vppoint3d.cpp. |
|
Calculates the distance between two points.
Definition at line 205 of file vppoint3d.cpp. |
|
Put the point value in an array.
Definition at line 85 of file vppoint3d.cpp. |
|
Returns a copy of itself.
Definition at line 72 of file vppoint3d.cpp. |
|
Get the point value. The user should free the array memory allocated by this method!
Definition at line 76 of file vppoint3d.cpp. |
|
|
Definition at line 51 of file vppoint3d.cpp. |
|
Definition at line 66 of file vppoint3d.cpp. |
|
Definition at line 56 of file vppoint3d.cpp. |
|
|
Definition at line 61 of file vppoint3d.cpp. |
|
|
Definition at line 92 of file vppoint3d.cpp. References x. Referenced by VPSlice::vpLineSideSliceRender(), VPSlice::vpSideInnerStructRender(), and VPSlice::vpSideSliceRender(). |
|
Definition at line 104 of file vppoint3d.cpp. |
|
Definition at line 119 of file vppoint3d.cpp. Referenced by VPMatrix::vpMultiply(). |
|
Definition at line 109 of file vppoint3d.cpp. |
|
Definition at line 96 of file vppoint3d.cpp. References y. Referenced by VPSlice::vpLineTopSliceRender(), VPSlice::vpTopInnerStructRender(), and VPSlice::vpTopSliceRender(). |
|
Definition at line 114 of file vppoint3d.cpp. |
|
Definition at line 100 of file vppoint3d.cpp. References z. Referenced by VPSlice::vpFrontInnerStructRender(), VPSlice::vpFrontSliceRender(), and VPSlice::vpLineFrontSliceRender(). |
|
|
|