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

vuUDSphere Class Reference

#include <vuUDSphere.h>

Collaboration diagram for vuUDSphere:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 vuUDSphere (int _size=256)
 ~vuUDSphere (void)
bool advancePoints (void)
bool doesFileExist (void)
void writeToFile (void)
void readFromFile (void)
int getSize (void)
Point3d getPointAt (int idx)
void calculate (void)
void lazyCalculate (void)

Private Member Functions

void makeRandomPoint (Point3d &p)
void initPoints (void)
void computeForces (Point3d &p0, Point3d &p1)

Private Attributes

Point3dm_P
double m_dt
double m_Tolerance
int m_Size

Constructor & Destructor Documentation

vuUDSphere::vuUDSphere int  _size = 256  ) 
 

Definition at line 8 of file vuUDSphere.cpp.

References initPoints(), m_dt, m_P, m_Size, m_Tolerance, and TWO_PI.

Here is the call graph for this function:

vuUDSphere::~vuUDSphere void   ) 
 

Definition at line 18 of file vuUDSphere.cpp.


Member Function Documentation

bool vuUDSphere::advancePoints void   ) 
 

Definition at line 88 of file vuUDSphere.cpp.

References computeForces(), Point3d::fx, Point3d::fy, Point3d::fz, m_dt, m_P, m_Tolerance, min, Point3d::x, Point3d::y, and Point3d::z.

Referenced by calculate().

Here is the call graph for this function:

void vuUDSphere::calculate void   ) 
 

Definition at line 224 of file vuUDSphere.cpp.

References advancePoints().

Referenced by lazyCalculate().

Here is the call graph for this function:

void vuUDSphere::computeForces Point3d p0,
Point3d p1
[private]
 

Definition at line 56 of file vuUDSphere.cpp.

References Point3d::fx, Point3d::fy, Point3d::fz, Point3d::x, Point3d::y, and Point3d::z.

Referenced by advancePoints().

bool vuUDSphere::doesFileExist void   ) 
 

Definition at line 163 of file vuUDSphere.cpp.

References m_Size.

Referenced by lazyCalculate().

Point3d vuUDSphere::getPointAt int  idx  ) 
 

Definition at line 218 of file vuUDSphere.cpp.

References assert, m_P, and m_Size.

Referenced by Scanner::_renderView(), and FourierSlicer< SIZE >::_renderView().

int vuUDSphere::getSize void   ) 
 

Definition at line 213 of file vuUDSphere.cpp.

References m_Size.

void vuUDSphere::initPoints void   )  [private]
 

Definition at line 45 of file vuUDSphere.cpp.

References m_P, makeRandomPoint(), Point3d::x, Point3d::y, and Point3d::z.

Referenced by vuUDSphere().

Here is the call graph for this function:

void vuUDSphere::lazyCalculate void   ) 
 

Definition at line 228 of file vuUDSphere.cpp.

References calculate(), doesFileExist(), readFromFile(), and writeToFile().

Referenced by FourierSlicer< SIZE >::FourierSlicer(), and Scanner::Scanner().

Here is the call graph for this function:

void vuUDSphere::makeRandomPoint Point3d p  )  [private]
 

Definition at line 27 of file vuUDSphere.cpp.

References Point3d::set().

Referenced by initPoints().

Here is the call graph for this function:

void vuUDSphere::readFromFile void   ) 
 

Definition at line 196 of file vuUDSphere.cpp.

References m_P, m_Size, and Point3d::set().

Referenced by lazyCalculate().

Here is the call graph for this function:

void vuUDSphere::writeToFile void   ) 
 

Definition at line 177 of file vuUDSphere.cpp.

References m_P, m_Size, Point3d::x, Point3d::y, and Point3d::z.

Referenced by lazyCalculate().


Member Data Documentation

double vuUDSphere::m_dt [private]
 

Definition at line 68 of file vuUDSphere.h.

Referenced by advancePoints(), and vuUDSphere().

Point3d* vuUDSphere::m_P [private]
 

Definition at line 67 of file vuUDSphere.h.

Referenced by advancePoints(), getPointAt(), initPoints(), readFromFile(), vuUDSphere(), and writeToFile().

int vuUDSphere::m_Size [private]
 

Definition at line 70 of file vuUDSphere.h.

Referenced by doesFileExist(), getPointAt(), getSize(), readFromFile(), vuUDSphere(), and writeToFile().

double vuUDSphere::m_Tolerance [private]
 

Definition at line 69 of file vuUDSphere.h.

Referenced by advancePoints(), and vuUDSphere().


The documentation for this class was generated from the following files:
Generated on Wed Dec 15 21:22:08 2004 for vuVolume by  doxygen 1.3.9.1