#ifndef ROOT_TGLClip
#define ROOT_TGLClip
#ifndef ROOT_TGLPhysicalShape
#include "TGLPhysicalShape.h"
#endif
class TGLClip : public TGLPhysicalShape
{
public:
enum EMode { kInside, kOutside };
private:
EMode fMode;
public:
TGLClip(const TGLLogicalShape & logical, const TGLMatrix & transform, const float color[4]);
virtual ~TGLClip();
EMode Mode() const { return fMode; }
void SetMode(EMode mode) { fMode = mode; }
virtual void Draw(const TGLDrawFlags & flags) const;
virtual void PlaneSet(TGLPlaneSet_t & set) const = 0;
ClassDef(TGLClip,0);
};
class TGLClipPlane : public TGLClip
{
private:
static const float fgColor[4];
public:
TGLClipPlane(const TGLVector3 & norm, const TGLVertex3 & center, Double_t extents);
virtual ~TGLClipPlane();
void Set(const TGLPlane & plane);
virtual void PlaneSet(TGLPlaneSet_t & set) const;
ClassDef(TGLClipPlane, 0);
};
class TGLClipBox : public TGLClip
{
private:
static const float fgColor[4];
public:
TGLClipBox(const TGLVector3 & halfLengths, const TGLVertex3 & center);
virtual ~TGLClipBox();
virtual void PlaneSet(TGLPlaneSet_t & set) const;
ClassDef(TGLClipBox, 0);
};
#endif
ROOT page - Class index - Class Hierarchy - Top of the page
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.