ROOT logo
ROOT » GRAF3D » GL » TGLCameraGuide

class TGLCameraGuide: public TGLOverlayElement


 Draws arrows showing camera orientation in the overlay.
 X, Y position is in range 0, 1.

Function Members (Methods)

Data Members

public:
enum TGLOverlayElement::ERole { kUser
kViewer
kAnnotation
kAll
};
enum TGLOverlayElement::EState { kInvisible
kDisabled
kActive
kAllVisible
};

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

TGLCameraGuide(Float_t x, Float_t y, Float_t s, TGLOverlayElement::ERole role = kUser, TGLOverlayElement::EState state = kActive)
 Constructor.
Bool_t MouseEnter(TGLOvlSelectRecord& selRec)
 Mouse has entered overlay area.
Bool_t Handle(TGLRnrCtx& rnrCtx, TGLOvlSelectRecord& selRec, Event_t* event)
 Handle overlay event.
 Return TRUE if event was handled.
void MouseLeave()
 Mouse has left overlay area.
void Render(TGLRnrCtx& rnrCtx)
 Render the camera axis arrows.
TGLCameraGuide(const TGLCameraGuide& )
TGLCameraGuide& operator=(const TGLCameraGuide& )
virtual ~TGLCameraGuide()
{}
void SetX(Float_t x)
{ fXPos = x; }
void SetY(Float_t y)
{ fYPos = y; }
void SetXY(Float_t x, Float_t y)
{ fXPos = x; fYPos = y; }
void SetSize(Float_t s)
{ fSize = s; }