Rendering/vtkXRenderWindowTclInteractor.h Source File

Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members File Members Related Pages

# Rendering/vtkXRenderWindowTclInteractor.h

Go to the documentation of this file.

    00001 /*=========================================================================
    00002
    00003   Program:   Visualization Toolkit
    00004   Module:    $RCSfile: vtkXRenderWindowTclInteractor.h,v $
    00005   Language:  C++
    00006
    00007   Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen
    00008   All rights reserved.
    00009   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
    00010
    00011      This software is distributed WITHOUT ANY WARRANTY; without even
    00012      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
    00013      PURPOSE.  See the above copyright notice for more information.
    00014
    00015 =========================================================================*/
    00047 #ifndef __vtkXRenderWindowTclInteractor_h
    00048 #define __vtkXRenderWindowTclInteractor_h
    00049
    00050 //===========================================================
    00051 // now we define the C++ class
    00052
    00053 #include "vtkRenderWindowInteractor.h"
    00054 #include <X11/StringDefs.h> // Needed for X types in public interface
    00055 #include <X11/Intrinsic.h> // Needed for X types in public interface
    00056
    00057 class VTK_RENDERING_EXPORT vtkXRenderWindowTclInteractor : public vtkRenderWindowInteractor
    00058 {
    00059 public:
    00060   static vtkXRenderWindowTclInteractor *New();
    00061   vtkTypeRevisionMacro(vtkXRenderWindowTclInteractor,vtkRenderWindowInteractor);
    00062   void PrintSelf(ostream& os, vtkIndent indent);
    00063
    00067   virtual void Initialize();
    00068
    00070
    00072   virtual void Initialize(XtAppContext app);
    00073   vtkGetMacro( App, XtAppContext );
    00075
    00077
    00084   virtual void Enable();
    00085   virtual void Disable();
    00087
    00089
    00092   virtual void Start();
    00093   virtual void UpdateSize(int,int);
    00095
    00097
    00111   virtual void SetWidget(Widget);
    00112   Widget GetWidget()
    00113     {return this->top;}
    00115
    00117
    00141   virtual void SetTopLevelShell(Widget);
    00142   Widget GetTopLevelShell()
    00143     {return this->TopLevelShell;}
    00145
    00147
    00148   int CreateTimer(int timertype);
    00149   int DestroyTimer(void);
    00151
    00153   void TerminateApp(void);
    00154
    00156
    00157   vtkGetMacro(BreakLoopFlag, int);
    00158   vtkSetMacro(BreakLoopFlag, int);
    00160
    00162
    00163   friend void vtkXRenderWindowTclInteractorCallback(Widget,XtPointer,
    00164                                                     XEvent *,Boolean *);
    00165   friend void vtkXRenderWindowTclInteractorTimer(XtPointer,XtIntervalId *);
    00167
    00168 protected:
    00169   vtkXRenderWindowTclInteractor();
    00170   ~vtkXRenderWindowTclInteractor();
    00171
    00172   Widget TopLevelShell;
    00173
    00174   Display *DisplayId;
    00175   Window WindowId;
    00176   Widget top;
    00177   Widget oldTop;
    00178   XtAppContext App;
    00179   int PositionBeforeStereo[2];
    00180
    00181   int BreakLoopFlag;
    00182 private:
    00183   vtkXRenderWindowTclInteractor(const vtkXRenderWindowTclInteractor&);  // Not implemented.
    00184   void operator=(const vtkXRenderWindowTclInteractor&);  // Not implemented.
    00185 };
    00186
    00187 #endif