Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/root/TViewer3DPad.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 // @(#)root/gpad:$Id$
0002 // Author: Richard Maunder  10/3/2005
0003 
0004 /*************************************************************************
0005  * Copyright (C) 1995-2021, Rene Brun and Fons Rademakers.               *
0006  * All rights reserved.                                                  *
0007  *                                                                       *
0008  * For the licensing terms see $ROOTSYS/LICENSE.                         *
0009  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
0010  *************************************************************************/
0011 
0012 #ifndef ROOT_TViewer3DPad
0013 #define ROOT_TViewer3DPad
0014 
0015 #include "TVirtualViewer3D.h"
0016 
0017 class TVirtualPad;
0018 
0019 class TViewer3DPad : public TVirtualViewer3D {
0020 private:
0021    TVirtualPad &fPad;       ///< the pad we paint into.
0022    Bool_t       fBuilding;  ///< is scene being built?
0023 
0024    // Non-copyable
0025    TViewer3DPad(const TViewer3DPad &) = delete;
0026    TViewer3DPad &operator=(const TViewer3DPad &) = delete;
0027 
0028 public:
0029    TViewer3DPad(TVirtualPad & pad) : fPad(pad), fBuilding(kFALSE) {};
0030    ~TViewer3DPad() override {};
0031 
0032    Bool_t PreferLocalFrame() const override;
0033    void   BeginScene() override;
0034    Bool_t BuildingScene() const override { return fBuilding; }
0035    void   EndScene() override;
0036    Int_t  AddObject(const TBuffer3D & buffer, Bool_t *addChildren = nullptr) override;
0037    Int_t  AddObject(UInt_t placedID, const TBuffer3D &buffer, Bool_t *addChildren = nullptr) override;
0038 
0039    // Composite shapes not supported on this viewer currently - ignore.
0040    // Will result in a set of individual component shapes
0041    Bool_t OpenComposite(const TBuffer3D & buffer, Bool_t *addChildren = nullptr) override;
0042    void   CloseComposite() override;
0043    void   AddCompositeOp(UInt_t operation) override;
0044 
0045    ClassDefOverride(TViewer3DPad,0)  //A 3D Viewer painter for TPads
0046 };
0047 
0048 #endif