CMS 3D CMS Logo

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