CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
FWGeoTopNodeScene.h
Go to the documentation of this file.
1 #ifndef Fireworks_Core_FWGeoTopNodeScene_h
2 #define Fireworks_Core_FWGeoTopNodeScene_h
3 
4 #include "TGLScenePad.h"
5 
6 class FWGeoTopNode;
7 class TGLViewer;
8 
9 class FWGeoTopNodeGLScene : public TGLScenePad {
10 public:
11  FWGeoTopNodeGLScene(const FWGeoTopNodeGLScene&) = delete; // Not implemented
12  FWGeoTopNodeGLScene& operator=(const FWGeoTopNodeGLScene&) = delete; // Not implemented
13 protected:
14 public:
15  // UInt_t fNextCompositeID;
17 
18  FWGeoTopNodeGLScene(TVirtualPad* pad);
19  ~FWGeoTopNodeGLScene() override {}
20 
21  void SetPad(TVirtualPad* p) { fPad = p; }
22 
23  void GeoPopupMenu(Int_t gx, Int_t gy, TGLViewer*);
24 
25  using TGLScenePad::ResolveSelectRecord;
26  Bool_t ResolveSelectRecord(TGLSelectRecord& rec, Int_t curIdx) override;
27 
28  bool OpenCompositeWithPhyID(UInt_t phyID, const TBuffer3D& buffer);
29 
30  // virtual DestroyPhysicals() ... call m_eveTopNode->ClearSelectionHighlight;
31  // There: if selected => gEve->GetSelection()->Remove(this) or sth
32  // if highlighted .... "" .....
33 
34  using TGLScenePad::DestroyPhysicals;
35  Int_t DestroyPhysicals() override;
36  using TGLScenePad::DestroyPhysical;
37  virtual Bool_t DestroyPhysical(Int_t);
38 
39  using TGLScenePad::AddObject;
40  Int_t AddObject(const TBuffer3D& buffer, Bool_t* addChildren = nullptr) override;
41 };
42 
43 //==============================================================================
44 //==============================================================================
45 //==============================================================================
46 #if ROOT_VERSION_CODE < ROOT_VERSION(5, 32, 0)
47 
48 #include "TEveScene.h"
49 class FWGeoTopNodeEveScene : public TEveScene {
50 public:
51  FWGeoTopNodeEveScene(FWGeoTopNodeGLScene* gl_scene, const char* n = "TEveScene", const char* t = "");
52 
53  ~FWGeoTopNodeEveScene() {}
54 };
55 #endif
56 
57 #endif
void GeoPopupMenu(Int_t gx, Int_t gy, TGLViewer *)
Int_t DestroyPhysicals() override
FWGeoTopNodeGLScene & operator=(const FWGeoTopNodeGLScene &)=delete
Int_t AddObject(const TBuffer3D &buffer, Bool_t *addChildren=nullptr) override
FWGeoTopNode * m_eveTopNode
virtual Bool_t DestroyPhysical(Int_t)
bool OpenCompositeWithPhyID(UInt_t phyID, const TBuffer3D &buffer)
FWGeoTopNodeGLScene(const FWGeoTopNodeGLScene &)=delete
Bool_t ResolveSelectRecord(TGLSelectRecord &rec, Int_t curIdx) override
~FWGeoTopNodeGLScene() override
void SetPad(TVirtualPad *p)