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

SlicerMulti Class Reference

#include <SlicerMulti.h>

Inheritance diagram for SlicerMulti:

SlicerBase SimBase List of all members.

Detailed Description

SlicerMulti.h simianUI.

Definition at line 27 of file SlicerMulti.h.

Text object-name

from SimBase

std::string getObjName ()
std::string getName ()
void setName (std::string name)
void setName (const char *name)

Debug prints

from SimBase: These print the object name with the error, mostly for convenience, but they are compiled to inline-no-op if you build in release mode

void derr (const char *when, const char *where=0) const
template<class T> void derr (const char *when, const char *where, const T stuff) const

Modification, AKA "changed"

from SimBase: id based, you can capture the current id for comparison later, if the id's don't match the class has been changed

virtual int getChangeID ()
virtual int getChangeID () const
virtual void setChanged ()

Serialization:

from SimBase You MUST override these pure virtual functions, they "should" do something usefull.

It is also nice if you declare a static std::istream &create(std::istream &is) const; function, to create a class from a stream. This is done on a per-concrete class basis.

These aren't pure virutal yet, but will be soon!

virtual std::ostream & saveSelf (std::ostream &os)
 serialize

virtual std::istream & readSelf (std::istream &is)
 unserialize


Public Types

enum  FILTERS { NEAREST, BILIN, BICUBE, BSPLINE }

Public Slots

virtual void setVolume (VolumeSP vol)
 setVolume

virtual void setNrro (NrroSP n)
 Set Nrro.


Signals

void volumeChanged (VolumeSP vol)
void probePosChanged (int xp, int yp, int zp)
void filterChanged (int filt)

Public Member Functions

 SlicerMulti (QWidget *parent=0, const char *name=0, WFlags wf=0)
 construct

virtual ~SlicerMulti ()

Protected Slots

void saveImage ()
 save image

void openNrrd ()
void insertNrrd ()
void setProbePos (int xp, int yp, int zp)
void setNearest ()
void setBiLin ()
void setBiCube ()
void setBSpline ()

Protected Member Functions

virtual void confSliceView ()
 configure slice view

virtual void confMenu ()
 configure menu

virtual void keyPressEvent (QKeyEvent *key)
 Key Press Event.


Protected Attributes

QWidget * _qcentral
 main widget to add stuff to

VolumeSP _vol
 volume being sliced

SlicerInfo_sliceInfo
std::string _name_
 a text name for the object, SimBase

int _changed
 change id, incremented whenever setChanged is called, SimBase


Member Enumeration Documentation

enum SlicerBase::FILTERS [inherited]
 

Enumeration values:
NEAREST 
BILIN 
BICUBE 
BSPLINE 

Definition at line 51 of file SlicerBase.h.


Constructor & Destructor Documentation

SlicerMulti::SlicerMulti QWidget *  parent = 0,
const char *  name = 0,
WFlags  wf = 0
 

construct

Definition at line 35 of file SlicerMulti.cpp.

References SlicerBase::_qcentral, SlicerBase::confMenu(), confSliceView(), and name.

virtual SlicerMulti::~SlicerMulti  )  [inline, virtual]
 

Definition at line 31 of file SlicerMulti.h.


Member Function Documentation

void SlicerBase::confMenu  )  [protected, virtual, inherited]
 

configure menu

let's have a menu bar

standard file stuff

image bar

sampling

Definition at line 156 of file SlicerBase.cpp.

References file, SlicerBase::insertNrrd(), SlicerBase::openNrrd(), SlicerBase::saveImage(), SlicerBase::setBiCube(), SlicerBase::setBiLin(), SlicerBase::setBSpline(), and SlicerBase::setNearest().

Referenced by SlicerBase::SlicerBase(), and SlicerMulti().

void SlicerMulti::confSliceView  )  [protected, virtual]
 

configure slice view

X axis view

Z axis view

Y axis view

create the info widget

now for spagettii connect them all together!

Reimplemented from SlicerBase.

Definition at line 69 of file SlicerMulti.cpp.

References SlicerBase::_qcentral, SlicerBase::_sliceInfo, gutz::connect(), SlicerBase::filterChanged(), SlicerBase::probePosChanged(), SlicerWidget::setAxis(), SlicerBase::setProbePos(), setVolume(), SlicerBase::volumeChanged(), SlicerWidget::X_AXIS, SlicerWidget::Y_AXIS, and SlicerWidget::Z_AXIS.

