forked from root-project/root
-
Notifications
You must be signed in to change notification settings - Fork 0
/
TViewer3DPad.h
49 lines (37 loc) · 1.76 KB
/
TViewer3DPad.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
// @(#)root/gpad:$Id$
// Author: Richard Maunder 10/3/2005
/*************************************************************************
* Copyright (C) 1995-2004, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* *
* For the licensing terms see $ROOTSYS/LICENSE. *
* For the list of contributors see $ROOTSYS/README/CREDITS. *
*************************************************************************/
#ifndef ROOT_TViewer3DPad
#define ROOT_TViewer3DPad
#include "TVirtualViewer3D.h"
class TVirtualPad;
class TViewer3DPad : public TVirtualViewer3D {
private:
TVirtualPad & fPad; ///< the pad we paint into.
Bool_t fBuilding; ///< is scene being built?
// Non-copyable
TViewer3DPad(const TViewer3DPad &);
TViewer3DPad & operator = (const TViewer3DPad &);
public:
TViewer3DPad(TVirtualPad & pad) : fPad(pad), fBuilding(kFALSE) {};
~TViewer3DPad() {};
virtual Bool_t PreferLocalFrame() const;
virtual void BeginScene();
virtual Bool_t BuildingScene() const { return fBuilding; }
virtual void EndScene();
virtual Int_t AddObject(const TBuffer3D & buffer, Bool_t * addChildren = 0);
virtual Int_t AddObject(UInt_t placedID, const TBuffer3D & buffer, Bool_t * addChildren = 0);
// Composite shapes not supported on this viewer currently - ignore.
// Will result in a set of individual component shapes
virtual Bool_t OpenComposite(const TBuffer3D & buffer, Bool_t * addChildren = 0);
virtual void CloseComposite();
virtual void AddCompositeOp(UInt_t operation);
ClassDef(TViewer3DPad,0) //A 3D Viewer painter for TPads
};
#endif