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

vu15121 Class Reference

The base class for bcc unimodal 3d 1 byte data in the vuVolume data tree. More...

#include <1B.h>

Inheritance diagram for vu15121:

Inheritance graph
[legend]
Collaboration diagram for vu15121:

Collaboration graph
[legend]
List of all members.

Public Member Functions

virtual bool read (void)
 Reads volume data from the data file set with setFileName().
virtual bool write (void)
 Writes volume data to the data file set with setFileName().
unsigned char getDataValue (unsigned int x, unsigned int y, unsigned int z)
 This will return the value stored at (x, y, z).
double getDataValue (vuVector point)
 this will return the data value associated with the vuVector point
vuVector getGradient (unsigned int i, unsigned int j, unsigned int k)
 This will return the the gradient at point i, j, k.
vuVector getGradient (vuVector point)
 This will return the gradient of the nearest neighbour to point.

Protected Member Functions

bool read (FILE *file)
 Asserts that the file is 3d data and reads the associated information.
bool write (FILE *file)
 Writes the general 3d data information to the file.

Detailed Description

The base class for bcc unimodal 3d 1 byte data in the vuVolume data tree.

Definition at line 10 of file BCC/Unimodal/3d/1B/1B.h.


Member Function Documentation

double vu15121::getDataValue vuVector  point  ) 
 

this will return the data value associated with the vuVector point

This currently uses the data value stored at the nearest neighbour.

This returns a dboule in case it is later overwritten to use interpolation to determine the value.

Definition at line 138 of file BCC/Unimodal/3d/1B/1B.cpp.

References getDataValue(), and T.

Here is the call graph for this function:

unsigned char vu15121::getDataValue unsigned int  x,
unsigned int  y,
unsigned int  z
 

This will return the value stored at (x, y, z).

If x,, y or z are out of range, then this will return 0

Definition at line 130 of file BCC/Unimodal/3d/1B/1B.cpp.

Referenced by vu1512121::computeGradient(), vu1512121::DrawSurfaceInSimplex(), getDataValue(), getGradient(), vu1512113::renderImage(), and vu1512122::renderImage().

vuVector vu15121::getGradient vuVector  point  ) 
 

This will return the gradient of the nearest neighbour to point.

Definition at line 184 of file BCC/Unimodal/3d/1B/1B.cpp.

References getGradient(), and T.

Here is the call graph for this function:

vuVector vu15121::getGradient unsigned int  i,
unsigned int  j,
unsigned int  k
 

This will return the the gradient at point i, j, k.

Except that If k 2 == 1, then i and j will be incremented.

and

k be measured wider...

Definition at line 172 of file BCC/Unimodal/3d/1B/1B.cpp.

References getDataValue().

Referenced by getGradient(), vu1512113::renderImage(), and vu1512122::renderImage().

Here is the call graph for this function:

bool vu15121::read FILE *  file  )  [protected, virtual]
 

Asserts that the file is 3d data and reads the associated information.

This method reads in the general information for 3d data sets. It also asserts whether the data is indeed 3d or not.

Returns:
True if successful (data is bcc), false otherwise.

Reimplemented from vu1512.

Definition at line 46 of file BCC/Unimodal/3d/1B/1B.cpp.

References byte, dword, vu1::read(), vu1::setInvalidFormatError(), and size.

Here is the call graph for this function:

bool vu15121::read void   )  [virtual]
 

Reads volume data from the data file set with setFileName().

This implements the abstract read() method from the general Volume class. If the read is successful, the function returns true. If the file does not exist or is in an invalid format, the function returns false. In this case, the error information is set for the instance.

Returns:
True if successful, false otherwise.

Implements vu1.

Reimplemented in vu1512113, vu1512119, vu1512112, vu1512111, vu1512122, and vu1512121.

Definition at line 8 of file BCC/Unimodal/3d/1B/1B.cpp.

References vuString::isEmpty(), and vu1::setError().

Referenced by vu1512111::read(), vu1512112::read(), vu1512119::read(), vu1512113::read(), vu1512121::read(), and vu1512122::read().

Here is the call graph for this function:

bool vu15121::write FILE *  file  )  [protected, virtual]
 

Writes the general 3d data information to the file.

Returns:
True if successful, false otherwise.

Reimplemented from vu1512.

Definition at line 92 of file BCC/Unimodal/3d/1B/1B.cpp.

References byte, vuString::c_str(), dword, vuString::isEmpty(), vu1::setWriteError(), size, and vu1::write().

Here is the call graph for this function:

bool vu15121::write void   )  [virtual]
 

Writes volume data to the data file set with setFileName().

This implements the abstract write() method from the general Volume class.

Returns:
True if successful, false otherwise.

Implements vu1.

Definition at line 27 of file BCC/Unimodal/3d/1B/1B.cpp.

References vuString::isEmpty(), and vu1::setError().

Here is the call graph for this function:


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