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

vu11122 Class Reference

#include <2B.h>

Inheritance diagram for vu11122:

Inheritance graph
[legend]
Collaboration diagram for vu11122:

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().
void generateLapWeightHistogram (const char *filename)
word getDataValue (unsigned int x, unsigned int y, unsigned int z)
 returns the value at position x,y,z
virtual void setViewVectors (const vuVector &, const vuVector &, const vuVector &)
 Empty implementation to satisfy virtual.
virtual void render ()
 Empty implementation to satisfy virtual.
bool createHistogram (vuHistogram &hist) const
 Creates a histogram in hist.
void remap (const vuMap &map)
 Remaps the intensities.

Protected Member Functions

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

Friends

class vuConvert
bool readFreZ (vu11122 &volume, const vuString &filemask, int startID, int endID, int incID=1)
 A friend to read fre.Z format from the visible human project.

Member Function Documentation

bool vu11122::createHistogram vuHistogram hist  )  const [virtual]
 

Creates a histogram in hist.

This is just a preliminary version of histogram creation. See class vuHistogram for a more detailed discussion.

Returns:
false - could not create histogram type

Reimplemented from vu1112.

Definition at line 273 of file 2B.cpp.

References dword, vuHistogram::getType(), vuHistogram::recordIntensity(), vuHistogram::reset(), and word.

Here is the call graph for this function:

void vu11122::generateLapWeightHistogram const char *  filename  ) 
 

laplacian weighted histogram and isosurface area see V.Pekar, R.Wienker, D.Hempel, "Fast Detection of Meaningful Isosurfaces for Volume Data Visualization", in Proccedings of IEEE Visualization 2001

Parameters:
filename name of the textfile to write the histogram to

Definition at line 147 of file 2B.cpp.

References getDataValue().

Here is the call graph for this function:

word vu11122::getDataValue unsigned int  x,
unsigned int  y,
unsigned int  z
 

returns the value at position x,y,z

Definition at line 139 of file 2B.cpp.

References word.

Referenced by generateLapWeightHistogram().

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

Asserts that the file is 2B data and reads the associated information.

This method reads in the general information for 2B data sets. It also asserts whether the data is indeed 2B or not. !!By now this is just a copy of the 1B function. This has to be fixed!!!

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

Reimplemented from vu1112.

Definition at line 48 of file 2B.cpp.

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

Here is the call graph for this function:

bool vu11122::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 vu1112211.

Definition at line 10 of file 2B.cpp.

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

Referenced by main().

Here is the call graph for this function:

void vu11122::remap const vuMap map  )  [virtual]
 

Remaps the intensities.

Reimplemented from vu1112.

Definition at line 285 of file 2B.cpp.

References dword, and word.

Referenced by main().

virtual void vu11122::render void   )  [inline, virtual]
 

Empty implementation to satisfy virtual.

Implements vu1.

Reimplemented in vu1112211.

Definition at line 50 of file 2B.h.

virtual void vu11122::setViewVectors const vuVector ,
const vuVector ,
const vuVector
[inline, virtual]
 

Empty implementation to satisfy virtual.

Implements vu1.

Definition at line 48 of file 2B.h.

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

Writes the general 3d data information to the file.

Returns:
True if successful, false otherwise.

Reimplemented from vu1112.

Definition at line 101 of file 2B.cpp.

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

Here is the call graph for this function:

bool vu11122::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 28 of file 2B.cpp.

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

Referenced by main().

Here is the call graph for this function:


Friends And Related Function Documentation

bool readFreZ vu11122 volume,
const vuString filemask,
int  startID,
int  endID,
int  incID = 1
[friend]
 

A friend to read fre.Z format from the visible human project.

Definition at line 232 of file 2B.cpp.

friend class vuConvert [friend]
 

Definition at line 16 of file 2B.h.


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