library: libRGL
#include "TGLClip.h"

TGLClipPlane


class description - header file - source file
viewCVS header - viewCVS source

class TGLClipPlane: public TGLClip

Inheritance Inherited Members Includes Libraries
Class Charts

Function Members (Methods)

Display options:
Show inherited
Show non-public
public:
TGLClipPlane(const TGLClipPlane&)
TGLClipPlane(const TGLVector3& norm, const TGLVertex3& center, Double_t extents)
virtual~TGLClipPlane()
const TGLBoundingBox&TGLDrawable::BoundingBox() const
TGLDrawFlagsTGLPhysicalShape::CalcDrawFlags(const TGLCamera& camera, const TGLDrawFlags& sceneFlags) const
static TClass*Class()
const Float_t*TGLPhysicalShape::Color() const
virtual voidTGLClip::Draw(const TGLDrawFlags& flags) const
const TGLLogicalShape&TGLPhysicalShape::GetLogical() const
TGLPhysicalShape::EManipTGLPhysicalShape::GetManip() const
TGLVector3TGLPhysicalShape::GetScale() const
TGLVertex3TGLPhysicalShape::GetTranslation() const
ULong_tTGLDrawable::ID() const
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
TGLClip::EModeTGLClip::Mode() const
virtual voidPlaneSet(TGLPlaneSet_t& set) const
virtual voidTGLDrawable::Purge()
voidTGLPhysicalShape::Rotate(const TGLVertex3& pivot, const TGLVector3& axis, Double_t angle)
voidTGLPhysicalShape::Scale(const TGLVector3& scale)
voidTGLPhysicalShape::Select(Bool_t select)
voidSet(const TGLPlane& plane)
Bool_tTGLDrawable::SetCached(Bool_t cached)
voidTGLPhysicalShape::SetColor(const Float_t* rgba)
voidTGLPhysicalShape::SetManip(TGLPhysicalShape::EManip manip)
voidTGLClip::SetMode(TGLClip::EMode mode)
voidTGLPhysicalShape::SetTransform(const TGLMatrix& transform)
voidTGLPhysicalShape::SetTranslation(const TGLVertex3& translation)
virtual Bool_tTGLDrawable::ShouldCache(const TGLDrawFlags& flags) const
virtual voidShowMembers(TMemberInspector& insp, char* parent)
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)
virtual TGLDrawable::ELODAxesTGLPhysicalShape::SupportedLODAxes() const
voidTGLPhysicalShape::Translate(const TGLVector3& vect)
protected:
virtual voidTGLPhysicalShape::DirectDraw(const TGLDrawFlags& flags) const
const TGLDrawable&TGLDrawable::operator=(const TGLDrawable&)

Data Members

public:
enum TGLClip::EMode { kInside
kOutside
};
enum TGLPhysicalShape::EManip { kTranslateX
kTranslateY
kTranslateZ
kTranslateAll
kScaleX
kScaleY
kScaleZ
kScaleAll
kRotateX
kRotateY
kRotateZ
kRotateAll
kManipAll
};
enum TGLDrawable::ELODAxes { kLODAxesNone
kLODAxesX
kLODAxesY
kLODAxesZ
kLODAxesAll
};
protected:
ULong_tTGLDrawable::fID! unique drawable ID
Bool_tTGLDrawable::fCached! use display list cached
TGLBoundingBoxTGLDrawable::fBoundingBox! the drawables bounding box
static TGLQuadricTGLDrawable::fgQuad! Single common quadric drawing object
private:
static const floatfgColor[4]! Fixed color of clip plane

Class Description

                                                                      
 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.                       

TGLClipPlane(const TGLVector3 & norm, const TGLVertex3 & center, Double_t extents)
 Construct a clip plane object, based on supplied 'plane', with initial manipulation
 pivot at 'center', with drawn extents (in local x/y axes) of 'extents'

 Plane can have center pivot translated in all directions, and rotated round
 center in X/Y axes , the in-plane axes. It cannot be scaled

 Note theorectically a plane is of course infinite - however we want to draw
 the object in viewer - so we fake it with a single GL face (polygon) - extents
 defines the width/depth of this - should be several times scene extents.

~TGLClipPlane()
 Destroy clip plane object
void Set(const TGLPlane & plane)
 Update clip plane object to follow passed 'plane' equation. Center pivot
 is shifted to nearest point on new plane.
void PlaneSet(TGLPlaneSet_t & set)
 Return set of planes (actually a single) describing this clip plane
TGLClipPlane(const TGLVector3 & norm, const TGLVertex3 & center, Double_t extents)

Author: Richard Maunder 16/09/2005
Last update: root/gl:$Name: $:$Id: TGLClip.cxx,v 1.7 2006/02/20 11:02:19 brun Exp $
Copyright (C) 1995-2005, Rene Brun and Fons Rademakers. *


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.