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

vu1112 Class Reference

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

#include <3d.h>

Inheritance diagram for vu1112:

Inheritance graph
[legend]
Collaboration diagram for vu1112:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 vu1112 ()
 The default constructor.
 vu1112 (const vu1112 &inst)
 The copy constructor.
vu1112operator= (const vu1112 &rhs)
 The assignment operator.
dword getDim1Size (void) const
 Returns the size of the data along the first dimension.
dword getDim2Size (void) const
 Returns the size of the data along the second dimension.
dword getDim3Size (void) const
 Returns the size of the data along the third dimension.
dword getSpacing (void) const
 Returns the spacing of the 3d grid.
int getDim1Origin (void) const
 Returns the origin of the data in the first dimension.
int getDim2Origin (void) const
 Returns the origin of the data in the second dimension.
int getDim3Origin (void) const
 Returns the origin of the data in the third dimension.
virtual bool createHistogram (vuHistogram &hist) const
 Creates a histogram in hist.
virtual void remap (const vuMap &map)
 Remaps the intensities.
vuVector getCenter () const
 returns the center of the dataset (virtual in volume.h)
void preview (int hint=0)
 draws an OpenGl cube

Protected Member Functions

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

Protected Attributes

dword m_Dim1Size
 The size of the first dimension of the data set.
dword m_Dim2Size
 the sizeof the second dimension of the data set
dword m_Dim3Size
 the size of the third dimension of the data set
dword m_Spacing
 The spacing of the grid.
int m_Dim1Origin
 The origin of the first dimension of the data set.
int m_Dim2Origin
 The origin of the second dimensino of the data set.
int m_Dim3Origin
 the origin of the third dimension of the data set

Private Member Functions

void drawBox (float sx, float sy, float sz)

Detailed Description

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

Definition at line 12 of file Regular/Unimodal/3d/3d.h.


Constructor & Destructor Documentation

vu1112::vu1112  ) 
 

The default constructor.

Definition at line 10 of file Regular/Unimodal/3d/3d.cpp.

References m_Dim1Origin, m_Dim1Size, m_Dim2Origin, m_Dim2Size, m_Dim3Origin, m_Dim3Size, and m_Spacing.

vu1112::vu1112 const vu1112 inst  ) 
 

The copy constructor.

Definition at line 27 of file Regular/Unimodal/3d/3d.cpp.

References m_Dim1Origin, m_Dim1Size, m_Dim2Origin, m_Dim2Size, m_Dim3Origin, m_Dim3Size, and m_Spacing.


Member Function Documentation

virtual bool vu1112::createHistogram vuHistogram hist  )  const [inline, 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 in vu11121, and vu11122.

Definition at line 49 of file Regular/Unimodal/3d/3d.h.

Referenced by main().

void vu1112::drawBox float  sx,
float  sy,
float  sz
[private]
 

Definition at line 213 of file Regular/Unimodal/3d/3d.cpp.

References GL_LINE_LOOP, glBegin(), glColor3fv(), glEnd(), GLfloat, GLint, glNormal3fv(), glTranslatef(), glVertex3fv(), m_Dim1Size, m_Dim2Size, and m_Dim3Size.

Referenced by preview().

Here is the call graph for this function:

vuVector vu1112::getCenter  )  const [inline, virtual]
 

returns the center of the dataset (virtual in volume.h)

Reimplemented from vu1.

Reimplemented in vu1112113.

Definition at line 55 of file Regular/Unimodal/3d/3d.h.

References m_Dim1Size, m_Dim2Size, and m_Dim3Size.

Referenced by vuSpecFVR::glOnMouse(), and vuSpecFVR::OnButtonLightPos().

int vu1112::getDim1Origin void   )  const
 

Returns the origin of the data in the first dimension.

Definition at line 86 of file Regular/Unimodal/3d/3d.cpp.

dword vu1112::getDim1Size void   )  const
 

Returns the size of the data along the first dimension.

Definition at line 66 of file Regular/Unimodal/3d/3d.cpp.

References dword.

Referenced by vu1112119::convertVUD2VUF(), vuSplat::glRender(), vuSpecSplat::glRender(), vuCellProjector::glRender(), vuSplat::glResize(), vuSpecSplat::glResize(), vuCellProjector::glResize(), vuSpectral::init(), vuRaycast::init(), Scanner::Scanner(), and vuFVR::setTitle().

int vu1112::getDim2Origin void   )  const
 

Returns the origin of the data in the second dimension.

Definition at line 91 of file Regular/Unimodal/3d/3d.cpp.

dword vu1112::getDim2Size void   )  const
 

Returns the size of the data along the second dimension.

Definition at line 71 of file Regular/Unimodal/3d/3d.cpp.

References dword.

Referenced by vu1112119::convertVUD2VUF(), vuSplat::glRender(), vuSpecSplat::glRender(), vuCellProjector::glRender(), vuSplat::glResize(), vuSpecSplat::glResize(), vuCellProjector::glResize(), vuSpectral::init(), vuRaycast::init(), Scanner::Scanner(), and vuFVR::setTitle().

int vu1112::getDim3Origin void   )  const
 

Returns the origin of the data in the third dimension.

Definition at line 96 of file Regular/Unimodal/3d/3d.cpp.

dword vu1112::getDim3Size void   )  const
 

Returns the size of the data along the third dimension.

Definition at line 76 of file Regular/Unimodal/3d/3d.cpp.

References dword.

