#include <3d.h>
Inheritance diagram for vu1112:
Public Member Functions | |
vu1112 () | |
The default constructor. | |
vu1112 (const vu1112 &inst) | |
The copy constructor. | |
vu1112 & | operator= (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) |
Definition at line 12 of file Regular/Unimodal/3d/3d.h.
|
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. |
|
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. |
|
Creates a histogram in hist. This is just a preliminary version of histogram creation. See class vuHistogram for a more detailed discussion.
Reimplemented in vu11121, and vu11122. Definition at line 49 of file Regular/Unimodal/3d/3d.h. Referenced by main(). |
|
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:
|
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(). |
|
Returns the origin of the data in the first dimension.
Definition at line 86 of file Regular/Unimodal/3d/3d.cpp. |
|
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(). |
|
Returns the origin of the data in the second dimension.
Definition at line 91 of file Regular/Unimodal/3d/3d.cpp. |
|
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(). |
|
Returns the origin of the data in the third dimension.
Definition at line 96 of file Regular/Unimodal/3d/3d.cpp. |
|
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(). |
|
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. |
|
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:
|
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:
|
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.
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:
|
Remaps the intensities.
Reimplemented in vu11121, and vu11122. Definition at line 52 of file Regular/Unimodal/3d/3d.h. |
|
Writes the general 3d data information to the file.
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:
|
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(). |
|
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(). |
|
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(). |
|
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(). |
|
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(). |
|
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(). |
|
The spacing of the grid.
Definition at line 80 of file Regular/Unimodal/3d/3d.h. Referenced by operator=(), read(), readFreZ(), vu1112(), and write(). |