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

vu11121 Class Reference

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

#include <1B.h>

Inheritance diagram for vu11121:

Inheritance graph
[legend]
Collaboration diagram for vu11121:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 vu11121 ()
 vu11121 (byte *data, dword XSize, dword YSize, dword ZSize)
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 ()
byte getDataValue (unsigned int x, unsigned int y, unsigned int z) const
 returns the value at position x,y,z
void setViewVectors (const vuVector &, const vuVector &, const vuVector &)
 Empty implementation to satisfy virtual.
void render ()
 Empty implementation to satisfy virtual.
void cropFrom (const vu11121 &vol, word cube[6])
 Removes some parts of the volume.
void scaleFrom (const vu11121 &vol, word nx, word ny, word nz)
 Creates this volume as a scaled version of vol.
bool createHistogram (vuHistogram &hist) const
 Creates a histogram in hist.
void remap (const vuMap &map)
 Remaps the intensities.

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.

Friends

class vuConvert
bool readRAW (const vuString &fname, vu11121 &vol)
 A friend to read the RAW format First line is ascii SIZEX SIZEY SIZEZ [PNTSIZE=1].

Detailed Description

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

Definition at line 15 of file Regular/Unimodal/3d/1B/1B.h.


Constructor & Destructor Documentation

vu11121::vu11121  ) 
 

Definition at line 7 of file Regular/Unimodal/3d/1B/1B.cpp.

vu11121::vu11121 byte data,
dword  XSize,
dword  YSize,
dword  ZSize
 

Definition at line 9 of file Regular/Unimodal/3d/1B/1B.cpp.


Member Function Documentation

bool vu11121::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 342 of file Regular/Unimodal/3d/1B/1B.cpp.

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

Here is the call graph for this function:

void vu11121::cropFrom const vu11121 vol,
word  cube[6]
 

Removes some parts of the volume.

cube[1..6] are x0, x1, y0, y1, z0, and z1

Definition at line 233 of file Regular/Unimodal/3d/1B/1B.cpp.

References byte, dword, vu1::m_Data, vu1112::m_Dim1Size, vu1112::m_Dim2Size, vu1112::m_Dim3Size, and vu1112::operator=().

Referenced by main().

Here is the call graph for this function:

void vu11121::generateLapWeightHistogram  ) 
 

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

Definition at line 148 of file Regular/Unimodal/3d/1B/1B.cpp.

References getDataValue().

Here is the call graph for this function:

byte vu11121::getDataValue unsigned int  x,
unsigned int  y,
unsigned int  z
const [inline]
 

returns the value at position x,y,z

Definition at line 43 of file Regular/Unimodal/3d/1B/1B.h.

References byte.

Referenced by generateLapWeightHistogram(), and scaleFrom().

bool vu11121::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 regular), false otherwise.

Reimplemented from vu1112.

Definition at line 60 of file Regular/Unimodal/3d/1B/1B.cpp.

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

Here is the call graph for this function:

bool vu11121::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 vu111211a, vu1112117, vu1112113, vu111211A, vu1112119, vu1112116, vu1112118, vu1112115, ns_vu1112112::vu1112112, and vu1112111.

Definition at line 22 of file Regular/Unimodal/3d/1B/1B.cpp.

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

Referenced by main(), vu1112119::read(), vu1112111::read(), ns_vu1112112::vu1112112::read(), vu1112115::read(), vu1112118::read(), vu1112116::read(), vu111211A::read(), vu1112113::read(), vu1112117::read(), vu111211a::read(), and readRAW().

Here is the call graph for this function:

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

Remaps the intensities.

Reimplemented from vu1112.

Definition at line 354 of file Regular/Unimodal/3d/1B/1B.cpp.

References byte, and dword.

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

Empty implementation to satisfy virtual.

Implements vu1.

Reimplemented in vu111211a, vu1112117, vu1112113, vu111211A, vu1112119, vu1112116, vu1112118, vu1112115, ns_vu1112112::vu1112112, and vu1112111.

Definition at line 53 of file Regular/Unimodal/3d/1B/1B.h.

void vu11121::scaleFrom const vu11121 vol,
word  nx,
word  ny,
word  nz
 

Creates this volume as a scaled version of vol.

Currently this function is using nearest neighbour interpolation :-(

Definition at line 270 of file Regular/Unimodal/3d/1B/1B.cpp.

References byte, dword, getDataValue(), vu1112::m_Dim1Size, vu1112::m_Dim2Size, vu1112::m_Dim3Size, and vu1112::operator=().

Referenced by main().

Here is the call graph for this function:

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

Empty implementation to satisfy virtual.

Implements vu1.

Reimplemented in vu111211a, vu1112117, vu1112113, vu111211A, vu1112119, vu1112116, vu1112118, vu1112115, ns_vu1112112::vu1112112, and vu1112111.

Definition at line 51 of file Regular/Unimodal/3d/1B/1B.h.

bool vu11121::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 110 of file Regular/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 vu11121::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 41 of file Regular/Unimodal/3d/1B/1B.cpp.

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

Referenced by vu1112119::convertVUF2VUD(), and main().

Here is the call graph for this function:


Friends And Related Function Documentation

bool readRAW const vuString fname,
vu11121 vol
[friend]
 

A friend to read the RAW format First line is ascii SIZEX SIZEY SIZEZ [PNTSIZE=1].

m_DataSize will be set in vu1112,

Definition at line 306 of file Regular/Unimodal/3d/1B/1B.cpp.

friend class vuConvert [friend]
 

Definition at line 17 of file Regular/Unimodal/3d/1B/1B.h.


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