Referenced by vu1112119::convertVUD2VUF(), vuSplat::glRender(), vuSpecSplat::glRender(), vuCellProjector::glRender(), vuSplat::glResize(), vuSpecSplat::glResize(), vuCellProjector::glResize(), vuSpectral::init(), vuRaycast::init(), vuSlicer::OnChar(), vuSlicer::OnSlideSlice(), and vuFVR::setTitle().

dword vu1112::getSpacing void   )  const
 

Returns the spacing of the 3d grid.

This is the spacing between the data values in each of the dimensions. This value is uniform in all dimensions since this is a regular grid.

Definition at line 81 of file Regular/Unimodal/3d/3d.cpp.

References dword.

vu1112 & vu1112::operator= const vu1112 rhs  ) 
 

The assignment operator.

Definition at line 44 of file Regular/Unimodal/3d/3d.cpp.

References m_Dim1Origin, m_Dim1Size, m_Dim2Origin, m_Dim2Size, m_Dim3Origin, m_Dim3Size, m_Spacing, and vu1::operator=().

Referenced by vu11121::cropFrom(), vu1112111::operator=(), ns_vu1112112::vu1112112::operator=(), vu1112115::operator=(), vu1112116::operator=(), vu1112113::operator=(), vu1112211::operator=(), vu111211a::operator=(), and vu11121::scaleFrom().

Here is the call graph for this function:

void vu1112::preview int  hint = 0  )  [virtual]
 

draws an OpenGl cube

Reimplemented from vu1.

Definition at line 174 of file Regular/Unimodal/3d/3d.cpp.

References drawBox(), dword, vu1::getCameraPtr(), vuCamera::getHeight(), vuCamera::getWidth(), GL_COLOR_BUFFER_BIT, GL_DEPTH_BUFFER_BIT, GL_DEPTH_TEST, GL_LESS, GL_MODELVIEW, GL_PROJECTION, glClear(), glDepthFunc(), glEnable(), vuCamera::glInit(), glLoadIdentity(), glMatrixMode(), vuCamera::gluLookAt(), vuCamera::glViewport(), m_Dim1Size, m_Dim2Size, and m_Dim3Size.

Referenced by vuSpectral::glRender().

Here is the call graph for this function:

bool vu1112::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 vu111.

Reimplemented in vu11121, and vu11122.

Definition at line 105 of file Regular/Unimodal/3d/3d.cpp.

References dword, m_Dim1Origin, m_Dim1Size, m_Dim2Origin, m_Dim2Size, m_Dim3Origin, m_Dim3Size, m_Spacing, vu1::read(), and vu1::setInvalidFormatError().

Here is the call graph for this function:

virtual void vu1112::remap const vuMap map  )  [inline, virtual]
 

Remaps the intensities.

Reimplemented in vu11121, and vu11122.

Definition at line 52 of file Regular/Unimodal/3d/3d.h.

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

Writes the general 3d data information to the file.

Returns:
True if successful, false otherwise.

Reimplemented from vu111.

Reimplemented in vu11121, and vu11122.

Definition at line 146 of file Regular/Unimodal/3d/3d.cpp.

References dword, m_Dim1Origin, m_Dim1Size, m_Dim2Origin, m_Dim2Size, m_Dim3Origin, m_Dim3Size, m_Spacing, vu1::setWriteError(), and vu1::write().

Here is the call graph for this function:


Member Data Documentation

int vu1112::m_Dim1Origin [protected]
 

The origin of the first dimension of the data set.

Definition at line 83 of file Regular/Unimodal/3d/3d.h.

Referenced by operator=(), read(), readFreZ(), vu1112(), and write().

dword vu1112::m_Dim1Size [protected]
 

The size of the first dimension of the data set.

Definition at line 73 of file Regular/Unimodal/3d/3d.h.

Referenced by vuConvert::convert(), ns_vu1112113::DatGrid::copy_vol(), vu11121::cropFrom(), drawBox(), getCenter(), ns_vu1112112::DatGrid::load_vol(), operator=(), preview(), read(), readFreZ(), readRAW(), vu11121::scaleFrom(), vu1112(), and write().

int vu1112::m_Dim2Origin [protected]
 

The origin of the second dimensino of the data set.

Definition at line 85 of file Regular/Unimodal/3d/3d.h.

Referenced by operator=(), read(), readFreZ(), vu1112(), and write().

dword vu1112::m_Dim2Size [protected]
 

the sizeof the second dimension of the data set

Definition at line 75 of file Regular/Unimodal/3d/3d.h.

Referenced by vuConvert::convert(), ns_vu1112113::DatGrid::copy_vol(), vu11121::cropFrom(), drawBox(), getCenter(), ns_vu1112112::DatGrid::load_vol(), operator=(), preview(), read(), readFreZ(), readRAW(), vu11121::scaleFrom(), vu1112(), and write().

int vu1112::m_Dim3Origin [protected]
 

the origin of the third dimension of the data set

Definition at line 87 of file Regular/Unimodal/3d/3d.h.

Referenced by operator=(), read(), readFreZ(), vu1112(), and write().

dword vu1112::m_Dim3Size [protected]
 

the size of the third dimension of the data set

Definition at line 77 of file Regular/Unimodal/3d/3d.h.

Referenced by vuConvert::convert(), ns_vu1112113::DatGrid::copy_vol(), vu11121::cropFrom(), drawBox(), getCenter(), ns_vu1112112::DatGrid::load_vol(), operator=(), preview(), read(), readFreZ(), readRAW(), vu11121::scaleFrom(), vu1112(), and write().

dword vu1112::m_Spacing [protected]
 

The spacing of the grid.

Definition at line 80 of file Regular/Unimodal/3d/3d.h.

Referenced by operator=(), read(), readFreZ(), vu1112(), and write().


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