In file inrimage/Inrimage4DView.h:

class Inrimage4DView : public TimeSliceable, public Owner<Inrimage4D>

A 2D object attached to a 4D inrimage that display image slices

Inheritance:


Public Methods

virtual ~Inrimage4DView ()
destruction: do not delete visualized inrimage
virtual void dying (const ObjectPointer<Inrimage4D>&)
die on inrimage deletion
void focusCamera (SliceCamera& cam)
focus camera on image center
virtual void createdCamera (SliceCamera& cam)
add a camera in inrimage view management if needed
virtual void doCreateCamera (SliceCamera& cam)
add a camera in inrimage view management
void deletedCamera (SliceCamera& cam)
remove a camera from inrimage view management
Scene2D* getScene (void) const
return this object scene
Inrimage4DBackground* getBackgroundFromCamera (TimeSliceCamera *cam)
returns eventually the TclImage associated with a given slice camera
virtual void translate (const Vec2& t)
Translates the 2D object
virtual void rotate (const Rotation2D &r)
Rotates the 2D object: no rotation available for images
virtual void scale (const double s)
Scales the 2D object
virtual void updateCenter (Vec2& center, unsigned int& n)
Returns the graphic object center and weight.
virtual void select (Camera2D *)
nothing done when an image is selected
virtual double updateRadius (const Vec2& center)
Returns the graphic object radius given its center
virtual double computeClosestDistance (DataTypes::MouseClick& mc) const
Return MAXDOUBLE, an image is considered as background and may not be selected
std::list <Inrimage4DBackground *> ::iterator firstBackground ()
return iterator on the first background
std::list <Inrimage4DBackground *> ::iterator lastBackground ()
return iterator on the last background
Inrimage4D* getInrimage () const
returns the pointed inrimage
virtual void changeInrimage (Inrimage4D *inr)
Modifies the pointed image and Updates all images
void refreshCameras (void)
reset InrimageView::TclImage objects list pointers to cameras
virtual void unselect (Camera2D *)
nothing done when an image is unselected
virtual void redraw (Camera2D *cam)
default redraw function for sliceable objects

Public

constructors
Inrimage4DView (Inrimage4D *inr, Scene2D *scene, bool _createGLScale=true)
Normal constructor by specifiying the inrimage to display

Protected Fields

std::list <Inrimage4DBackground *> backgroundList
the list of backgrounds associated with the inrimage view
bool createGLScale
whether we should create

Protected Methods

void init (void)
constructors common code

Protected

constructors
Inrimage4DView (const TclString &filename, Scene2D *scene)
constructor that reads an image from a file
Inrimage4DView (Inrimage4D *inr1, Inrimage4D *i, Scene2D *scene, bool _createGLScale=true)
Constructor that does not call init()

Documentation

A 2D object attached to a 4D inrimage that display image slices
constructors

Inrimage4DView(const TclString &filename, Scene2D *scene)
constructor that reads an image from a file
Parameters:
filename - unused name
scene - scene to build data in

Inrimage4DView(Inrimage4D *inr1, Inrimage4D *i, Scene2D *scene, bool _createGLScale=true)
Constructor that does not call init()
Parameters:
inr1 - inrimage to draw
inr2 - dummy inrimage pointer
scene - scene to build data in
_createGLScale - boolean indicating if we should create GLScales associated with each background

void init(void)
constructors common code

constructors

Inrimage4DView(Inrimage4D *inr, Scene2D *scene, bool _createGLScale=true)
Normal constructor by specifiying the inrimage to display
Parameters:
inr - 4D image to display
scene - scene to build data in
_createGLScale - boolean indicating if we should create GLScales associated with each background

virtual ~Inrimage4DView()
destruction: do not delete visualized inrimage

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

void focusCamera(SliceCamera& cam)
focus camera on image center
Parameters:
cam - camera to focus

virtual void createdCamera(SliceCamera& cam)
add a camera in inrimage view management if needed

virtual void doCreateCamera(SliceCamera& cam)
add a camera in inrimage view management

void deletedCamera(SliceCamera& cam)
remove a camera from inrimage view management

Scene2D* getScene(void) const
return this object scene

Inrimage4DBackground* getBackgroundFromCamera(TimeSliceCamera *cam)
returns eventually the TclImage associated with a given slice camera

virtual void translate(const Vec2& t)
Translates the 2D object
Parameters:
t - translation vector

virtual void rotate(const Rotation2D &r)
Rotates the 2D object: no rotation available for images
Parameters:
r - rotation matrix

virtual void scale(const double s)
Scales the 2D object
Parameters:
s - scale factor

virtual void updateCenter(Vec2& center, unsigned int& n)
Returns the graphic object center and weight.

virtual void select(Camera2D *)
nothing done when an image is selected

virtual double updateRadius(const Vec2& center)
Returns the graphic object radius given its center

virtual double computeClosestDistance(DataTypes::MouseClick& mc) const
Return MAXDOUBLE, an image is considered as background and may not be selected

std::list <Inrimage4DBackground *> ::iterator firstBackground()
return iterator on the first background

std::list <Inrimage4DBackground *> ::iterator lastBackground()
return iterator on the last background

Inrimage4D* getInrimage() const
returns the pointed inrimage

virtual void changeInrimage(Inrimage4D *inr)
Modifies the pointed image and Updates all images

void refreshCameras(void)
reset InrimageView::TclImage objects list pointers to cameras

virtual void unselect(Camera2D *)
nothing done when an image is unselected

virtual void redraw(Camera2D *cam)
default redraw function for sliceable objects
Parameters:
cam - camera to redraw

std::list <Inrimage4DBackground *> backgroundList
the list of backgrounds associated with the inrimage view

bool createGLScale
whether we should create


Direct child classes:
OverlayInrimage4DView

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