ROOT logo
ROOT » GRAF3D » GL » TGLClipBox

class TGLClipBox: public TGLClip


 TGLClipBox

 Concrete clip box object. Can be translated, rotated and scaled in
 all (xyz) axes. By default inside of the box is clipped away.


Function Members (Methods)

public:
TGLClipBox()
virtual~TGLClipBox()
voidTGLPhysicalShape::AddReference(TGLPShapeRef* ref)
const TGLBoundingBox&TGLPhysicalShape::BoundingBox() const
virtual voidTGLPhysicalShape::CalculateShapeLOD(TGLRnrCtx& rnrCtx, Float_t& pixSize, Short_t& shapeLOD) const
static TClass*Class()
const Float_t*TGLPhysicalShape::Color() const
virtual voidTGLClip::Draw(TGLRnrCtx& rnrCtx) const
const TGLLogicalShape*TGLPhysicalShape::GetLogical() const
TGLPhysicalShape::EManipTGLPhysicalShape::GetManip() const
TGLClip::EModeTGLClip::GetMode() const
const TGLPhysicalShape*TGLPhysicalShape::GetNextPhysical() const
TGLVector3TGLPhysicalShape::GetScale() const
UChar_tTGLPhysicalShape::GetSelected() const
TGLVertex3TGLPhysicalShape::GetTranslation() const
UInt_tTGLPhysicalShape::ID() const
voidTGLClip::IncTimeStamp()
voidTGLClip::Invalidate()
voidTGLPhysicalShape::InvokeContextMenu(TContextMenu& menu, UInt_t x, UInt_t y) const
virtual TClass*IsA() const
Bool_tTGLPhysicalShape::IsInvisible() const
Bool_tTGLPhysicalShape::IsModified() const
Bool_tTGLPhysicalShape::IsSelected() const
Bool_tTGLPhysicalShape::IsTransparent() const
Bool_tTGLClip::IsValid() const
virtual voidTGLClip::Modified()
virtual voidPlaneSet(TGLPlaneSet_t& set) const
virtual voidTGLPhysicalShape::QuantizeShapeLOD(Short_t shapeLOD, Short_t combiLOD, Short_t& quantLOD) const
voidTGLPhysicalShape::RemoveReference(TGLPShapeRef* ref)
voidTGLPhysicalShape::Rotate(const TGLVertex3& pivot, const TGLVector3& axis, Double_t angle)
voidTGLPhysicalShape::Scale(const TGLVector3& scale)
voidTGLPhysicalShape::Select(UChar_t select)
voidTGLPhysicalShape::SetColor(const Float_t* rgba)
voidTGLPhysicalShape::SetColorOnFamily(const Float_t* rgba)
voidTGLPhysicalShape::SetDiffuseColor(const Float_t* rgba)
voidTGLPhysicalShape::SetDiffuseColor(const UChar_t* rgba)
voidTGLPhysicalShape::SetDiffuseColor(Color_t ci, UChar_t transparency)
voidTGLPhysicalShape::SetManip(TGLPhysicalShape::EManip manip)
voidTGLClip::SetMode(TGLClip::EMode mode)
voidTGLPhysicalShape::SetTransform(const TGLMatrix& transform)
voidTGLPhysicalShape::SetTransform(const Double_t* vals)
voidTGLPhysicalShape::SetTranslation(const TGLVertex3& translation)
virtual voidSetup(const TGLBoundingBox& bbox)
virtual voidSetup(const TGLVector3& min_point, const TGLVector3& max_point)
voidTGLPhysicalShape::SetupGLColors(TGLRnrCtx& rnrCtx, const Float_t* color = 0) const
virtual voidShowMembers(TMemberInspector&)
virtual voidStreamer(TBuffer&)
voidStreamerNVirtual(TBuffer& ClassDef_StreamerNVirtual_b)
UInt_tTGLClip::TimeStamp() const
voidTGLPhysicalShape::Translate(const TGLVector3& vect)

Data Members

public:
enum TGLClip::EMode { kOutside
kInside
};
enum TGLClip::EType { kClipNone
kClipPlane
kClipBox
};
enum TGLPhysicalShape::EManip { kTranslateX
kTranslateY
kTranslateZ
kTranslateAll
kScaleX
kScaleY
kScaleZ
kScaleAll
kRotateX
kRotateY
kRotateZ
kRotateAll
kManipAll
};
private:
static const floatfgColor[4]! Fixed color of clip box

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

TGLClipBox()
 Construct an (initially) axis aligned clip pbox object, extents
 'halfLengths', centered on 'center' vertex.
 Box can be translated, rotated and scaled in all (xyz) local axes.
~TGLClipBox()
 Destroy clip box object.
void Setup(const TGLBoundingBox& bbox)
 Setup the clip object for scene encompassed by bbox.
void Setup(const TGLVector3& min_point, const TGLVector3& max_point)
 Setup the clip box with min/max points directly.

 This only makes sense if you disable auto-update of the
 clip-object:
   gl_viewer->SetClipAutoUpdate(kFALSE).
 After calling this also call gl_viewer->RefreshPadEditor(gl_viewer)
 and gl_viewer->RequestDraw().
void PlaneSet(TGLPlaneSet_t& set) const
 Return set of 6 planes describing faces of the box but invert them
 so that they point inside of box.