ROOT  6.06/09
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 // //
17 // TViewer3DPad //
18 // //
19 // Provides 3D viewer interface (TVirtualViewer3D) support on a pad. //
20 // Will be merged with TView / TView3D eventually. //
21 // //
22 //////////////////////////////////////////////////////////////////////////
23 
24 #ifndef ROOT_TVirtualViewer3D
25 #include "TVirtualViewer3D.h"
26 #endif
27 
28 class TVirtualPad;
29 
31 private:
32  TVirtualPad & fPad; // the pad we paint into.
33  Bool_t fBuilding; // is scene being built?
34 
35  // Non-copyable
36  TViewer3DPad(const TViewer3DPad &);
38 
39 public:
40  TViewer3DPad(TVirtualPad & pad) : fPad(pad), fBuilding(kFALSE) {};
42 
43  virtual Bool_t PreferLocalFrame() const;
44  virtual void BeginScene();
45  virtual Bool_t BuildingScene() const { return fBuilding; }
46  virtual void EndScene();
47  virtual Int_t AddObject(const TBuffer3D & buffer, Bool_t * addChildren = 0);
48  virtual Int_t AddObject(UInt_t placedID, const TBuffer3D & buffer, Bool_t * addChildren = 0);
49 
50  // Composite shapes not supported on this viewer currently - ignore.
51  // Will result in a set of individual component shapes
52  virtual Bool_t OpenComposite(const TBuffer3D & buffer, Bool_t * addChildren = 0);
53  virtual void CloseComposite();
54  virtual void AddCompositeOp(UInt_t operation);
55 
56  ClassDef(TViewer3DPad,0) //A 3D Viewer painter for TPads
57 };
58 
59 #endif
TViewer3DPad & operator=(const TViewer3DPad &)
TViewer3DPad(const TViewer3DPad &)
virtual void AddCompositeOp(UInt_t operation)
int Int_t
Definition: RtypesCore.h:41
bool Bool_t
Definition: RtypesCore.h:59
const Bool_t kFALSE
Definition: Rtypes.h:92
Provides 3D viewer interface (TVirtualViewer3D) support on a pad.
Definition: TViewer3DPad.h:30
#define ClassDef(name, id)
Definition: Rtypes.h:254
virtual Bool_t OpenComposite(const TBuffer3D &buffer, Bool_t *addChildren=0)
Composite shapes not supported on this viewer currently - ignore.
Abstract 3D shapes viewer.
virtual void EndScene()
Close the scene on the viewer.
TVirtualPad is an abstract base class for the Pad and Canvas classes.
Definition: TVirtualPad.h:59
unsigned int UInt_t
Definition: RtypesCore.h:42
Generic 3D primitive description class.
Definition: TBuffer3D.h:19
virtual Bool_t PreferLocalFrame() const
virtual void CloseComposite()
Bool_t fBuilding
Definition: TViewer3DPad.h:33
TVirtualPad & fPad
Definition: TViewer3DPad.h:32
TViewer3DPad(TVirtualPad &pad)
Definition: TViewer3DPad.h:40
virtual Int_t AddObject(const TBuffer3D &buffer, Bool_t *addChildren=0)
Add an 3D object described by the buffer to the viewer.
virtual void BeginScene()
virtual Bool_t BuildingScene() const
Definition: TViewer3DPad.h:45