+
class TGLClipSet
-
library: libRGL
#include "TGLClip.h"
Display options:
Show inherited
Show non-public

class TGLClipSet: public TGLOverlayElement


TGLClip

Abstract clipping shape - derives from TGLPhysicalShape
Adds clip mode (inside/outside) and pure virtual method to
 approximate shape as set of planes. This plane set is used to perform
interactive clipping using OpenGL clip planes.

Function Members (Methods)

public:
TGLClipSet()
virtual~TGLClipSet()
static TClass*Class()
voidFillPlaneSet(TGLPlaneSet_t& set) const
voidGetClipState(EClipType type, Double_t* data) const
EClipTypeGetClipType() const
TGLClip*GetCurrentClip() const
Bool_tGetShowClip() const
Bool_tGetShowManip() const
virtual Bool_tHandle(TGLRnrCtx& rnrCtx, TGLOvlSelectRecord& selRec, Event_t* event)
virtual TClass*IsA() const
Bool_tIsClipping() const
virtual Bool_tMouseEnter(TGLOvlSelectRecord& selRec)
virtual voidMouseLeave()
virtual Bool_tMouseStillInside(TGLOvlSelectRecord& selRec)
virtual voidRender(TGLRnrCtx& rnrCtx)
voidSetClipState(EClipType type, const Double_t* data)
voidSetClipType(EClipType type)
voidSetShowClip(Bool_t show)
voidSetShowManip(Bool_t show)
voidSetupClips(const TGLBoundingBox& sceneBBox)
virtual voidShowMembers(TMemberInspector& insp, char* parent)
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)

Data Members

protected:
TGLClipBox*fClipBox
TGLClipPlane*fClipPlane
TGLClip*fCurrentClip! the current clipping shape
TGLManipSet*fManip
Bool_tfShowClip
Bool_tfShowManip

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

TGLClipSet()
 Constructor.
~TGLClipSet()
 Destructor.
Bool_t MouseEnter(TGLOvlSelectRecord& selRec)
 Mouse has enetered this element.
 Forward to ManipSet.
Bool_t MouseStillInside(TGLOvlSelectRecord& selRec)
 A new overlay hit is about to be processed.
 Forward to ManipSet.
Bool_t Handle(TGLRnrCtx& rnrCtx, TGLOvlSelectRecord& selRec, Event_t* event)
 Handle overlay event.
 Forward to ManipSet.
void MouseLeave()
 Mouse has left the element.
 Forward to ManipSet.
void Render(TGLRnrCtx& rnrCtx)
 Render clip-shape and manipulator.
void FillPlaneSet(TGLPlaneSet_t& set) const
 Forward request to fill the plane-set to the current clip.
void SetupClips(const TGLBoundingBox& sceneBBox)
 Setup clipping objects for current scene bounding box.
void GetClipState(EClipType type, Double_t* data) const
 Get state of clip object 'type' into data vector:

 'type' requested - 'data' contents returned
 kClipPlane   4 components - A,B,C,D - of plane eq : Ax+By+CZ+D = 0
 kBoxPlane    6 components - Box Center X/Y/Z - Box Extents X/Y/Z
void SetClipState(EClipType type, const Double_t* data)
 Set state of clip object 'type' into data vector:

 'type' specified        'data' contents interpretation
 kClipNone               ignored
 kClipPlane              4 components - A,B,C,D - of plane eq : Ax+By+CZ+D = 0
 kBoxPlane               6 components - Box Center X/Y/Z - Box Extents X/Y/Z
EClipType GetClipType()
 Get current type active in viewer - returns one of kClipNone
 kClipPlane or kClipBox.
void SetClipType(EClipType type)
 Set current clip active in viewer - 'type' is one of kClipNone
 kClipPlane or kClipBox.
Bool_t IsClipping()
{ return fCurrentClip != 0; }
TGLClip * GetCurrentClip()
{ return fCurrentClip; }
Bool_t GetShowManip()
 Editor only supports combined flag so far.
{ return fShowManip; }
void SetShowManip(Bool_t show)
{ fShowManip = show; }
Bool_t GetShowClip()
{ return fShowClip; }
void SetShowClip(Bool_t show)
{ fShowClip = show; }

Author: Richard Maunder 16/09/2005
Last update: root/gl:$Name: $:$Id: TGLClip.cxx,v 1.9 2007/06/18 07:02:16 brun Exp $
Copyright (C) 1995-2005, Rene Brun and Fons Rademakers. *

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.