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

SlicerBase Class Reference

#include <SlicerBase.h>

Inheritance diagram for SlicerBase:

SimBase SlicerMulti List of all members.

Detailed Description

SlicerBase.h simianUI.

Definition at line 36 of file SlicerBase.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)
 Set Volume.

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

 SlicerBase (QWidget *parent=0, const char *name=0, WFlags wf=0)
 this one is for creating this class

 SlicerBase (int views, QWidget *parent=0, const char *name=0, WFlags wf=0)
 this one is for base classes, doesn't build internal widgets

virtual ~SlicerBase ()
 destruction


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 confMenu ()
 configure menu

virtual void confSliceView ()
 configure slice view

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
 

Enumeration values:
NEAREST 
BILIN 
BICUBE 
BSPLINE 

Definition at line 51 of file SlicerBase.h.


Constructor & Destructor Documentation

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

this one is for creating this class

Definition at line 35 of file SlicerBase.cpp.

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

SlicerBase::SlicerBase int  views,
QWidget *  parent = 0,
const char *  name = 0,
WFlags  wf = 0
 

this one is for base classes, doesn't build internal widgets

Definition at line 44 of file SlicerBase.cpp.

References name.

SlicerBase::~SlicerBase  )  [virtual]
 

destruction

Definition at line 54 of file SlicerBase.cpp.


Member Function Documentation

void SlicerBase::confMenu  )  [protected, virtual]
 

configure menu

let's have a menu bar

standard file stuff

image bar

sampling

Definition at line 156 of file SlicerBase.cpp.

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

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

void SlicerBase::confSliceView  )  [protected, virtual]
 

configure slice view

two rows, one column

Reimplemented in SlicerMulti.

Definition at line 188 of file SlicerBase.cpp.

References _qcentral, filterChanged(), setVolume(), and volumeChanged().

Referenced by SlicerBase().

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]
 

Referenced by SlicerMulti::confSliceView(), confSliceView(), setBiCube(), setBiLin(), setBSpline(), and 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]
 

Definition at line 127 of file SlicerBase.cpp.

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

Referenced by confMenu().

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

Key Press Event.

Definition at line 207 of file SlicerBase.cpp.

void SlicerBase::openNrrd  )  [protected, slot]
 

Definition at line 121 of file SlicerBase.cpp.

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

Referenced by confMenu().

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

Referenced by SlicerMulti::confSliceView(), and 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]
 

save image

Definition at line 116 of file SlicerBase.cpp.

Referenced by 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]
 

Definition at line 72 of file SlicerBase.h.

References BICUBE, and filterChanged().

Referenced by confMenu().

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

Definition at line 71 of file SlicerBase.h.

References BILIN, and filterChanged().

Referenced by confMenu().

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

Definition at line 73 of file SlicerBase.h.

References BSPLINE, and filterChanged().

Referenced by 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]
 

Definition at line 70 of file SlicerBase.h.

References filterChanged(), and NEAREST.

Referenced by confMenu().

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

Set Nrro.

Definition at line 89 of file SlicerBase.cpp.

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

Referenced by openNrrd().

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

Definition at line 80 of file SlicerBase.cpp.

References probePosChanged().

Referenced by SlicerMulti::confSliceView().

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

Set Volume.

Reimplemented in SlicerMulti.

Definition at line 67 of file SlicerBase.cpp.

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

Referenced by confSliceView(), insertNrrd(), and setNrro().

void SlicerBase::volumeChanged VolumeSP  vol  )  [signal]
 

Referenced by SlicerMulti::confSliceView(), confSliceView(), SlicerMulti::setVolume(), and 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]
 

main widget to add stuff to

Definition at line 91 of file SlicerBase.h.

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

SlicerInfo* SlicerBase::_sliceInfo [protected]
 

Definition at line 97 of file SlicerBase.h.

Referenced by SlicerMulti::confSliceView().

VolumeSP SlicerBase::_vol [protected]
 

volume being sliced

Definition at line 95 of file SlicerBase.h.

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


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