namespace yav class TclBoundingBox3D : public Sliceable, public TclObject 3D box drawable in a slicecamera for ROI selection purpose
| | recompute (SliceCamera *cam) Sliceable recompute virtual method |
| | getBox (void) const returns box coordinates |
| | setClosestFace (SliceCamera::SLICE_ORIENTATION geom, unsigned int x, unsigned int y, unsigned int z) selects closest box face to given voxel |
| | moveFace (unsigned int x, unsigned int y, unsigned int z) moves selected box face to given voxel |
| | releaseFace (void) unselect box face |
| | buttonPressedCallback (SliceCamera *slicecam, int mx, int my) callback called when a button is pressed in the slicecamera |
| | buttonMotionCallback (SliceCamera *slicecam, int mx, int my) callback called when a button is moved in the slicecamera |
| | buttonReleasedCallback (SliceCamera *slicecam, int mx, int my) callback called when a button is released in the slicecamera |
| | translate (const Vec2 Translates the 2D object @param t translation vector |
| | rotate (const Rotation2D &r) Rotates the 2D object: no rotation available for images |
| | scale (const double s) Scales the 2D object |
| | updateCenter (Vec2 Returns the graphic object center and weight. |
| | updateRadius (const Vec2 Returns the graphic object radius given its center |
| | computeClosestDistance (DataTypes::MouseClick& mc) const Return MAXDOUBLE, an image is considered as background and may not be selected |
| | select (Camera2D *) nothing done when an image is selected |
| | unselect (Camera2D *) nothing done when an image is unselected |
| | redraw (Camera2D *cam) default redraw function for sliceable objects |
| | 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 |
| | boxSizeCmd (int argc, char **argv) -boxSize option |
| | constructor
| ||
| | destructor
|
| | box [6] box ccordinates |
| | color drawing color |
| | menu right mouse button popup menu |
| | face selected box face |
Constructor
Destructor
protected constructor
3D box drawable in a slicecamera for ROI selection purpose
TclString color
TclString menu
enum FACE
FACE face
constructor
TclBoundingBox3D(TclModule *m, TclScene2D *scene, unsigned int x1, unsigned int y1, unsigned int z1, unsigned int x2, unsigned int y2, unsigned int z2, const TclString& color = "cyan", const TclString& menu = EMPTY_STRING)
scene - scene that object lies in
x1 - box first x coordinate
y1 - box first y coordinate
z1 - box first z coordinate
x2 - box second x coordinate
y2 - box second y coordinate
z2 - box second z coordinate
color - box color
right - mouse button popup menu
destructor
virtual void recompute(SliceCamera *cam)
const unsigned int* getBox(void) const
void setClosestFace(SliceCamera::SLICE_ORIENTATION geom, unsigned int x, unsigned int y, unsigned int z)
void moveFace(unsigned int x, unsigned int y, unsigned int z)
void releaseFace(void)
virtual void buttonPressedCallback(SliceCamera *slicecam, int mx, int my)
mx - first coordinate of the pixel clicked
my - second coordinate of the pixel clicked
virtual void buttonMotionCallback(SliceCamera *slicecam, int mx, int my)
mx - first coordinate of the mouse position
my - second coordinate of the mouse position
virtual void buttonReleasedCallback(SliceCamera *slicecam, int mx, int my)
mx - first coordinate of the mouse position
my - second coordinate of the mouse position
virtual void translate(const Vec2
virtual void rotate(const Rotation2D &r)
virtual void scale(const double s)
virtual void updateCenter(Vec2
virtual double updateRadius(const Vec2
virtual double computeClosestDistance(DataTypes::MouseClick& mc) const
virtual void select(Camera2D *)
virtual void unselect(Camera2D *)
virtual void redraw(Camera2D *cam)
static int list(TclModule *m, int argc, char **argv)
static int create(TclModule *m, 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