#include <Slicer.h>
Inheritance diagram for vu1112116:
Public Member Functions | |
vu1112116 () | |
Default constructor creating an empty instance. | |
vu1112116 (const vu1112116 &inst) | |
Copy constructor which does a deep copy. | |
virtual | ~vu1112116 () |
Destructor. | |
vu1112116 & | operator= (const vu1112116 &rhs) |
Assignment operator which does a deep copy. | |
void | initOpenGL (void) |
Initializes open gl for rendering the volume data. | |
void | render () |
Implements the abstract render() method of the vuVolume base class. | |
virtual bool | read () |
Reimplements the read() method to do some extra volume data processing. | |
virtual bool | readRaw (void) |
This method reads volume data stored using the .raw data type. | |
void | setImageSize (dword sx, dword sy) |
set size of the canvas to render to | |
void | setPosition (const vuVector &pos) |
sets current position | |
void | getPosition (vuVector &pos) |
sets current position | |
dword | getValue (const vuVector &where) |
returns value at given position | |
byte * | getDataPointer (const vuVector &where) |
returns a pointer to the byte at position 'where' | |
bool | isInside (const vuVector &pos) |
true if point lies inside the volume | |
void | setViewVectors (const vuVector &view, const vuVector &up, const vuVector &right) |
Empty implementation to satisfy virtual. | |
Protected Attributes | |
vuImage | m_Image |
image (just an RGB byte framebuffer) | |
vuVector | m_Position |
point the slices for each axis go through | |
float | m_ImgScaleX |
float | m_ImgScaleY |
Scaling the image. |
long name: vuVolumeRegularUnimodal3d1B1ValSlicer
Definition at line 21 of file Slicer.h.
|
Default constructor creating an empty instance.
Definition at line 14 of file Slicer.cpp. |
|
Copy constructor which does a deep copy.
Definition at line 22 of file Slicer.cpp. References m_Position. |
|
Destructor.
Definition at line 31 of file Slicer.cpp. |
|
returns a pointer to the byte at position 'where'
Definition at line 185 of file Slicer.cpp. References byte, dword, isInside(), m_ImgScaleX, and m_ImgScaleY. Referenced by render(). |
Here is the call graph for this function:
|
sets current position
Definition at line 57 of file Slicer.h. Referenced by vuSlicer::glOnMouse(), vuSlicer::OnChar(), and vuSlicer::OnSlideSlice(). |
|
returns value at given position
Definition at line 176 of file Slicer.cpp. References dword, isInside(), m_ImgScaleX, and m_ImgScaleY. Referenced by vuSlicer::glOnMouse(), vuSlicer::OnChar(), and vuSlicer::OnSlideSlice(). |
Here is the call graph for this function:
|
Initializes open gl for rendering the volume data.
Definition at line 67 of file Slicer.cpp. Referenced by vuSlicer::glInit(). |
|
true if point lies inside the volume
Definition at line 194 of file Slicer.cpp. References m_ImgScaleX. Referenced by getDataPointer(), getValue(), vuSlicer::glOnMouse(), vuSlicer::OnChar(), vuSlicer::OnSlideSlice(), and setPosition(). |
|
Assignment operator which does a deep copy.
Definition at line 39 of file Slicer.cpp. References vu1112::operator=(). |
Here is the call graph for this function:
|
Reimplements the read() method to do some extra volume data processing.
Reimplemented from vu11121. Definition at line 76 of file Slicer.cpp. References vuImage::init(), m_Image, and vu11121::read(). Referenced by vuSlicer::init(). |
Here is the call graph for this function:
|
This method reads volume data stored using the .raw data type.
Definition at line 90 of file Slicer.cpp. References byte, dword, vuImage::init(), m_Image, and setImageSize(). |
Here is the call graph for this function:
|
Implements the abstract render() method of the vuVolume base class.
Reimplemented from vu11121. Definition at line 126 of file Slicer.cpp. References vuImage::blit(), byte, data, dword, vuImage::get_extents(), vuImage::get_rgb(), getDataPointer(), GL_COLOR_BUFFER_BIT, glClear(), m_Image, m_Position, and min. Referenced by vuSlicer::glRender(). |
Here is the call graph for this function:
|
set size of the canvas to render to
Definition at line 49 of file Slicer.cpp. References GL_MODELVIEW, GL_PROJECTION, glLoadIdentity(), glMatrixMode(), glOrtho(), glPixelZoom(), m_ImgScaleX, and m_ImgScaleY. Referenced by vuSlicer::glResize(), and readRaw(). |
Here is the call graph for this function:
|
sets current position
Definition at line 50 of file Slicer.h. References isInside(), and m_Position. Referenced by vuSlicer::glOnMouse(), vuSlicer::OnChar(), and vuSlicer::OnSlideSlice(). |
Here is the call graph for this function:
|
Empty implementation to satisfy virtual.
Reimplemented from vu11121. |
|
image (just an RGB byte framebuffer)
|
|
Definition at line 75 of file Slicer.h. Referenced by getDataPointer(), getValue(), isInside(), and setImageSize(). |
|
Scaling the image.
Definition at line 75 of file Slicer.h. Referenced by getDataPointer(), getValue(), and setImageSize(). |
|
point the slices for each axis go through
Definition at line 74 of file Slicer.h. Referenced by render(), setPosition(), and vu1112116(). |