Logo ROOT  
Reference Guide
TViewer3DPad.h
Go to the documentation of this file.
1 // @(#)root/gpad:$Id$
2 // Author: Richard Maunder 10/3/2005
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2004, Rene Brun and Fons Rademakers. *
6  * All rights reserved. *
7  * *
8  * For the licensing terms see $ROOTSYS/LICENSE. *
9  * For the list of contributors see $ROOTSYS/README/CREDITS. *
10  *************************************************************************/
11 
12 #ifndef ROOT_TViewer3DPad
13 #define ROOT_TViewer3DPad
14 
15 
16 #include "TVirtualViewer3D.h"
17 
18 class TVirtualPad;
19 
21 private:
22  TVirtualPad & fPad; ///< the pad we paint into.
23  Bool_t fBuilding; ///< is scene being built?
24 
25  // Non-copyable
26  TViewer3DPad(const TViewer3DPad &);
28 
29 public:
32 
33  virtual Bool_t PreferLocalFrame() const;
34  virtual void BeginScene();
35  virtual Bool_t BuildingScene() const { return fBuilding; }
36  virtual void EndScene();
37  virtual Int_t AddObject(const TBuffer3D & buffer, Bool_t * addChildren = 0);
38  virtual Int_t AddObject(UInt_t placedID, const TBuffer3D & buffer, Bool_t * addChildren = 0);
39 
40  // Composite shapes not supported on this viewer currently - ignore.
41  // Will result in a set of individual component shapes
42  virtual Bool_t OpenComposite(const TBuffer3D & buffer, Bool_t * addChildren = 0);
43  virtual void CloseComposite();
44  virtual void AddCompositeOp(UInt_t operation);
45 
46  ClassDef(TViewer3DPad,0) //A 3D Viewer painter for TPads
47 };
48 
49 #endif
TViewer3DPad::operator=
TViewer3DPad & operator=(const TViewer3DPad &)
TViewer3DPad::fPad
TVirtualPad & fPad
the pad we paint into.
Definition: TViewer3DPad.h:22
TViewer3DPad::TViewer3DPad
TViewer3DPad(TVirtualPad &pad)
Definition: TViewer3DPad.h:30
TViewer3DPad::AddObject
virtual Int_t AddObject(const TBuffer3D &buffer, Bool_t *addChildren=0)
Add an 3D object described by the buffer to the viewer.
Definition: TViewer3DPad.cxx:88
TViewer3DPad::BeginScene
virtual void BeginScene()
Open a scene on the viewer.
Definition: TViewer3DPad.cxx:41
TViewer3DPad::~TViewer3DPad
~TViewer3DPad()
Definition: TViewer3DPad.h:31
TViewer3DPad
Definition: TViewer3DPad.h:20
Int_t
int Int_t
Definition: RtypesCore.h:45
TViewer3DPad::EndScene
virtual void EndScene()
Close the scene on the viewer.
Definition: TViewer3DPad.cxx:65
Bool_t
bool Bool_t
Definition: RtypesCore.h:63
bool
TBuffer3D
Definition: TBuffer3D.h:17
TViewer3DPad::OpenComposite
virtual Bool_t OpenComposite(const TBuffer3D &buffer, Bool_t *addChildren=0)
Composite shapes not supported on this viewer currently - ignore.
Definition: TViewer3DPad.cxx:166
TVirtualViewer3D.h
kFALSE
const Bool_t kFALSE
Definition: RtypesCore.h:92
UInt_t
unsigned int UInt_t
Definition: RtypesCore.h:46
TVirtualPad
Definition: TVirtualPad.h:50
ClassDef
#define ClassDef(name, id)
Definition: Rtypes.h:325
TVirtualViewer3D
Definition: TVirtualViewer3D.h:33
TViewer3DPad::BuildingScene
virtual Bool_t BuildingScene() const
Definition: TViewer3DPad.h:35
TViewer3DPad::PreferLocalFrame
virtual Bool_t PreferLocalFrame() const
Indicates if we prefer positions in local frame.
Definition: TViewer3DPad.cxx:33
TViewer3DPad::CloseComposite
virtual void CloseComposite()
Definition: TViewer3DPad.cxx:173
TViewer3DPad::fBuilding
Bool_t fBuilding
is scene being built?
Definition: TViewer3DPad.h:23
TViewer3DPad::TViewer3DPad
TViewer3DPad(const TViewer3DPad &)
TViewer3DPad::AddCompositeOp
virtual void AddCompositeOp(UInt_t operation)
Definition: TViewer3DPad.cxx:178