library: libRGL
#include "TGLClip.h"

TGLClipPlane


class description - source file - inheritance tree (.pdf)

class TGLClipPlane : public TGLClip

Inheritance Chart:
TGLDrawable
<-
TGLPhysicalShape
<-
TGLClip
<-
TGLClipPlane

    public:
TGLClipPlane(const TGLVector3& norm, const TGLVertex3& center, Double_t extents) virtual ~TGLClipPlane() static TClass* Class() virtual TClass* IsA() const virtual void PlaneSet(TGLPlaneSet_t& set) const void Set(const TGLPlane& plane) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b)

Data Members

    private:
static const float fgColor[4]

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) : TGLClip(*CreateLogicalFace(extents, extents), TGLMatrix(center), fgColor)
 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) const
 Return set of planes (actually a single) describing this clip plane



Inline Functions


            TClass* Class()
            TClass* IsA() const
               void ShowMembers(TMemberInspector& insp, char* parent)
               void Streamer(TBuffer& b)
               void StreamerNVirtual(TBuffer& b)


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.