arbeit
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members

SliceView Class Reference

#include <SliceView.h>

List of all members.


Detailed Description

SliceView.h simianUI.

Definition at line 29 of file SliceView.h.

Signals

virtual void pickPosChanged (int xp, int yp)
 these are pixel positions! in the view, you gota do the transformation yourself


Public Member Functions

 SliceView (QCanvas *canvas, QWidget *parent=0, const char *name=0, WFlags f=0)
 construction

virtual ~SliceView ()
 destruction

void setZoom (float zoom)
float getZoom () const
void setPos (gutz::vec2f pos)
gutz::vec2f getPos () const
gutz::vec2f getAspect () const
int getWidth () const
 need these cuz scroll bars messup estimates

int getHeight () const

Protected Member Functions

void contentsMousePressEvent (QMouseEvent *)
 mouse press event

void contentsMouseMoveEvent (QMouseEvent *)
 mouse press event


Protected Attributes

float _zoom
gutz::vec2f _pos


Constructor & Destructor Documentation

SliceView::SliceView QCanvas *  canvas,
QWidget *  parent = 0,
const char *  name = 0,
WFlags  f = 0
 

construction

Definition at line 32 of file SliceView.cpp.

References name, and gutz::vec2f_zero.

SliceView::~SliceView  )  [virtual]
 

destruction

Definition at line 42 of file SliceView.cpp.


Member Function Documentation

void SliceView::contentsMouseMoveEvent QMouseEvent *  me  )  [protected]
 

mouse press event

Definition at line 73 of file SliceView.cpp.

References pickPosChanged().

void SliceView::contentsMousePressEvent QMouseEvent *  me  )  [protected]
 

mouse press event

Definition at line 64 of file SliceView.cpp.

References pickPosChanged().

gutz::vec2f SliceView::getAspect  )  const
 

Definition at line 47 of file SliceView.cpp.

References height, gutz::vec2f, and width.

Referenced by SlicerWidget::setPickPos(), and SlicerWidget::setSlice().

int SliceView::getHeight  )  const [inline]
 

Definition at line 45 of file SliceView.h.

References height.

Referenced by SlicerWidget::setPickPos(), and SlicerWidget::setSlice().

gutz::vec2f SliceView::getPos  )  const [inline]
 

Definition at line 39 of file SliceView.h.

References _pos.

Referenced by SlicerWidget::setPickPos(), and SlicerWidget::setSlice().

int SliceView::getWidth  )  const [inline]
 

need these cuz scroll bars messup estimates

Definition at line 44 of file SliceView.h.

References width.

Referenced by SlicerWidget::setPickPos(), and SlicerWidget::setSlice().

float SliceView::getZoom  )  const [inline]
 

Definition at line 36 of file SliceView.h.

References _zoom.

Referenced by SlicerWidget::setPickPos(), and SlicerWidget::setSlice().

virtual void SliceView::pickPosChanged int  xp,
int  yp
[virtual, signal]
 

these are pixel positions! in the view, you gota do the transformation yourself

Referenced by contentsMouseMoveEvent(), and contentsMousePressEvent().

void SliceView::setPos gutz::vec2f  pos  )  [inline]
 

Definition at line 38 of file SliceView.h.

References _pos.

void SliceView::setZoom float  zoom  )  [inline]
 

Definition at line 35 of file SliceView.h.

References _zoom.


Member Data Documentation

gutz::vec2f SliceView::_pos [protected]
 

Definition at line 56 of file SliceView.h.

Referenced by getPos(), and setPos().

float SliceView::_zoom [protected]
 

Definition at line 55 of file SliceView.h.

Referenced by getZoom(), and setZoom().


The documentation for this class was generated from the following files:
Send questions, comments, and bug reports to:
jmk