#ifndef ROOT_TGLManip
#define ROOT_TGLManip
#ifndef ROOT_TVirtualGL
#include "TVirtualGL.h"
#endif
#ifndef ROOT_TPoint
#include "TPoint.h"
#endif
#ifndef ROOT_GuiTypes
#include "GuiTypes.h"
#endif
#ifndef ROOT_Rtypes
#include "Rtypes.h"
#endif
class TGLPhysicalShape;
class TGLVertex3;
class TGLVector3;
class TGLCamera;
class TGLRect;
class TGLBoundingBox;
class TGLManip : public TVirtualGLManip
{
protected:
TGLPhysicalShape *fShape;
UInt_t fSelectedWidget;
Bool_t fActive;
TPoint fFirstMouse;
TPoint fLastMouse;
static Float_t fgRed[4];
static Float_t fgGreen[4];
static Float_t fgBlue[4];
static Float_t fgYellow[4];
static Float_t fgWhite[4];
static Float_t fgGrey[4];
TGLManip(const TGLManip&);
TGLManip& operator=(const TGLManip&);
void CalcDrawScale(const TGLBoundingBox& box, const TGLCamera& camera,
Double_t& base, TGLVector3 axis[3]) const;
public:
TGLManip();
TGLManip(TGLPhysicalShape* shape);
virtual ~TGLManip();
UInt_t GetSelectedWidget() const { return fSelectedWidget; }
void SetSelectedWidget(UInt_t s) { fSelectedWidget = s; }
Bool_t GetActive() const { return fActive; }
void SetActive(Bool_t a) { fActive = a; }
void Attach(TGLPhysicalShape* shape) { fShape = shape; }
TGLPhysicalShape * GetAttached() const { return fShape; }
virtual void Draw(const TGLCamera& camera) const = 0;
virtual Bool_t Select(const TGLCamera&, const TGLRect&, const TGLBoundingBox&) { return kFALSE; }
virtual Bool_t HandleButton(const Event_t& event, const TGLCamera& camera);
virtual Bool_t HandleMotion(const Event_t& event, const TGLCamera& camera);
ClassDef(TGLManip, 0);
};
#endif
Last change: Mon Nov 24 08:19:15 2008
Last generated: 2008-11-24 08:19
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.