In file inrimage/TclInrimage4D.h:

namespace yav class TclInrimage4D : public TclObject, public Owner<Inrimage4D>

3D + T camera interface

Inheritance:


Public Methods

Inrimage4D* getClient (void) const
returns interface's client inrimage
int destroyCmd (int argc, char **argv)
-destroy TCL command option
int typeCmd (int argc, char **argv)
-type TCL command option
int nameCmd (int argc, char **argv)
-name TCL command option
int saveCmd (int argc, char **argv)
-save TCL command option
int glboundsCmd (int argc, char **argv)
-glbounds TCL command option
int voxelCmd (int argc, char **argv)
-voxel TCL command option
int gradientCmd (int argc, char **argv)
-voxel TCL command option
int redrawCmd (int argc, char **argv)
-redraw command option
int slicecamsCmd (int argc, char **argv)
-slicecams command option
int anisotropicDiffusionCmd (int argc, char **argv)
-anisotropicDiffusion command option
int cropCmd (int argc, char **argv)
-crop command option
void redraw (void) const
redraw inrimage
void resizeAndRedraw (void) const
refresh inrimage in any viewer it is displayed resize the viewer to the image size
void resizeVoxelsAndRedraw (void) const
refresh inrimage in any viewer it is displayed resize the viewer to the image voxel size
void rescaleGLAndRedraw (void) const
reset GL bounds to inrimage min and max refresh inrimage in any viewer it is displayed
void changeAndRedraw (void)
redraw new inrimage in any viewer it is displayed
static int create (TclModule *m, int argc, char **argv)
new inr4D command callback
static int load (TclModule *m, int argc, char **argv)
loadImage command callback
static void load (const TclString& name, Scene2D *scn)
loads an inrimage, catch exceptions and returns an error message in module result string if an error occured
static TclInrimage4D* getObject (unsigned int n)
returns object by ref or 0 if it is not found
static TclInrimage4D* getObject (int argc, char **argv, int i = 1)
return object by name (argv[i]) or 0 with an error message in module interpretor if it is not found
static const char* getTCLObjectName (void)
returns object id by command line arguments
static void CreateInrimage4DPhotoFormat (void)
creates new photo type
virtual void dying (const ObjectPointer < Inrimage4D > &g)
die on inrimage 4D deletion
static TclInrimage4D* getInterface (Inrimage4D *inr)
get TclInrimage4D from image pointer

Public

constructors
TclInrimage4D (TclModule *m, const char *name, const std::type_info& info = typeid(TclInrimage4D), Inrimage4D *data = 0) throw(GeneralFormat::FileNotFound, Inrimage::ImageNotFound, Inrimage4D::ReadError)
Reads 4D inrimage from file whose path is given as argument
TclInrimage4D (TclModule *m, std::list<Inrimage *> inrs)
builds a 4D inrimage interface from a sequence of 3D inrimages
TclInrimage4D (TclModule *m, const std::type_info& info, Inrimage4D *data)
creates 4D inrimage interface for an existing client
destructor
~TclInrimage4D ()
empty

Protected Methods

static int FileReadInrimage (Tcl_Interp *interp, Tcl_Channel ch, const char *fileName, Tcl_Obj *formatString, Tk_PhotoHandle imageHandle, int destX, int destY, int width, int height, int srcX, int srcY)
read a 4D inrimage from a file
static int StringReadInrimage (Tcl_Interp *interp, Tcl_Obj *string, Tcl_Obj *formatString, Tk_PhotoHandle imageHandle, int destX, int destY, int width, int height, int srcX, int srcY)
built pixmaps of a 4D inrimage that has already been read
static int FileMatchInrimage (Tcl_Channel ch, const char *fileName, Tcl_Obj *format, int *widthPtr, int *heightPtr, Tcl_Interp *interp)
fetch if the given file is a 4D inrimage
static int StringMatchInrimage (Tcl_Obj *string, Tcl_Obj *formatString, int *widthPtr, int *heightPtr, Tcl_Interp *interp)
fetch if the given string is a 4D inrimage

Private Methods

void init (TclModule *m)
constructors common code
int applyCmd (int (TclInrimage::*cmd)(int, char **), int argc, char **argv)
Apply given command on each 3D inrimage composing the 4D inrimage

Documentation

3D + T camera interface
constructors

