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

vu1112116 Class Reference

This is a simple slicer Nicetohave: display corresponding slices along all axes at the same time, Animation. More...

#include <Slicer.h>

Inheritance diagram for vu1112116:

Inheritance graph
[legend]
Collaboration diagram for vu1112116:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 vu1112116 ()
 Default constructor creating an empty instance.
 vu1112116 (const vu1112116 &inst)
 Copy constructor which does a deep copy.
virtual ~vu1112116 ()
 Destructor.
vu1112116operator= (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
bytegetDataPointer (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.

Detailed Description

This is a simple slicer Nicetohave: display corresponding slices along all axes at the same time, Animation.

long name: vuVolumeRegularUnimodal3d1B1ValSlicer

Author:
Steven Bergner

Definition at line 21 of file Slicer.h.


Constructor & Destructor Documentation

vu1112116::vu1112116  ) 
 

Default constructor creating an empty instance.

Definition at line 14 of file Slicer.cpp.

vu1112116::vu1112116 const vu1112116 inst  ) 
 

Copy constructor which does a deep copy.

Definition at line 22 of file Slicer.cpp.

References m_Position.

vu1112116::~vu1112116  )  [virtual]
 

Destructor.

Definition at line 31 of file Slicer.cpp.


Member Function Documentation

byte * vu1112116::getDataPointer const vuVector where  ) 
 

returns a pointer to the byte at position 'where'

Returns:
NULL if isInside(where) is false

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:

void vu1112116::getPosition vuVector pos  )  [inline]
 

sets current position

Definition at line 57 of file Slicer.h.

Referenced by vuSlicer::glOnMouse(), vuSlicer::OnChar(), and vuSlicer::OnSlideSlice().

dword vu1112116::getValue const vuVector where  ) 
 

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:

void vu1112116::initOpenGL void   ) 
 

Initializes open gl for rendering the volume data.

Definition at line 67 of file Slicer.cpp.

Referenced by vuSlicer::glInit().

bool vu1112116::isInside const vuVector pos  ) 
 

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().

vu1112116 & vu1112116::operator= const vu1112116 rhs  ) 
 

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:

bool vu1112116::read  )  [virtual]
 

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:

bool vu1112116::readRaw void   )  [virtual]
 

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:

void vu1112116::render  )  [virtual]
 

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:

void vu1112116::setImageSize dword  sx,
dword  sy
 

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:

void vu1112116::setPosition const vuVector pos  )  [inline]
 

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:

void vu1112116::setViewVectors const vuVector view,
const vuVector up,
const vuVector right
[inline, virtual]
 

Empty implementation to satisfy virtual.

Reimplemented from vu11121.

Definition at line 70 of file Slicer.h.


Member Data Documentation

vuImage vu1112116::m_Image [protected]
 

image (just an RGB byte framebuffer)

Definition at line 73 of file Slicer.h.

Referenced by read(), readRaw(), and render().

float vu1112116::m_ImgScaleX [protected]
 

Definition at line 75 of file Slicer.h.

Referenced by getDataPointer(), getValue(), isInside(), and setImageSize().

float vu1112116::m_ImgScaleY [protected]
 

Scaling the image.

Definition at line 75 of file Slicer.h.

Referenced by getDataPointer(), getValue(), and setImageSize().

vuVector vu1112116::m_Position [protected]
 

point the slices for each axis go through

Definition at line 74 of file Slicer.h.

Referenced by render(), setPosition(), and vu1112116().


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