Referenced by SlicerMulti().

template<class T>
void SimBase::derr const char *  when,
const char *  where,
const T  stuff
const [inline, inherited]
 

only prints in debug mode, -D_DEBUG

Definition at line 130 of file simBase.h.

References SimBase::_name_.

void SimBase::derr const char *  when,
const char *  where = 0
const [inline, inherited]
 

only prints in debug mode, -D_DEBUG

Definition at line 113 of file simBase.h.

References SimBase::_name_.

Referenced by AlgObj::addInput(), Key::addKey(), SourceObj::addOutput(), VolShader::bindBlend(), VolField::checkDims(), VolFieldVec::checkField(), VolFieldVec::checkFields(), AlgObj::checkInputs(), AlgObj::delInput(), Key::delKey(), Crank::delMP(), SourceObj::delOutput(), Crank::delTape(), TFGeneric::eval(), SourceObj::execDef(), ColorMapper::execDef(), AlgObj::execDef(), AlgObj::execute(), SourceObj::force(), AlgObj::force(), VolField::genTexture(), TFGeneric::get2DMap(), DataObj::getConsumer(), VolFieldVec::getField(), AlgObj::getInputN(), Key::getKey(), Crank::getMP(), Crank::getMPIdx(), SourceObj::getOutputN(), Crank::getTape(), AlgObj::inputsModified(), Crank::insertTape(), Crank::kindErr(), VolyCube::loadNrro(), VolyCube::readState(), Volytope::readState(), SourceObj::request(), DataObj::request_(), VolytopeVec::setField(), SourceObj::setForwardModified(), DataObj::setForwardModified(), TFGeneric::setImage(), AlgObj::setInputN(), Key::setKey(), Crank::setMP(), VolField::setNrro(), SourceObj::setOutputN(), Crank::setTape(), Volume::update(), SourceObj::updateOutputs(), Volume::updateRectLin(), Volume::updateVolytopesRL(), VolyCube::VolyCube(), and Volytope::writeState().

void SlicerBase::filterChanged int  filt  )  [signal, inherited]
 

Referenced by confSliceView(), SlicerBase::confSliceView(), SlicerBase::setBiCube(), SlicerBase::setBiLin(), SlicerBase::setBSpline(), and SlicerBase::setNearest().

virtual int SimBase::getChangeID  )  const [inline, virtual, inherited]
 

Definition at line 73 of file simBase.h.

References SimBase::_changed.

virtual int SimBase::getChangeID  )  [inline, virtual, inherited]
 

Reimplemented in TFGeneric, TFBaseSP, and TFEltSP.

Definition at line 72 of file simBase.h.

References SimBase::_changed.

Referenced by TFEltSP::getChangeID(), TFBaseSP::getChangeID(), and TFGeneric::getChangeID().

std::string SimBase::getName  )  [inline, inherited]
 

Definition at line 45 of file simBase.h.

References SimBase::_name_.

Referenced by MetaProg::operator<<().

std::string SimBase::getObjName  )  [inline, inherited]
 

Definition at line 44 of file simBase.h.

References string.

void SlicerBase::insertNrrd  )  [protected, slot, inherited]
 

Definition at line 127 of file SlicerBase.cpp.

References SlicerBase::_vol, gutz::SmartPtr< Volume >::isNull(), n, openNrroQT(), and SlicerBase::setVolume().

Referenced by SlicerBase::confMenu().

void SlicerBase::keyPressEvent QKeyEvent *  key  )  [protected, virtual, inherited]
 

Key Press Event.

Definition at line 207 of file SlicerBase.cpp.

void SlicerBase::openNrrd  )  [protected, slot, inherited]
 

Definition at line 121 of file SlicerBase.cpp.

References n, openNrroQT(), and SlicerBase::setNrro().

Referenced by SlicerBase::confMenu().

void SlicerBase::probePosChanged int  xp,
int  yp,
int  zp
[signal, inherited]
 

Referenced by confSliceView(), and SlicerBase::setProbePos().

virtual std::istream& SimBase::readSelf std::istream &  is  )  [inline, virtual, inherited]
 

unserialize

Reimplemented in SimCore, and VolRenBase.

Definition at line 94 of file simBase.h.

void SlicerBase::saveImage  )  [protected, slot, inherited]
 

save image

Definition at line 116 of file SlicerBase.cpp.

