CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
GPFBase.h
Go to the documentation of this file.
1 #ifndef GPF_Base_h
2 #define GPF_Base_h
3 
8 #include <TAttLine.h>
9 #include <TAttMarker.h>
10 
11 
12 class DisplayManager;
13 
14 class GPFBase {
15 
16  protected:
18  int viewId_;
19  int origId_;
20  TAttMarker *markerAttr_;
21  TAttLine *lineAttr_;
22  int color_;
23 
24  public:
25  GPFBase(DisplayManager *display,int viewType,int ident,TAttMarker *attm,TAttLine *attl);
26  GPFBase(DisplayManager *display,int viewType,int ident,TAttMarker *attm);
27  GPFBase(DisplayManager *display,int viewType,int ident, int color);
28 
29  virtual ~GPFBase() {;}
30  int getView() { return viewId_;}
31  int getOrigin() { return origId_;}
32 
33  virtual void draw() {;}
34  virtual void setColor() = 0;
35  virtual void setColor(int newcol ) = 0;
36  virtual void setInitialColor() = 0;
37  virtual void setNewStyle() = 0;
38  virtual void setNewSize() = 0;
39  virtual double getEnergy() { return -1;}
40  virtual double getPt() { return -1;}
41 };
42 #endif
43 
GPFBase(DisplayManager *display, int viewType, int ident, TAttMarker *attm, TAttLine *attl)
Definition: GPFBase.cc:15
TAttLine * lineAttr_
Definition: GPFBase.h:21
virtual void setInitialColor()=0
virtual double getEnergy()
Definition: GPFBase.h:39
int color_
Definition: GPFBase.h:22
virtual double getPt()
Definition: GPFBase.h:40
int origId_
Definition: GPFBase.h:19
TAttMarker * markerAttr_
Definition: GPFBase.h:20
int getView()
Definition: GPFBase.h:30
virtual ~GPFBase()
Definition: GPFBase.h:29
virtual void setNewStyle()=0
DisplayManager * display_
Definition: GPFBase.h:17
virtual void setColor()=0
int viewId_
Definition: GPFBase.h:18
virtual void draw()
Definition: GPFBase.h:33
virtual void setNewSize()=0
int getOrigin()
Definition: GPFBase.h:31