00001 // @(#)root/base:$Name: $:$Id: TQtRootViewer3D.h 00002 // Author: Valeri Fine 05/10/2004 00003 00004 /************************************************************************* 00005 * Copyright (C) 1995-2004, Rene Brun and Fons Rademakers. * 00006 * All rights reserved. * 00007 * * 00008 * For the licensing terms see $ROOTSYS/LICENSE. * 00009 * For the list of contributors see $ROOTSYS/README/CREDITS. * 00010 *************************************************************************/ 00011 00012 #ifndef ROOT_TQtRootCoinViewer3D 00013 #define ROOT_TQtRootCoinViewer3D 00014 /* 00016 // // 00017 // TQtRootViewer3D // 00018 // // 00019 // Abstract 3D shapes viewer. The concrete implementations are: // 00020 // // 00021 // TViewerX3D : X3d viewer // 00022 // TViewerOpenGL: OpenGL viewer // 00023 // TViewerPad3D : visualise the 3D scene in the current Pad // 00024 // // 00026 00027 #ifndef ROOT_Rtypes 00028 #include "Rtypes.h" 00029 #endif 00030 00031 #include "RVersion.h" 00032 #include "TObject3DView.h" 00033 #include "TVirtualViewer3D.h" 00034 00035 #ifndef __CINT__ 00036 #include <qobject.h> 00037 */ 00038 00039 #include "TQtRootViewer3D.h" 00040 00041 class TQtCoinViewerImp; 00042 class TVirtualPad; 00043 00044 class TQtRootCoinViewer3D : public TQtRootViewer3D 00045 { 00046 friend class SlotDisconnect; 00047 public: 00048 TQtRootCoinViewer3D(TVirtualPad * pad = 0); 00049 virtual void EndScene(); // called by TPad::Paint | PaintModified 00050 void DisconnectPad(); 00051 virtual TGLViewerImp *GetViewerImp() const { return (TGLViewerImp*)fCoinViewer;} 00052 //virtual Int_t AddObject(TObject *, Option_t* drawOption = 0, Bool_t * addChildren = 0); 00053 //virtual Int_t AddObjectFirst(TObject *, Option_t* drawOption = 0, Bool_t * addChildren = 0); 00054 protected: 00055 TQtCoinViewerImp *fCoinViewer; 00056 void Viewer(); 00057 ~TQtRootCoinViewer3D(); 00058 00059 virtual void MakeViewerNil(); 00060 void Disconnect(); 00061 void ClearPrimitives(); 00062 00063 ClassDef(TQtRootCoinViewer3D,0) // Abstract interface to 3D viewers 00064 }; 00065 00066 #endif