TclInrimage4D(TclModule *m, const char *name, const std::type_info& info = typeid(TclInrimage4D), Inrimage4D *data = 0) throw(GeneralFormat::FileNotFound, Inrimage::ImageNotFound, Inrimage4D::ReadError)
Reads 4D inrimage from file whose path is given as argument
Throws:
ReadError error while reading file
Parameters:
m - module this image is created in
name - 4D inrimage file name
scene - to build 4D object in
info - dynamic object type
data - client (if alreaedy created) @excpetion ImageNotFound image file not found

TclInrimage4D(TclModule *m, std::list<Inrimage *> inrs)
builds a 4D inrimage interface from a sequence of 3D inrimages
Parameters:
m - module this image is created in
inrs - list of constituting 3D inrimages
scene - scene to hold this object
data - 3D data composing the 4D inrimage

TclInrimage4D(TclModule *m, const std::type_info& info, Inrimage4D *data)
creates 4D inrimage interface for an existing client
Parameters:
m - module this image was created in
scene - to build 4D object in
info - dynamic object type
data - inrimage 4D client

destructor

~TclInrimage4D()
empty

Inrimage4D* getClient(void) const
returns interface's client inrimage

int destroyCmd(int argc, char **argv)
-destroy TCL command option

int typeCmd(int argc, char **argv)
-type TCL command option

int nameCmd(int argc, char **argv)
-name TCL command option

int saveCmd(int argc, char **argv)
-save TCL command option

int glboundsCmd(int argc, char **argv)
-glbounds TCL command option

int voxelCmd(int argc, char **argv)
-voxel TCL command option

int gradientCmd(int argc, char **argv)
-voxel TCL command option

int redrawCmd(int argc, char **argv)
-redraw command option

int slicecamsCmd(int argc, char **argv)
-slicecams command option

int anisotropicDiffusionCmd(int argc, char **argv)
-anisotropicDiffusion command option

int cropCmd(int argc, char **argv)
-crop command option

void redraw(void) const
redraw inrimage

void resizeAndRedraw(void) const
refresh inrimage in any viewer it is displayed resize the viewer to the image size

void resizeVoxelsAndRedraw(void) const
refresh inrimage in any viewer it is displayed resize the viewer to the image voxel size

void rescaleGLAndRedraw(void) const
reset GL bounds to inrimage min and max refresh inrimage in any viewer it is displayed

void changeAndRedraw(void)
redraw new inrimage in any viewer it is displayed

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

static int load(TclModule *m, int argc, char **argv)
loadImage command callback

static void load(const TclString& name, Scene2D *scn)
loads an inrimage, catch exceptions and returns an error message in module result string if an error occured
Parameters:
name - image file name
scn - 2D scene where to create 4D inrimage

static TclInrimage4D* getObject(unsigned int n)
returns object by ref or 0 if it is not found

static TclInrimage4D* getObject(int argc, char **argv, int i = 1)
return object by name (argv[i]) or 0 with an error message in module interpretor if it is not found

static const char* getTCLObjectName(void)
returns object id by command line arguments

static void CreateInrimage4DPhotoFormat(void)
creates new photo type

virtual void dying(const ObjectPointer < Inrimage4D > &g)
die on inrimage 4D deletion

static TclInrimage4D* getInterface(Inrimage4D *inr)
get TclInrimage4D from image pointer

static int FileReadInrimage(Tcl_Interp *interp, Tcl_Channel ch, const char *fileName, Tcl_Obj *formatString, Tk_PhotoHandle imageHandle, int destX, int destY, int width, int height, int srcX, int srcY)
read a 4D inrimage from a file

static int StringReadInrimage(Tcl_Interp *interp, Tcl_Obj *string, Tcl_Obj *formatString, Tk_PhotoHandle imageHandle, int destX, int destY, int width, int height, int srcX, int srcY)
built pixmaps of a 4D inrimage that has already been read

static int FileMatchInrimage(Tcl_Channel ch, const char *fileName, Tcl_Obj *format, int *widthPtr, int *heightPtr, Tcl_Interp *interp)
fetch if the given file is a 4D inrimage

static int StringMatchInrimage(Tcl_Obj *string, Tcl_Obj *formatString, int *widthPtr, int *heightPtr, Tcl_Interp *interp)
fetch if the given string is a 4D inrimage

void init(TclModule *m)
constructors common code

int applyCmd(int (TclInrimage::*cmd)(int, char **), int argc, char **argv)
Apply given command on each 3D inrimage composing the 4D inrimage. If argc = 0, the command is supposed to be a get command and it is executed only on first inrimage. If argv > 0, the command is supposed to be a set command and it is executed on each 3D inrimage. Result of the get command is then returned.
Parameters:
cmd - TclInrimage command to call
argc - number of command line arguments
argv - command line arguments


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