In file inrimage/TclOverlayBackground.h:

namespace yav class TclOverlayBackground : public TclInrimageBackground, public Owner<OpacityScale>

The background of a slicecamera that is linked with an OverlayInrimageView

Inheritance:


Public Methods

TclOverlayBackground (TclModule *m, OverlayInrimageView *inrv, SliceCamera *cam, bool useMinGLScale = true, MinGLScale *minScale = 0, bool useMaxGLScale = true, MaxGLScale *maxScale = 0, bool useSecondMinGLScale=true, MinGLScale *secondMinScale = 0, bool useSecondMaxGLScale=true, MaxGLScale *secondMaxScale = 0, bool useOpacityScale=true, OpacityScale *opacityScale=0, const char *color = "#E8E0D2" )
builds a Tcl object corresponding to photo data block attached to an inrimage in a given slice camera
virtual ~TclOverlayBackground ()
destructor: free buffers
virtual void scaleValue (const TclScale *scale, double val)
scale value changed
void addSecondMinGLScale (MinGLScale *min)
add a minimum grey-level scale to the second image
void addSecondMaxGLScale (MaxGLScale *max)
add a maximum grey-level scale to the second image
virtual void imageGLChanged (void)
resize GL window and redraw
void inrimageChanged (void)
image type changed
Inrimage* getSecondInrimage (void) const
return second inrimage
GLTRANSFO getGLTransfo2 (void) const
returns grey-level transformation mode
void setGLTransfo2 (GLTRANSFO t, const unsigned char *red=0, const unsigned char *green=0, const unsigned char *blue=0)
set grey-level transformation mode
void setOpacity (double val)
set opacity value
void setSecondMinThreshold (double val) throw(Voxel::InvalidValue)
set min voxel value to val
void setSecondMaxThreshold (double val) throw(Voxel::InvalidValue)
set max voxel value to val
void setSecondGlThresholds (double min, double max) throw(Voxel::InvalidValue)
set min and max voxel value to min and max
virtual void dying (const ObjectPointer<OpacityScale>& obj)
max grey level scale owner callback
void setSecondGlThresholds (const TclString& min, const TclString& max) throw(Voxel::InvalidValue)
set min and max voxel value to min and max
virtual double getMin (const TclScale *scale) const
return mn voxel value
virtual double getMax (const TclScale *scale) const
return max voxel value
virtual void redraw ()
redraw camera image
virtual TclString getLabel (int &x, int &y)
return the label coresponding to pixel (x,y)
MinGLScale* getSecondMinScale () const
return the second min scale associated with the second image
MaxGLScale* getSecondMaxScale () const
return the second max scale associated with the second image
OpacityScale* getOpacityScale () const
return the opacity scale associated with the background
OverlayInrimageView* getOverlayView () const
return the overlay view that has created this background
double getOpacity () const
return opacity scale value
virtual void glBounds (void)
compute inrimage grey levels bounds
static int create (TclModule *m, int argc, char **argv)
new TCL command callback
int opacityCmd (int argc, char **argv)
TCL -opacity command callback
int scalemode2Cmd (int argc, char **argv)
TCL -scalemode2 command callback
int greyLevelCmd (int argc, char **argv)
TCL -greyLevel command callback

Protected Fields

ObjectPointer <MinGLScale> secondMinScale
second Tcl minimim scale for grey-level windowing
ObjectPointer <MaxGLScale> secondMaxScale
second Tcl maximim scale for grey-level windowing
Voxel* secondGlmin
min and max GL values for inrimage
const unsigned char* redColorMap2
the red component colormap for the display of the second image
const unsigned char* greenColorMap2
the green component colormap for the display of the second image
const unsigned char* blueColorMap2
the blue component colormap that depends on transfo
GLTRANSFO transfo2
grey level transformation type for the 2nd image

Inherited from TclInrimageBackground:

Public Methods

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
virtual void screen(VoxelCoordinate *vc, int& i, int& j) const
virtual CartesianCoordinate* cartesianCoordinates(unsigned int i, unsigned int j) const
virtual void screen(CartesianCoordinate *vc, int& i, int& j) const
virtual void setVisibleArea(void)
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)
unsigned int getRef(void) const
static const char* getTCLObjectName(void)
virtual TclString objectName(void) const
virtual void visibleAreaChanged(void)
void imageVoxelSizeChanged(void)
void imageTypeChanged(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 const unsigned int* getVisibleArea(void) const
virtual const double* getScaleVector()
virtual const double* getVoxelSize()
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 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)
int destroyCmd(int argc, char **argv)
int scalemodeCmd(int argc, char **argv)
int ignoreVoxelSizeCmd(int argc, char **argv)
int interpolationCmd(int argc, char **argv)

Protected Fields

Tk_PhotoHandle handle
Tk_PhotoImageBlock* block
TclString TKimageID
Voxel* glmin
InrimageView* inrv
SliceCamera::SLICE_ORIENTATION blockGeom
unsigned int visible[6]
double scaleVector[3]
double voxelSize[3]

Protected Methods

void init(bool useMinScale, MinGLScale *minScale, bool useMaxScale, MaxGLScale *maxScale, const char *color)
virtual void voxelRatio(void)
virtual void realloc(void)

Protected

constructor

TclInrimageBackground(TclModule *m, const std::type_info& type, InrimageView *inrv, SliceCamera *cam, MinGLScale *minScale = 0, MaxGLScale *maxScale = 0)
a image background that is created by an inherited class
TclInrimageBackground(TclModule *m, InrimageView *inrv, SliceCamera *cam, bool useMinGLScale = true, MinGLScale *minScale = 0, bool useMaxGLScale = true, MaxGLScale *maxScale = 0, const char *color = "#E8E0D2")
builds a Tcl object corresponding to photo data block attached to an inrimage in a given slice camera

