Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

XScene.h

Go to the documentation of this file.
00001 //     $Id: XScene.h,v 1.1.1.1 2001/01/04 01:01:12 burnett Exp $
00002 //  Author: T. Burnett, G. Barrand
00003 // 
00004 // It declares the class XScene, a specific  display
00005 // for X11
00006 
00007 #include "gui/SceneControl.h"
00008 #include <X11/Intrinsic.h>
00009 #include <iostream>
00010 class Xdraw;
00011 
00012 using namespace gui;
00013 
00014 class XScene : public  SceneControl
00015    {
00016  public:
00017 
00018    XScene(float size=100, int initial_view=1, Widget=0);
00019    // constructor. If no widget, it will create an X-display window
00020    ~XScene();
00021    // destructor
00022 
00023    int viewit();
00024    // Start an event or detector display
00025 
00026    virtual void redisplay();
00027    // overrides SceneControl to make sure Xdraw is ready
00028 
00029    int processEvent(XEvent& myevent);
00030    // viewit and Motif use
00031  private:
00032    void viewitInstructions(std::ostream& =std::cout);
00033    int getEvent();
00034    // used for viewit interface
00035 
00036    Xdraw*       _drawer;   // associated VwDraw object
00037    Display*     _display; // X display, window
00038    Window       _window;
00039 
00040    Widget       _widget; // associated Widget if set by client
00041 
00042  };
00043 
00044 
00045 
00046 
00047 
00048 
00049 

Generated at Mon Nov 26 18:18:12 2001 by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000