Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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-2021, 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#include "TVirtualViewer3D.h"
16
17class TVirtualPad;
18
20private:
21 TVirtualPad &fPad; ///< the pad we paint into.
22 Bool_t fBuilding; ///< is scene being built?
23
24 // Non-copyable
25 TViewer3DPad(const TViewer3DPad &) = delete;
27
28public:
30 ~TViewer3DPad() override {};
31
32 Bool_t PreferLocalFrame() const override;
33 void BeginScene() override;
34 Bool_t BuildingScene() const override { return fBuilding; }
35 void EndScene() override;
36 Int_t AddObject(const TBuffer3D & buffer, Bool_t *addChildren = nullptr) override;
37 Int_t AddObject(UInt_t placedID, const TBuffer3D &buffer, Bool_t *addChildren = nullptr) override;
38
39 // Composite shapes not supported on this viewer currently - ignore.
40 // Will result in a set of individual component shapes
41 Bool_t OpenComposite(const TBuffer3D & buffer, Bool_t *addChildren = nullptr) override;
42 void CloseComposite() override;
43 void AddCompositeOp(UInt_t operation) override;
44
45 ClassDefOverride(TViewer3DPad,0) //A 3D Viewer painter for TPads
46};
47
48#endif
bool Bool_t
Definition RtypesCore.h:63
int Int_t
Definition RtypesCore.h:45
unsigned int UInt_t
Definition RtypesCore.h:46
constexpr Bool_t kFALSE
Definition RtypesCore.h:101
#define ClassDefOverride(name, id)
Definition Rtypes.h:341
Generic 3D primitive description class.
Definition TBuffer3D.h:18
Provides 3D viewer interface (TVirtualViewer3D) support on a pad.
Int_t AddObject(const TBuffer3D &buffer, Bool_t *addChildren=nullptr) override
Add an 3D object described by the buffer to the viewer.
Bool_t PreferLocalFrame() const override
Indicates if we prefer positions in local frame.
Bool_t BuildingScene() const override
TViewer3DPad(const TViewer3DPad &)=delete
void EndScene() override
Close the scene on the viewer.
TViewer3DPad & operator=(const TViewer3DPad &)=delete
TViewer3DPad(TVirtualPad &pad)
~TViewer3DPad() override
Bool_t fBuilding
is scene being built?
void CloseComposite() override
Bool_t OpenComposite(const TBuffer3D &buffer, Bool_t *addChildren=nullptr) override
Composite shapes not supported on this viewer currently - ignore.
TVirtualPad & fPad
the pad we paint into.
void BeginScene() override
Open a scene on the viewer.
void AddCompositeOp(UInt_t operation) override
TVirtualPad is an abstract base class for the Pad and Canvas classes.
Definition TVirtualPad.h:51
Abstract 3D shapes viewer.