Referenced by SlicerBase::confMenu().

virtual std::ostream& SimBase::saveSelf std::ostream &  os  )  [inline, virtual, inherited]
 

serialize

Reimplemented in SimCore, and VolRenBase.

Definition at line 92 of file simBase.h.

void SlicerBase::setBiCube  )  [inline, protected, slot, inherited]
 

Definition at line 72 of file SlicerBase.h.

References SlicerBase::BICUBE, and SlicerBase::filterChanged().

Referenced by SlicerBase::confMenu().

void SlicerBase::setBiLin  )  [inline, protected, slot, inherited]
 

Definition at line 71 of file SlicerBase.h.

References SlicerBase::BILIN, and SlicerBase::filterChanged().

Referenced by SlicerBase::confMenu().

void SlicerBase::setBSpline  )  [inline, protected, slot, inherited]
 

Definition at line 73 of file SlicerBase.h.

References SlicerBase::BSPLINE, and SlicerBase::filterChanged().

Referenced by SlicerBase::confMenu().

virtual void SimBase::setChanged  )  [inline, virtual, inherited]
 

Definition at line 74 of file simBase.h.

References SimBase::_changed.

Referenced by TFEltSP::getChangeID(), TFBaseSP::getChangeID(), TFBaseSP::operator=(), and TFGeneric::update().

void SimBase::setName const char *  name  )  [inline, inherited]
 

Definition at line 47 of file simBase.h.

References SimBase::_name_, and name.

void SimBase::setName std::string  name  )  [inline, inherited]
 

Reimplemented in Key.

Definition at line 46 of file simBase.h.

References SimBase::_name_, and name.

Referenced by EventData::EventData(), and GenDataObj_base< Nrro, gutz::SmartPtr< Nrro > >::GenDataObj_base().

void SlicerBase::setNearest  )  [inline, protected, slot, inherited]
 

Definition at line 70 of file SlicerBase.h.

References SlicerBase::filterChanged(), and SlicerBase::NEAREST.

Referenced by SlicerBase::confMenu().

void SlicerBase::setNrro NrroSP  n  )  [virtual, slot, inherited]
 

Set Nrro.

Definition at line 89 of file SlicerBase.cpp.

References SlicerBase::_vol, gutz::SmartPtr< Volume >::isNull(), n, and SlicerBase::setVolume().

Referenced by SlicerBase::openNrrd().

void SlicerBase::setProbePos int  xp,
int  yp,
int  zp
[protected, slot, inherited]
 

Definition at line 80 of file SlicerBase.cpp.

References SlicerBase::probePosChanged().

Referenced by confSliceView().

void SlicerMulti::setVolume VolumeSP  vol  )  [virtual, slot]
 

setVolume

Reimplemented from SlicerBase.

Definition at line 52 of file SlicerMulti.cpp.

References SlicerBase::_vol, gutz::SmartPtr< Volume >::isNull(), and SlicerBase::volumeChanged().

Referenced by confSliceView().

void SlicerBase::volumeChanged VolumeSP  vol  )  [signal, inherited]
 

Referenced by confSliceView(), SlicerBase::confSliceView(), setVolume(), and SlicerBase::setVolume().


Member Data Documentation

int SimBase::_changed [protected, inherited]
 

change id, incremented whenever setChanged is called, SimBase

Definition at line 103 of file simBase.h.

Referenced by SimBase::getChangeID(), SimBase::setChanged(), and SimBase::SimBase().

std::string SimBase::_name_ [protected, inherited]
 

a text name for the object, SimBase

Definition at line 101 of file simBase.h.

Referenced by SimBase::derr(), SimBase::getName(), SimBase::setName(), and SimBase::SimBase().

QWidget* SlicerBase::_qcentral [protected, inherited]
 

main widget to add stuff to

Definition at line 91 of file SlicerBase.h.

Referenced by confSliceView(), SlicerBase::confSliceView(), SlicerBase::SlicerBase(), and SlicerMulti().

SlicerInfo* SlicerBase::_sliceInfo [protected, inherited]
 

Definition at line 97 of file SlicerBase.h.

Referenced by confSliceView().

VolumeSP SlicerBase::_vol [protected, inherited]
 

volume being sliced

Definition at line 95 of file SlicerBase.h.

Referenced by SlicerBase::insertNrrd(), SlicerBase::setNrro(), setVolume(), and SlicerBase::setVolume().


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