destructors

virtual ~TclInrimageBackground()
destructor: free buffers

Inherited from InrimageBackground:

Public

constructors

InrimageBackground(SliceCamera *cam)
Dummy constructor since no inrimage is specified

Inherited from BasicInrimageBackground:

Public Classes

enum GLTRANSFO
enum IMAGE_INTERPOLATION

Public Fields

static unsigned char PETColorMapRed[257]
static unsigned char PETColorMapGreen[257]
static unsigned char PETColorMapBlue[257]
static unsigned char AffineColorMap[257]
static unsigned char ThresholdColorMap[257]
static unsigned char ZeroColorMap[257]

Public Methods

double getRX(void) const
double getRY(void) const
double getRZ(void) const

Public

desstructor

Protected Fields

GLTRANSFO transfo
IMAGE_INTERPOLATION interpolation
bool ignoreVoxelSize
const unsigned char* redColorMap
const unsigned char* greenColorMap
const unsigned char* blueColorMap
unsigned int sx
unsigned int sy
unsigned int sz
double rx
double ry
double rz

Documentation

The background of a slicecamera that is linked with an OverlayInrimageView
ObjectPointer <MinGLScale> secondMinScale
second Tcl minimim scale for grey-level windowing

ObjectPointer <MaxGLScale> secondMaxScale
second Tcl maximim scale for grey-level windowing

Voxel* secondGlmin
min and max GL values for inrimage

const unsigned char* redColorMap2
the red component colormap for the display of the second image

const unsigned char* greenColorMap2
the green component colormap for the display of the second image

const unsigned char* blueColorMap2
the blue component colormap that depends on transfo

GLTRANSFO transfo2
grey level transformation type for the 2nd image

TclOverlayBackground(TclModule *m, OverlayInrimageView *inrv, SliceCamera *cam, bool useMinGLScale = true, MinGLScale *minScale = 0, bool useMaxGLScale = true, MaxGLScale *maxScale = 0, bool useSecondMinGLScale=true, MinGLScale *secondMinScale = 0, bool useSecondMaxGLScale=true, MaxGLScale *secondMaxScale = 0, bool useOpacityScale=true, OpacityScale *opacityScale=0, const char *color = "#E8E0D2" )
builds a Tcl object corresponding to photo data block attached to an inrimage in a given slice camera
Parameters:
m - module to create TCL object
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 used
minScale - a TclScale controlling the minimum windowing value
useMaxScale - if a TclScale controlling the maximum grey-level windowing value should be used
maxScale - a TclScale controlling the maximum windowing value
color - color of the widget
useSecondMinScale - if a TclScale controlling the minimum grey-level windowing of the second image should be created if secondMinScale==0
minScale - a TclScale controlling the minimum windowing value of the second image
useSecondMaxScale - if a MaxScale controlling the maximum grey-level windowing value of the second image should be created if secondMaxScale==0
secondMaxScale - a TclScale controlling the maximum windowing value of the second image
useOpacityScale - if a OpacityScale controlling the blending between the 2 images should be created if opacityScale==0
opacityScale - a OpacityScale controlling the blending between the 2 images

virtual ~TclOverlayBackground()
destructor: free buffers

virtual void scaleValue(const TclScale *scale, double val)
scale value changed
Parameters:
scale - calling scale object
val - new scale value

void addSecondMinGLScale(MinGLScale *min)
add a minimum grey-level scale to the second image

void addSecondMaxGLScale(MaxGLScale *max)
add a maximum grey-level scale to the second image

virtual void imageGLChanged(void)
resize GL window and redraw

void inrimageChanged(void)
image type changed

Inrimage* getSecondInrimage(void) const
return second inrimage

GLTRANSFO getGLTransfo2(void) const
returns grey-level transformation mode

void setGLTransfo2(GLTRANSFO t, const unsigned char *red=0, const unsigned char *green=0, const unsigned char *blue=0)
set grey-level transformation mode
Parameters:
t - new transformation mode

void setOpacity(double val)
set opacity value

void setSecondMinThreshold(double val) throw(Voxel::InvalidValue)
set min voxel value to val

void setSecondMaxThreshold(double val) throw(Voxel::InvalidValue)
set max voxel value to val

void setSecondGlThresholds(double min, double max) throw(Voxel::InvalidValue)
set min and max voxel value to min and max

virtual void dying(const ObjectPointer<OpacityScale>& obj)
max grey level scale owner callback

void setSecondGlThresholds(const TclString& min, const TclString& max) throw(Voxel::InvalidValue)
set min and max voxel value to min and max

virtual double getMin(const TclScale *scale) const
return mn voxel value

virtual double getMax(const TclScale *scale) const
return max voxel value

virtual void redraw()
redraw camera image

virtual TclString getLabel(int &x, int &y)
return the label coresponding to pixel (x,y)

MinGLScale* getSecondMinScale() const
return the second min scale associated with the second image

MaxGLScale* getSecondMaxScale() const
return the second max scale associated with the second image

OpacityScale* getOpacityScale() const
return the opacity scale associated with the background

OverlayInrimageView* getOverlayView() const
return the overlay view that has created this background

double getOpacity() const
return opacity scale value

virtual void glBounds(void)
compute inrimage grey levels bounds

static int create(TclModule *m, int argc, char **argv)
new TCL command callback

int opacityCmd(int argc, char **argv)
TCL -opacity command callback

int scalemode2Cmd(int argc, char **argv)
TCL -scalemode2 command callback

int greyLevelCmd(int argc, char **argv)
TCL -greyLevel command callback


This class has no child classes.

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