#include <SlicerBase.h>
Inheritance diagram for SlicerBase:
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 |
|
Definition at line 51 of file SlicerBase.h. |
|
this one is for creating this class
Definition at line 35 of file SlicerBase.cpp. References _qcentral, confMenu(), confSliceView(), and name. |
|
this one is for base classes, doesn't build internal widgets
Definition at line 44 of file SlicerBase.cpp. References name. |
|
destruction
Definition at line 54 of file SlicerBase.cpp. |
|
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(). |
|
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(). |
|
only prints in debug mode, -D_DEBUG Definition at line 130 of file simBase.h. References SimBase::_name_. |
|
|
Referenced by SlicerMulti::confSliceView(), confSliceView(), setBiCube(), setBiLin(), setBSpline(), and setNearest(). |
|
Definition at line 73 of file simBase.h. References SimBase::_changed. |
|
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(). |
|
Definition at line 45 of file simBase.h. References SimBase::_name_. Referenced by MetaProg::operator<<(). |
|
Definition at line 44 of file simBase.h. References string. |
|
Definition at line 127 of file SlicerBase.cpp. References _vol, gutz::SmartPtr< Volume >::isNull(), n, openNrroQT(), and setVolume(). Referenced by confMenu(). |
|
Key Press Event.
Definition at line 207 of file SlicerBase.cpp. |
|
Definition at line 121 of file SlicerBase.cpp. References n, openNrroQT(), and setNrro(). Referenced by confMenu(). |
|
Referenced by SlicerMulti::confSliceView(), and setProbePos(). |
|
unserialize
Reimplemented in SimCore, and VolRenBase. |
|
save image
Definition at line 116 of file SlicerBase.cpp. Referenced by confMenu(). |
|
serialize
Reimplemented in SimCore, and VolRenBase. |
|
Definition at line 72 of file SlicerBase.h. References BICUBE, and filterChanged(). Referenced by confMenu(). |
|
Definition at line 71 of file SlicerBase.h. References BILIN, and filterChanged(). Referenced by confMenu(). |
|
Definition at line 73 of file SlicerBase.h. References BSPLINE, and filterChanged(). Referenced by confMenu(). |
|
Definition at line 74 of file simBase.h. References SimBase::_changed. Referenced by TFEltSP::getChangeID(), TFBaseSP::getChangeID(), TFBaseSP::operator=(), and TFGeneric::update(). |
|
Definition at line 47 of file simBase.h. References SimBase::_name_, and name. |
|
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(). |
|
Definition at line 70 of file SlicerBase.h. References filterChanged(), and NEAREST. Referenced by confMenu(). |
|
Set Nrro.
Definition at line 89 of file SlicerBase.cpp. References _vol, gutz::SmartPtr< Volume >::isNull(), n, and setVolume(). Referenced by openNrrd(). |
|
Definition at line 80 of file SlicerBase.cpp. References probePosChanged(). Referenced by SlicerMulti::confSliceView(). |
|
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(). |
|
Referenced by SlicerMulti::confSliceView(), confSliceView(), SlicerMulti::setVolume(), and setVolume(). |
|
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(). |
|
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(). |
|
main widget to add stuff to
Definition at line 91 of file SlicerBase.h. Referenced by SlicerMulti::confSliceView(), confSliceView(), SlicerBase(), and SlicerMulti::SlicerMulti(). |
|
Definition at line 97 of file SlicerBase.h. Referenced by SlicerMulti::confSliceView(). |
|
volume being sliced
Definition at line 95 of file SlicerBase.h. Referenced by insertNrrd(), setNrro(), SlicerMulti::setVolume(), and setVolume(). |