2D Camera interface using a TCL canvas widget
![]() | CAMERA_STYLE the different possibilities for laying out the camera widget |
![]() | init (const TclString& p, bool menu, TclCamera2D::CAMERA_STYLE style, const TclString &menuWidget=EMPTY_STRING) constructors common code |
![]() | getClient (void) const returns camera2D client |
![]() | getScene (void) const returns camera scene |
![]() | startComputation () modifies the computation button and activates the corresponding scene |
![]() | stopComputation () modifies the computation button and desactivates the corresponding scene |
![]() | resize (void) resizes camera widget to actual size |
![]() | getWindow (void) returns camera TCL window name |
![]() | canvasCall (int argc, char **argv) calls associated canvas callback procedure |
![]() | getCanvas (void) const returns associated canvas name |
![]() | getColor (void) const returns background color |
![]() | getColor2 (void) const returns secondary background color |
![]() | bindMouseMotion (bool on) bind mouse motion if on == true |
![]() | applyObjectSelection (Data2D *obj) selects a new object |
![]() | applyObjectUnselection (Data2D *obj) unselects an object |
![]() | drawBoundingBox (Data2D *obj) const draw object bounding box |
![]() | grab (const TclString& filename) dump camera window content in an xwd file |
![]() | destroyCmd (int argc, char **) -destroy TCL command option |
![]() | resizeCmd (int argc, char **) -resize TCL command option |
![]() | redrawCmd (int argc, char **) -redraw TCL command option |
![]() | focusCmd (int argc, char **) -focus TCL command option |
![]() | bgcolorCmd (int argc, char **) -bgcolor TCL command option |
![]() | selectCmd (int argc, char **) -select TCL command option |
![]() | showBoundingBoxCmd (int argc, char **) -showBoundingBox TCL command option |
![]() | boundingBoxWidthCmd (int argc, char **) -boundingBoxWidth TCL command option |
![]() | boundingBoxColorCmd (int argc, char **) -boundingBoxColor TCL command option |
![]() | canvasCmd (int argc, char **) -canvas TCL command option |
![]() | menuCmd (int argc, char **) -canvas TCL command option |
![]() | sceneCmd (int argc, char **) -scene TCL command option |
![]() | widthCmd (int argc, char **) -width TCL command option |
![]() | heightCmd (int argc, char **) -height TCL command option |
![]() | scaleCmd (int argc, char **) -scale TCL command option |
![]() | translateCmd (int argc, char **) -translate TCL command option |
![]() | buttonRelease1Cmd (int argc, char **) -buttonRelease1 TCL command option |
![]() | buttonRelease2Cmd (int argc, char **) -buttonRelease2 TCL command option |
![]() | buttonRelease3Cmd (int argc, char **) -buttonRelease3 TCL command option |
![]() | buttonPress1Cmd (int argc, char **) -buttonPress1 TCL command option |
![]() | buttonPress2Cmd (int argc, char **) -buttonPress2 TCL command option |
![]() | buttonPress3Cmd (int argc, char **) -buttonPress3 TCL command option |
![]() | ctrlButtonRelease1Cmd (int argc, char **) -ctrlButtonRelease1 TCL command option |
![]() | ctrlButtonRelease2Cmd (int argc, char **) -ctrlButtonRelease2 TCL command option |
![]() | ctrlButtonRelease3Cmd (int argc, char **) -ctrlButtonRelease3 TCL command option |
![]() | ctrlButtonPress1Cmd (int argc, char **) -ctrlButtonPress1 TCL command option |
![]() | ctrlButtonPress2Cmd (int argc, char **) -ctrlButtonPress2 TCL command option |
![]() | ctrlButtonPress3Cmd (int argc, char **) -ctrlButtonPress3 TCL command option |
![]() | shiftButtonRelease1Cmd (int argc, char **) -shiftButtonRelease1 TCL command option |
![]() | shiftButtonRelease2Cmd (int argc, char **) -shiftButtonRelease2 TCL command option |
![]() | shiftButtonRelease3Cmd (int argc, char **) -shiftButtonRelease3 TCL command option |
![]() | shiftButtonPress1Cmd (int argc, char **) -shiftButtonPress1 TCL command option |
![]() | shiftButtonPress2Cmd (int argc, char **) -shiftButtonPress2 TCL command option |
![]() | shiftButtonPress3Cmd (int argc, char **) -shiftButtonPress3 TCL command option |
![]() | mouseMotionCmd (int argc, char **) -mouseMotion TCL command option |
![]() | setMoveCmd (int argc, char **) -setMove TCL command option |
![]() | keyUpCmd (int argc, char **) -keyUp TCL command option |
![]() | keyDownCmd (int argc, char **) -keyDown TCL command option |
![]() | keyRightCmd (int argc, char **) -keyRight TCL command option |
![]() | keyLeftCmd (int argc, char **) -keyLeft TCL command option |
![]() | recordCmd (int argc, char **argv) -record TCL command option |
![]() | CanvasCmd (TclObject *cd, Tcl_Interp *interp, int argc, char **argv) executes TCL canvas command |
![]() | create (TclModule *m, int argc, char **argv) creates a new camera |
![]() | list (TclModule *m, int argc, char **argv) build a list of all available cameras |
![]() | Exception class
| ||||
![]() | Constructor
| ||||
![]() | Desstructor
|
![]() | setWindow (const TclString& name) set camera TCL window name |
2D Camera interface using a TCL canvas widget
Exception class
Constructor
TclCamera2D(TclModule* m, TclScene2D *scn, const TclString& p = EMPTY_STRING, bool menu = true, CAMERA_STYLE style = CAMERA, unsigned int w = DEFAULT_CAMERA2D_WIDTH, unsigned int h = DEFAULT_CAMERA2D_HEIGHT, double scale = DEFAULT_CAMERA_SCALE, const char *color = "#E8E0D2", const char *subcolor = "#D8D0C2", const std::type_info& info = typeid(TclCamera2D), Camera2D *cam = 0, const TclString &menuWidget=EMPTY_STRING) throw(UnableToCreate)
scn - scene the camera visualize
p - TCL parent window name for camera widget
menu - boolean indicating if the objects should install or uninstall their menus
style - the way the camera widget should appear on the screen
width - camera width in pixels
height - camera height in pixels
scale - camera scale factor
TclCamera2D(const TclCamera2D& cam)
Desstructor
TclString window
TclString menuName
ClientData canvas
Tcl_CmdProc* canvasProc
TclString color
TclString subcolor
void init(const TclString& p, bool menu, TclCamera2D::CAMERA_STYLE style, const TclString &menuWidget=EMPTY_STRING)
menu - Tcl name of the menu widget Camera2D* getClient(void) const
TclScene2D* getScene(void) const
virtual void startComputation()
virtual void stopComputation()
virtual void resize(void)
const TclString& getWindow(void)
int canvasCall(int argc, char **argv)
argv - arguments array TclString getCanvas(void) const
const TclString& getColor(void) const
const TclString& getColor2(void) const
virtual void bindMouseMotion(bool on)
virtual void applyObjectSelection(Data2D *obj)
virtual void applyObjectUnselection(Data2D *obj)
virtual void drawBoundingBox(Data2D *obj) const
virtual void grab(const TclString& filename)
int destroyCmd(int argc, char **)
int resizeCmd(int argc, char **)
int redrawCmd(int argc, char **)
int focusCmd(int argc, char **)
int bgcolorCmd(int argc, char **)
int selectCmd(int argc, char **)
int showBoundingBoxCmd(int argc, char **)
int boundingBoxWidthCmd(int argc, char **)
int boundingBoxColorCmd(int argc, char **)
int canvasCmd(int argc, char **)
int menuCmd(int argc, char **)
int sceneCmd(int argc, char **)
int widthCmd(int argc, char **)
int heightCmd(int argc, char **)
int scaleCmd(int argc, char **)
int translateCmd(int argc, char **)
int buttonRelease1Cmd(int argc, char **)
int buttonRelease2Cmd(int argc, char **)
int buttonRelease3Cmd(int argc, char **)
int buttonPress1Cmd(int argc, char **)
int buttonPress2Cmd(int argc, char **)
int buttonPress3Cmd(int argc, char **)
int ctrlButtonRelease1Cmd(int argc, char **)
int ctrlButtonRelease2Cmd(int argc, char **)
int ctrlButtonRelease3Cmd(int argc, char **)
int ctrlButtonPress1Cmd(int argc, char **)
int ctrlButtonPress2Cmd(int argc, char **)
int ctrlButtonPress3Cmd(int argc, char **)
int shiftButtonRelease1Cmd(int argc, char **)
int shiftButtonRelease2Cmd(int argc, char **)
int shiftButtonRelease3Cmd(int argc, char **)
int shiftButtonPress1Cmd(int argc, char **)
int shiftButtonPress2Cmd(int argc, char **)
int shiftButtonPress3Cmd(int argc, char **)
int mouseMotionCmd(int argc, char **)
int setMoveCmd(int argc, char **)
int keyUpCmd(int argc, char **)
int keyDownCmd(int argc, char **)
int keyRightCmd(int argc, char **)
int keyLeftCmd(int argc, char **)
int recordCmd(int argc, char **argv)
static int CanvasCmd(TclObject *cd, Tcl_Interp *interp, int argc, char **argv)
interp - TCL interpretor for command
argc - number of arguments
argv - arguments static int create(TclModule *m, int argc, char **argv)
argc - command line number of arguments
argv - command line arguments static int list(TclModule *m, int argc, char **argv)
void setWindow(const TclString& name)
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