Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

TNNode.h

Go to the documentation of this file.
00001 #ifndef TNNODE_H
00002 #define TNNODE_H
00003 
00004 
00005 #include "TObject.h"
00006 #include "TNode.h"
00007 
00008 class TNNode : public TNode {
00009 
00010  protected:
00011   TObject* fRefObject;
00012 
00013  public:
00014   TNNode(){};
00015   TNNode(const char* name, 
00016          const char* title, 
00017          const char* shapename, 
00018          Double_t x = 0, Double_t y = 0, Double_t z = 0, 
00019          const char* matrixname ="", Option_t* option=""):TNode(name, 
00020                                                          title, 
00021                                                          shapename, 
00022                                                          x, y, z, 
00023                                                          matrixname, option){};
00024   
00025   TNNode(const char* name, 
00026          const char* title, 
00027          TShape* shape, 
00028          Double_t x = 0, 
00029          Double_t y = 0, 
00030          Double_t z = 0, 
00031          TRotMatrix* matrix = 0, 
00032          Option_t* option=""):TNode(name, 
00033                                  title, 
00034                                  shape, 
00035                                  x, y, z, matrix, option){};
00036 
00037 
00038   void setObject(TObject* o=0){fRefObject = o;};
00039   TObject* getObject(){return fRefObject;};
00040   ~TNNode(){};
00041   virtual Int_t DistancetoPrimitive(Int_t px, Int_t py);
00042 
00043   ClassDef(TNNode,2)  
00044 };
00045 
00046 #endif

Generated at Mon Nov 26 18:20:07 2001 by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000