a TCL OpenGL camera object
![]() | Init (TclModule *m) Called upon system startup to create Togl command. |
![]() | SetDefaultClientData (ClientData clientData) Changes the default Client Data |
![]() | getClient (void) const returns Togl client |
![]() | setSelectedClippingPlane (TclClippingPlane *cp) selects a clipping plane: enable MOVE_CAMERA_OBJECT motion mode and set clipping plane menu |
![]() | unsetSelectedClippingPlane (void) unselects a clipping plane: disableMOVE_CAMERA_OBJECT motion mode and dismiss clipping plane menu |
![]() | setSelectedLight (TclLight *cl) selects a light: enable MOVE_CAMERA_OBJECT motion mode and set light menu |
![]() | unsetSelectedLight (void) unselects a light: disableMOVE_CAMERA_OBJECT motion mode and dismiss light menu |
![]() | setSelectedObject (Data3D *data) selects a scene object |
![]() | newClippingPlane (void) creates a new clipping plane in this camera centered on the scene and orthogonal to (0, 0, 1) |
![]() | newClippingPlane (GLdouble *eqn) creates a new clipping plane in this camera with equation equation[0] x + equation[1] y + equation[2] z + equation[3] = 0 |
![]() | newClippingPlane (const Vec3 creates a new clipping plane in this camera passing through P and orthogonal to n |
![]() | newLight (void) creates a new white directional light in this camera |
![]() | bindMouseMotion (bool on) set the action to perform each time the mouse is moved |
![]() | grab (const TclString& filename) dump camera window content in an xwd file |
![]() | destroyCmd (int argc, char **argv) -destroy TCL option |
![]() | redrawCmd (int argc, char **argv) -redraw TCL option |
![]() | projectionMatrixCmd (int argc, char **argv) -projectionMatrix TCL option |
![]() | centerCmd (int argc, char **argv) -center TCL option |
![]() | refCenterCmd (int argc, char **argv) -refCenter TCL option |
![]() | scaleFactorCmd (int argc, char **argv) -scaleFactor TCL option |
![]() | focusCmd (int argc, char **argv) -focus TCL option |
![]() | focusOnRegionCmd (int argc, char **argv) -focusOnRegion TCL option |
![]() | autofocusCmd (int argc, char **argv) -autofocus TCL option |
![]() | widgetCmd (int argc, char **argv) -widget TCL option |
![]() | menuCmd (int argc, char **argv) -menu TCL option |
![]() | objectsCmd (int argc, char **argv) -objects TCL option |
![]() | selectCmd (int argc, char **argv) -select TCL option |
![]() | clippingPlanesCmd (int argc, char **argv) -clippingPlanes TCL option |
![]() | useTwoSidesCmd (int argc, char **argv) -useTwoSides TCL option |
![]() | lightsCmd (int argc, char **argv) -lights TCL option |
![]() | boundingBoxColorCmd (int argc, char **argv) -boundingBoxColor TCL option |
![]() | boundingBoxWidthCmd (int argc, char **argv) -boundingBoxWidth TCL option |
![]() | boundingBoxDisplayCmd (int argc, char **argv) -boundingBoxDisplay TCL option |
![]() | bgColorCmd (int argc, char **argv) -bgColor TCL option |
![]() | sceneCmd (int argc, char **argv) -scene TCL option |
![]() | widthCmd (int argc, char **argv) -width TCL option |
![]() | heightCmd (int argc, char **argv) -height TCL option |
![]() | eyeOffsetCmd (int argc, char **argv) -eyeOffset TCL option |
![]() | fieldOfViewCmd (int argc, char **argv) -fieldOfView TCL option |
![]() | fogCmd (int argc, char **argv) -fog TCL option |
![]() | fogRangeCmd (int argc, char **argv) -fogRange TCL option |
![]() | stencilBufferCmd (int argc, char **argv) -stencilBuffer TCL option |
![]() | specularityCmd (int argc, char **argv) -specularity TCL option |
![]() | renderFrontAndBackCmd (int argc, char **argv) -frontAndBack TCL option |
![]() | bindMotionCmd (int argc, char **argv) -bindMotion TCL option |
![]() | motionModeCmd (int argc, char **argv) -motionMode TCL option |
![]() | mouseMotionCmd (int argc, char **argv) -mouseMotion TCL option |
![]() | keyPlusCmd (int argc, char **argv) -keyPlus TCL option |
![]() | keyMinusCmd (int argc, char **argv) -keyMinus TCL option |
![]() | keyDownCmd (int argc, char **argv) -keyDown TCL option |
![]() | keyUpCmd (int argc, char **argv) -keyUp TCL option |
![]() | keyRightCmd (int argc, char **argv) -keyRight TCL option |
![]() | keyLeftCmd (int argc, char **argv) -keyLeft TCL option |
![]() | keyCmd (int argc, char **argv) -key TCL option |
![]() | button1ReleasedCmd (int argc, char **argv) -button1Released TCL option |
![]() | button2ReleasedCmd (int argc, char **argv) -button2Released TCL option |
![]() | button3ReleasedCmd (int argc, char **argv) -button3Released TCL option |
![]() | button1PressedCmd (int argc, char **argv) -button1Pressed TCL option |
![]() | button2PressedCmd (int argc, char **argv) -button2Pressed TCL option |
![]() | button3PressedCmd (int argc, char **argv) -button3Pressed TCL option |
![]() | shiftButton1PressedCmd (int argc, char **argv) -shiftButton1Pressed TCL option |
![]() | shiftButton2PressedCmd (int argc, char **argv) -shiftButton2Pressed TCL option |
![]() | shiftButton3PressedCmd (int argc, char **argv) -shiftButton3Pressed TCL option |
![]() | ctrlButton1PressedCmd (int argc, char **argv) -ctrlButton1Pressed TCL option |
![]() | ctrlButton2PressedCmd (int argc, char **argv) -ctrlButton2Pressed TCL option |
![]() | ctrlButton3PressedCmd (int argc, char **argv) -ctrlButton3Pressed TCL option |
![]() | recordCmd (int argc, char **argv) -record TCL command option |
![]() | mouselineCmd (int argc, char **argv) -mouseline TCL command option |
![]() | create (TclModule *m, int argc, char **argv) creates a new 3D camera |
![]() | list (TclModule *m, int argc, char **argv) build a list of all available cameras |
![]() | redraw (void) redraw scene when idle |
![]() | resize (void) sets the viewport to (width,height) and updates camera parameters |
![]() | resize (unsigned int w, unsigned int h) sets the viewport to (w,h) and updates camera parameters |
![]() | startComputation () The action performed when the deformation loop of the scene is activated |
![]() | stopComputation () The action performed when the deformation loop of the scene is de-activated |
![]() | applyObjectSelection (Data3D *obj) Eventually install the Tcl menus associated with a 3D object |
![]() | applyObjectUnselection (Data3D *obj) Eventually Uninstall the Tcl menus associated with a 3D object |
![]() | MakeCurrent (void) const Bind the OpenGL rendering context to the specified Togl widget |
![]() | SwapBuffers (void) const Call the glXSwapBuffers() to swap the buffer when using double buffering |
![]() | timer_routine (void) dummy routine that is called by Tk_CreateTimerHandler |
![]() | GetIdent (void) const returns the user's identification string |
![]() | GetInterp (void) const returns the associated TCL interpretor |
![]() | getParent (void) const returns the name of the parent widget |
![]() | AllocColor (float red, float green, float blue) const When using color index mode, try to get a color cell as close as possible to a given (red,green,blue) color |
![]() | FreeColor (unsigned long index) const When using color index mode, remove a color cell previously allocated by AllocColor |
![]() | SetColor (unsigned long index, float red, float green, float blue) const When using color index mode, allocate a color cell as close as possible to a given (red,green,blue) color |
![]() | LoadBitmapFont (const char *fontname) const Load the named bitmap font as a sequence of bitmaps in a display list |
![]() | UnloadBitmapFont (GLuint fontbase) const Release the display lists which were generated by LoadBitmapFont() |
![]() | redraw_overlay (void) const redraw as overlay the scene |
![]() | UseLayer (int layer) defines the layer where to draw the overlay |
![]() | ShowOverlay (void) map the overlay window |
![]() | HideOverlay (void) unmap the overlay window |
![]() | PostOverlayRedisplay (void) query a redisplay of the overlay window |
![]() | ExistsOverlay (void) const whether there is an overlay window |
![]() | GetOverlayTransparentValue () const returns the transparent pixel value |
![]() | IsMappedOverlay (void) const returns if the overlay has been mapped |
![]() | AllocColorOverlay (float red, float green, float blue) const When using color index mode for overlay, try to get a color cell as close as possible to a given (red,green,blue) color |
![]() | FreeColorOverlay (unsigned long index) const When using color index mode for overlay, remove a color cell previously allocated by AllocColorOverlay |
![]() | GetClientData (void) const returns the current client_data |
![]() | SetClientData (ClientData clientData) sets the client data |
![]() | GetDisplay (void) const return the X11 Display associated with the widget |
![]() | GetScreen (void) const return the X11 Screen associated with the widget |
![]() | GetScreenNumber (void) const return the X11 Screen number associated with the widget |
![]() | GetColormap (void) const return the X11 colormap associated with the widget |
![]() | DumpToEpsFile (const char *filename, int inColor, void (*user_redraw)(const Togl *)) const save an OpenGL scene in a encapsulated postcript file |
![]() | getRef (void) const returns the index of the Togl object |
![]() | getHead (void) const returns the first existing Togl object |
![]() | following (void) const returns the next Togl object in the list |
![]() | exception
| ||||
![]() | constructor
| ||||
![]() | destructor
|
![]() | MasterCtxt the General OpenGL context of the camera |
![]() | MasterCtxt the General OpenGL context of the camera |
![]() | DefaultClientData the default client data transmitted at the initialization of the widget |
![]() | CommandTable the hash table associated with the togl TCL command |
![]() | ToglMesaUsedPixelCells array where is stored the used color cells when using MESAGL |
![]() | ToglMesaUsedFreeCells the number of used color cells when using MESAGL |
![]() | configSpecs [] the array describing the syntax of the original "togl" TCL command |
![]() | initialize (Tk_Window tkwin) initialize all internal flags before reading the TCL command line |
![]() | configure (int argc, char *argv[], int flags) parse the TCL command line and eventually recreate the window and GLX context |
![]() | MakeWindowExist (void) Modified version of Tk_MakeWindowExist |
![]() | SetupOverlay (void) Do all the setup for overlay planes |
![]() | Win32CreateCiColormap (void) creates a colormap for Windows |
![]() | redrawWhenIdle (ClientData clientData) render the scene by calling CameraOGL::redraw() |
![]() | renderOverlayWhenIdle (ClientData clientData) render in the overlay planes by calling redraw_overlay() |
![]() | resizeWhenIdle (ClientData clientData) resize camera |
![]() | Destroy (char *clientData) destroy the widget |
![]() | EventProc (ClientData clientData, XEvent *eventPtr) This gets called to handle Togl window configuration events |
![]() | Timer (ClientData) Gets called from Tk_CreateTimerHandler |
![]() | Widget (ClientData clientData, Tcl_Interp *interp, int argc, char *argv[]) Parse the options of the Togl command |
![]() | Cmd (ClientData clientData, Tcl_Interp *interp, int argc, char **argv) throw(InvalidCommandLine) Called when Togl is executed - creation of a Togl widget : Creates a new window Creates an 'Togl' data structure Creates an event handler for this window Creates a command that handles this object Configures this Togl for the given arguments |
Constructor
Desstructor
a TCL OpenGL camera object
class CannotMakeWindowExist: public Exception
HGLRC tglGLHglrc
int CiColormapSize
GLXContext GlCtx
Tk_Window TkWin
Tcl_Interp* Interp
Tk_Cursor Cursor
int Time
int RgbaFlag
int RgbaRed
int RgbaGreen
int RgbaBlue
int DoubleFlag
int DepthFlag
int DepthSize
int AccumFlag
int AccumRed
int AccumGreen
int AccumBlue
int AccumAlpha
int AlphaFlag
int AlphaSize
int StencilFlag
int StencilSize
int PrivateCmapFlag
int OverlayFlag
int AuxNumber
char* Ident
ClientData Client_Data
GLboolean updatePending
GLboolean resizePending
GLboolean exposePending
GLXContext OverlayCtx
HGLRC tglGLOverlayHglrc
Window OverlayWindow
GLboolean OverlayUpdatePending
Colormap OverlayCmap
int OverlayTransparentPixel
int OverlayIsMapped
XVisualInfo* EpsVisual
GLfloat* EpsRedMap
GLfloat* EpsGreenMap
GLfloat* EpsBlueMap
GLint EpsMapSize
TclString parentFrame
TclString cameraFrame
TclString menuFrame
static HGLRC MasterCtxt
static ClientData DefaultClientData
static Tcl_HashTable CommandTable
static unsigned long* ToglMesaUsedPixelCells
static int ToglMesaUsedFreeCells
static Tk_ConfigSpec configSpecs[]
static int Init(TclModule *m)
static void SetDefaultClientData(ClientData clientData)
void initialize(Tk_Window tkwin)
int configure(int argc, char *argv[], int flags)
constructor
Togl(TclModule *m, const TclString& parent, TclScene3D *scene, bool stereo = false, const std::type_info& type = typeid(Togl), CameraOGL *cam = 0) throw(InvalidCommandLine, CannotMakeWindowExist)
CannotMakeWindowExist unable to create TCL window
parent - parent window to create camera in (if EMPTY_STRING, camera is created in a new toplevel window)
scene - visualized scene interface
stereo - if true, allocates a new stereo buffer
type - dynamic object type
cam - client (if already created)
destructor
CameraOGL* getClient(void) const
void setSelectedClippingPlane(TclClippingPlane *cp)
void unsetSelectedClippingPlane(void)
void setSelectedLight(TclLight *cl)
void unsetSelectedLight(void)
void setSelectedObject(Data3D *data)
virtual TclClippingPlane* newClippingPlane(void)
virtual TclClippingPlane* newClippingPlane(GLdouble *eqn)
virtual TclClippingPlane* newClippingPlane(const Vec3
virtual Light* newLight(void)
virtual void bindMouseMotion(bool on)
virtual void grab(const TclString& filename)
virtual int destroyCmd(int argc, char **argv)
int redrawCmd(int argc, char **argv)
int projectionMatrixCmd(int argc, char **argv)
int centerCmd(int argc, char **argv)
int refCenterCmd(int argc, char **argv)
int scaleFactorCmd(int argc, char **argv)
int focusCmd(int argc, char **argv)
int focusOnRegionCmd(int argc, char **argv)
int autofocusCmd(int argc, char **argv)
int widgetCmd(int argc, char **argv)
int menuCmd(int argc, char **argv)
int objectsCmd(int argc, char **argv)
int selectCmd(int argc, char **argv)
int clippingPlanesCmd(int argc, char **argv)
int useTwoSidesCmd(int argc, char **argv)
int lightsCmd(int argc, char **argv)
int boundingBoxColorCmd(int argc, char **argv)
int boundingBoxWidthCmd(int argc, char **argv)
int boundingBoxDisplayCmd(int argc, char **argv)
int bgColorCmd(int argc, char **argv)
int sceneCmd(int argc, char **argv)
int widthCmd(int argc, char **argv)
int heightCmd(int argc, char **argv)
int eyeOffsetCmd(int argc, char **argv)
int fieldOfViewCmd(int argc, char **argv)
int fogCmd(int argc, char **argv)
int fogRangeCmd(int argc, char **argv)
int stencilBufferCmd(int argc, char **argv)
int specularityCmd(int argc, char **argv)
int renderFrontAndBackCmd(int argc, char **argv)
int bindMotionCmd(int argc, char **argv)
int motionModeCmd(int argc, char **argv)
int mouseMotionCmd(int argc, char **argv)
int keyPlusCmd(int argc, char **argv)
int keyMinusCmd(int argc, char **argv)
int keyDownCmd(int argc, char **argv)
int keyUpCmd(int argc, char **argv)
int keyRightCmd(int argc, char **argv)
int keyLeftCmd(int argc, char **argv)
int keyCmd(int argc, char **argv)
int button1ReleasedCmd(int argc, char **argv)
int button2ReleasedCmd(int argc, char **argv)
int button3ReleasedCmd(int argc, char **argv)
int button1PressedCmd(int argc, char **argv)
int button2PressedCmd(int argc, char **argv)
int button3PressedCmd(int argc, char **argv)
int shiftButton1PressedCmd(int argc, char **argv)
int shiftButton2PressedCmd(int argc, char **argv)
int shiftButton3PressedCmd(int argc, char **argv)
int ctrlButton1PressedCmd(int argc, char **argv)
int ctrlButton2PressedCmd(int argc, char **argv)
int ctrlButton3PressedCmd(int argc, char **argv)
int recordCmd(int argc, char **argv)
int mouselineCmd(int argc, char **argv)
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 redraw(void)
void resize(void)
void resize(unsigned int w, unsigned int h)
virtual void startComputation()
virtual void stopComputation()