G4OpenInventorXtViewer.hh

Go to the documentation of this file.
00001 //
00002 // ********************************************************************
00003 // * License and Disclaimer                                           *
00004 // *                                                                  *
00005 // * The  Geant4 software  is  copyright of the Copyright Holders  of *
00006 // * the Geant4 Collaboration.  It is provided  under  the terms  and *
00007 // * conditions of the Geant4 Software License,  included in the file *
00008 // * LICENSE and available at  http://cern.ch/geant4/license .  These *
00009 // * include a list of copyright holders.                             *
00010 // *                                                                  *
00011 // * Neither the authors of this software system, nor their employing *
00012 // * institutes,nor the agencies providing financial support for this *
00013 // * work  make  any representation or  warranty, express or implied, *
00014 // * regarding  this  software system or assume any liability for its *
00015 // * use.  Please see the license in the file  LICENSE  and URL above *
00016 // * for the full disclaimer and the limitation of liability.         *
00017 // *                                                                  *
00018 // * This  code  implementation is the result of  the  scientific and *
00019 // * technical work of the GEANT4 collaboration.                      *
00020 // * By using,  copying,  modifying or  distributing the software (or *
00021 // * any work based  on the software)  you  agree  to acknowledge its *
00022 // * use  in  resulting  scientific  publications,  and indicate your *
00023 // * acceptance of all terms of the Geant4 Software license.          *
00024 // ********************************************************************
00025 //
00026 //
00027 // $Id$
00028 //
00029 // 
00030 // Jeff Kallenbach 01 Aug 1996
00031 // OpenInventor viewer - opens window, hard copy, etc.
00032 
00033 #ifndef G4OPENINVENTORXTVIEWER_HH
00034 #define G4OPENINVENTORXTVIEWER_HH
00035 
00036 #ifdef G4VIS_BUILD_OI_DRIVER
00037 
00038 // Inheritance :
00039 #include "G4OpenInventorViewer.hh"
00040 
00041 #include <X11/Intrinsic.h>
00042 class SoXtExaminerViewer;
00043 
00044 class G4OpenInventorXtViewer: public G4OpenInventorViewer {
00045 public: //G4VViewer
00046   virtual void FinishView();
00047   virtual void SetView();
00048 protected:
00049   virtual void ViewerRender();
00050   virtual SoCamera* GetCamera();
00051 public:
00052   G4OpenInventorXtViewer(G4OpenInventorSceneHandler& scene,
00053                          const G4String& name = "");
00054   void Initialise();
00055 
00056   virtual ~G4OpenInventorXtViewer();
00057 protected:
00058   Widget AddMenu(Widget,const G4String&,const G4String&);
00059   void AddButton(Widget,const G4String&,XtCallbackProc);
00060   static void PostScriptCbk(Widget,XtPointer,XtPointer);
00061   static void PixmapPostScriptCbk(Widget,XtPointer,XtPointer);
00062   static void WriteInventorCbk(Widget,XtPointer,XtPointer);
00063   static void EscapeCbk(Widget,XtPointer,XtPointer);
00064   static void SceneGraphStatisticsCbk(Widget,XtPointer,XtPointer);
00065   static void EraseDetectorCbk(Widget,XtPointer,XtPointer);
00066   static void EraseEventCbk(Widget,XtPointer,XtPointer);
00067   static void SetSolidCbk(Widget,XtPointer,XtPointer);
00068   static void SetWireFrameCbk(Widget,XtPointer,XtPointer);
00069   static void SetReducedWireFrameCbk(Widget,XtPointer,XtPointer);
00070   static void SetFullWireFrameCbk(Widget,XtPointer,XtPointer);
00071   static void UpdateSceneCbk(Widget,XtPointer,XtPointer);
00072   static void HelpCbk(Widget,XtPointer,XtPointer);
00073   static void HelpCancelCbk(Widget,XtPointer,XtPointer);
00074   static void SetPreviewCbk(Widget,XtPointer,XtPointer);
00075   static void SetPreviewAndFullCbk(Widget,XtPointer,XtPointer);
00076   Widget fShell;
00077   SoXtExaminerViewer* fViewer;
00078   Widget fHelpForm;
00079   Widget fHelpText;
00080 };
00081 
00082 #endif
00083 
00084 #endif

Generated on Mon May 27 17:49:13 2013 for Geant4 by  doxygen 1.4.7