The background of a slicecamera that is linked with an InrimageView
![]() | setHandle (Tk_PhotoHandle _handle) set TK photo handle |
![]() | getHandle (void) const returns image TK handle |
![]() | getRedColorMap () const get the array of 255 char corresponding to the red colormap |
![]() | getGreenColorMap () const get the array of 255 char corresponding to the green colormap |
![]() | getBlueColorMap () const get the array of 255 char corresponding to the blue colormap |
![]() | coordinates (unsigned int i, unsigned int j) const Converts a canvas coordinate (i, j) in the corresponding image voxel (x, y, z) |
![]() | screen (VoxelCoordinate *vc, int& i, int& j) const Converts a voxel (x, y, z) to its screen coordinate (i, j) |
![]() | cartesianCoordinates (unsigned int i, unsigned int j) const Converts a canvas coordinate (i, j) to a cartesian point |
![]() | screen (CartesianCoordinate *vc, int& i, int& j) const Converts a cartesian point to its screen coordinate (i, j) |
![]() | setVisibleArea (void) set visible area to whole image |
![]() | getMin (const TclScale *) const return the image minimum intensity value |
![]() | getMax (const TclScale *) const return the image minimum intensity value |
![]() | getStep (const TclScale *scale) const get required scale step for this scalable |
![]() | getMinIntensity () const return the image minimum intensity value |
![]() | getMaxIntensity () const return the image maximum intensity value |
![]() | addMinGLScale (MinGLScale *min) add a minimum grey-level scale to the background |
![]() | addMaxGLScale (MaxGLScale *max) add a maximum grey-level scale to the background |
![]() | getMinScale () const return the min scale associated with the camera background |
![]() | getMaxScale () const return the max scale associated with the camera background |
![]() | setVisibleArea (unsigned int x1, unsigned int y1, unsigned int z1, unsigned int x2, unsigned int y2, unsigned int z2) set visible area to given bounds (truncate to image size if needed) |
![]() | getRef (void) const raise ambigous getRef() function call |
![]() | getTCLObjectName (void) returns object id by command line arguments |
![]() | objectName (void) const get object string identifier |
![]() | scaleValue (const TclScale *scale, double val) scale value changed |
![]() | visibleAreaChanged (void) resize viewer to visible region and redraw |
![]() | imageVoxelSizeChanged (void) resize image voxels |
![]() | imageGLChanged (void) resize GL window and redraw |
![]() | imageTypeChanged (void) image type changed |
![]() | inrimageChanged (void) image type changed |
![]() | getInrimage (void) const return handled inrimage |
![]() | setMinThreshold (double val) throw(Voxel::InvalidValue) set min voxel value to val |
![]() | setMaxThreshold (double val) throw(Voxel::InvalidValue) set max voxel value to val |
![]() | setGlThresholds (double min, double max) throw(Voxel::InvalidValue) set min and max voxel value to min and max |
![]() | setGlThresholds (const TclString& min, const TclString& max) throw(Voxel::InvalidValue) set min and max voxel value to min and max |
![]() | dying (const ObjectPointer<MinGLScale>& obj) min grey level scale owner callback |
![]() | dying (const ObjectPointer<MaxGLScale>& obj) max grey level scale owner callback |
![]() | getVisibleArea (void) const return visible area |
![]() | getScaleVector () return scale in the 3 axis between image and world coordinates |
![]() | getVoxelSize () return voxel size |
![]() | redraw () redraw camera image |
![]() | refreshCamera (void) reset pointer to camera |
![]() | getGLTransfo (void) const returns grey-level transformation mode |
![]() | setGLTransfo (GLTRANSFO t, const unsigned char *red=0, const unsigned char *green=0, const unsigned char *blue=0) set grey-level transformation mode |
![]() | getVX () const return the scale in the x direction |
![]() | getVY () const return the scale in the y direction |
![]() | getVZ () const return the scale in the z direction |
![]() | getX () const return the number of slices in the X direction |
![]() | getY () const return the number of slices in the Y direction |
![]() | getZ () const return the number of slices in the Z direction |
![]() | getLabel (int &x, int &y) return the label coresponding to pixel (x,y) |
![]() | getWorldCoordinates (const int x, const int y, double &px, double &py, double &pz ) const return the position in world coordinates of a pixel located at (x,y) |
![]() | getImageCoordinates (const int x, const int y, unsigned int &vx, unsigned int &vy, unsigned int &vz ) const return the position in image coordinates of a pixel located at (x,y) |
![]() | getPixelPositionFromImageCoordinates (const unsigned int vx, const unsigned int vy, const unsigned int vz, int &x, int&y) const Given a point in image (voxel) coordinates returns the position in screen coordinates |
![]() | getPixelPositionFromWorldCoordinates (const double px, const double py, const double pz, int &x, int&y) const Given a point in world coordinates returns the position in screen coordinates |
![]() | getIVS (void) const returns IgnoreVoxelSize flag |
![]() | setIVS (const bool val) Changes IgnoreVoxelSize flag. Cause recompute method to be called. |
![]() | list (TclModule *m, int argc, char **argv) new TCL command callback |
![]() | create (TclModule *m, int argc, char **argv) new TCL command callback |
![]() | destroyCmd (int argc, char **argv) -destroy option |
![]() | scalemodeCmd (int argc, char **argv) -scalemode option |
![]() | ignoreVoxelSizeCmd (int argc, char **argv) -ignoreVoxelSize option |
![]() | greyLevelCmd (int argc, char **argv) -greyLevel option |
![]() | interpolationCmd (int argc, char **argv) -interpolation greyLevel option |
![]() | handle TK photo image associated handle |
![]() | block TK photo image associated data slice |
![]() | TKimageID TK photo image ID |
![]() | glmin min and max GL values for inrimage |
![]() | inrv owner inrimage view object |
![]() | blockGeom geometry the TK phot block was allocated for |
![]() | visible [6] image visible area |
![]() | scaleVector [3] the 3 scale vector in the X,Y,Z direction depending on ignoreVoxelSize |
![]() | voxelSize [3] the 3 voxel Size in the X,Y,Z direction |
![]() | init (bool useMinScale, MinGLScale *minScale, bool useMaxScale, MaxGLScale *maxScale, const char *color) create all Tcl widgets associated with this background |
![]() | glBounds (void) compute inrimage grey levels bounds |
![]() | voxelRatio (void) compute image voxel/screen pixel ratio and allocates required memory |
![]() | realloc (void) allocates TK photo image block |
![]() | constructor
| ||||
![]() | destructors
|
constructors
desstructor
The background of a slicecamera that is linked with an InrimageView
TclInrimageBackground(TclModule *m, InrimageView *inrv, SliceCamera *cam, bool useMinGLScale = true, MinGLScale *minScale = 0, bool useMaxGLScale = true, MaxGLScale *maxScale = 0, const char *color = "#E8E0D2")
inrv - an inrimage view attached to an Inrimage
cam - slice camera to display image in
useMinScale - if a TclScale controlling the minimum grey-level windowing value should be created if minScale==0
minScale - a TclScale controlling the minimum windowing value
useMaxScale - if a TclScale controlling the maximum grey-level windowing value should be created if maxScale==0
maxScale - a TclScale controlling the maximum windowing value
color - color of the widget
Tk_PhotoImageBlock* block
TclString TKimageID
Voxel* glmin
InrimageView* inrv
SliceCamera::SLICE_ORIENTATION blockGeom
unsigned int visible[6]
double scaleVector[3]
double voxelSize[3]
void init(bool useMinScale, MinGLScale *minScale, bool useMaxScale, MaxGLScale *maxScale, const char *color)
minScale - the min scale that should be binded with the background
useMaxScale - if we should handle a max grey-level scale
Maxscale - the max scale that should be binded with the background
color - the color of the background when creating scale widgets virtual void glBounds(void)
virtual void voxelRatio(void)
virtual void realloc(void)
void setHandle(Tk_PhotoHandle _handle)
Tk_PhotoHandle getHandle(void) const
virtual const unsigned char* getRedColorMap() const
virtual const unsigned char* getGreenColorMap() const
virtual const unsigned char* getBlueColorMap() const
virtual VoxelCoordinate* coordinates(unsigned int i, unsigned int j) const
j - mouse Y coordinate
virtual void screen(VoxelCoordinate *vc, int& i, int& j) const
i - voxel screen X coordinate
j - voxel screen Y coordinate virtual CartesianCoordinate* cartesianCoordinates(unsigned int i, unsigned int j) const
j - mouse Y coordinate
virtual void screen(CartesianCoordinate *vc, int& i, int& j) const
i - voxel screen X coordinate
j - voxel screen Y coordinate virtual void setVisibleArea(void)
virtual double getMin(const TclScale *) const
virtual double getMax(const TclScale *) const
virtual double getStep(const TclScale *scale) const
virtual double getMinIntensity() const
virtual double getMaxIntensity() const
void addMinGLScale(MinGLScale *min)
void addMaxGLScale(MaxGLScale *max)
MinGLScale* getMinScale() const
MaxGLScale* getMaxScale() const
virtual void setVisibleArea(unsigned int x1, unsigned int y1, unsigned int z1, unsigned int x2, unsigned int y2, unsigned int z2)
y1 - visible area Y first coordinate
z1 - visible area Z first coordinate
x2 - visible area X second coordinate
y2 - visible area Y second coordinate
z2 - visible area Z second coordinate unsigned int getRef(void) const
static const char* getTCLObjectName(void)
virtual TclString objectName(void) const
virtual void scaleValue(const TclScale *scale, double val)
val - new scale value virtual void visibleAreaChanged(void)
void imageVoxelSizeChanged(void)
virtual void imageGLChanged(void)
void imageTypeChanged(void)
virtual void inrimageChanged(void)
Inrimage* getInrimage(void) const
void setMinThreshold(double val) throw(Voxel::InvalidValue)
void setMaxThreshold(double val) throw(Voxel::InvalidValue)
void setGlThresholds(double min, double max) throw(Voxel::InvalidValue)
void setGlThresholds(const TclString& min, const TclString& max) throw(Voxel::InvalidValue)
virtual void dying(const ObjectPointer<MinGLScale>& obj)
virtual void dying(const ObjectPointer<MaxGLScale>& obj)
virtual const unsigned int* getVisibleArea(void) const
virtual const double* getScaleVector()
virtual const double* getVoxelSize()
virtual void redraw()
virtual void refreshCamera(void)
GLTRANSFO getGLTransfo(void) const
void setGLTransfo(GLTRANSFO t, const unsigned char *red=0, const unsigned char *green=0, const unsigned char *blue=0)
virtual float getVX() const
virtual float getVY() const
virtual float getVZ() const
virtual unsigned int getX() const
virtual unsigned int getY() const
virtual unsigned int getZ() const
virtual TclString getLabel(int &x, int &y)
virtual void getWorldCoordinates(const int x, const int y, double &px, double &py, double &pz ) const
virtual void getImageCoordinates(const int x, const int y, unsigned int &vx, unsigned int &vy, unsigned int &vz ) const
virtual void getPixelPositionFromImageCoordinates(const unsigned int vx, const unsigned int vy, const unsigned int vz, int &x, int&y) const
virtual void getPixelPositionFromWorldCoordinates(const double px, const double py, const double pz, int &x, int&y) const
bool getIVS(void) const
void setIVS(const bool val)
static int list(TclModule *m, int argc, char **argv)
static int create(TclModule *m, int argc, char **argv)
int destroyCmd(int argc, char **argv)
int scalemodeCmd(int argc, char **argv)
int ignoreVoxelSizeCmd(int argc, char **argv)
int greyLevelCmd(int argc, char **argv)
int interpolationCmd(int argc, char **argv)
alphabetic index hierarchy of classes
this page has been generated automatically by doc++
(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de