ROOT  6.07/01
Reference Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Static Private Attributes | List of all members
TGLClipBox Class Reference

Concrete clip box object.

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

Definition at line 113 of file TGLClip.h.

Public Member Functions

 TGLClipBox ()
 Fixed color of clip box. More...
 
virtual ~TGLClipBox ()
 Destroy clip box object. More...
 
virtual void Setup (const TGLBoundingBox &bbox)
 Setup the clip object for scene encompassed by bbox. More...
 
virtual void Setup (const TGLVector3 &min_point, const TGLVector3 &max_point)
 Setup the clip box with min/max points directly. More...
 
virtual 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. More...
 
 ClassDef (TGLClipBox, 0)
 
- Public Member Functions inherited from TGLClip
 TGLClip (const TGLLogicalShape &logical, const TGLMatrix &transform, const float color[4])
 Construct a stand-alone physical clipping object. More...
 
virtual ~TGLClip ()
 Destroy clip object. More...
 
virtual void Modified ()
 
EMode GetMode () const
 
void SetMode (EMode mode)
 
UInt_t TimeStamp () const
 
void IncTimeStamp ()
 
Bool_t IsValid () const
 
void Invalidate ()
 
virtual void Draw (TGLRnrCtx &rnrCtx) const
 Draw out clipping object with blending and back + front filling. More...
 
 ClassDef (TGLClip, 0)
 
- Public Member Functions inherited from TGLPhysicalShape
 TGLPhysicalShape (UInt_t ID, const TGLLogicalShape &logicalShape, const TGLMatrix &transform, Bool_t invertedWind, const Float_t rgba[4])
 
 TGLPhysicalShape (UInt_t ID, const TGLLogicalShape &logicalShape, const double *transform, Bool_t invertedWind, const Float_t rgba[4])
 Construct a physical shape using arguments: More...
 
virtual ~TGLPhysicalShape ()
 Destroy the physical shape. More...
 
void AddReference (TGLPShapeRef *ref)
 Add reference ref. More...
 
void RemoveReference (TGLPShapeRef *ref)
 Remove reference ref. More...
 
UInt_t ID () const
 
const TGLBoundingBoxBoundingBox () const
 
virtual void CalculateShapeLOD (TGLRnrCtx &rnrCtx, Float_t &pixSize, Short_t &shapeLOD) const
 Calculate shape-lod, suitable for use under projection defined by 'rnrCtx', taking account of which local axes of the shape support LOD adjustment, and the global 'sceneFlags' passed. More...
 
virtual void QuantizeShapeLOD (Short_t shapeLOD, Short_t combiLOD, Short_t &quantLOD) const
 Factor in scene/vierer LOD and Quantize ... More...
 
void SetupGLColors (TGLRnrCtx &rnrCtx, const Float_t *color=0) const
 Setup colors - avoid setting things not required for current draw flags. More...
 
const TGLLogicalShapeGetLogical () const
 
const TGLPhysicalShapeGetNextPhysical () const
 
EManip GetManip () const
 
void SetManip (EManip manip)
 
void Modified ()
 Call this after modifying the physical so that the information can be propagated to the object referencing it. More...
 
Bool_t IsModified () const
 
Bool_t IsSelected () const
 
UChar_t GetSelected () const
 
void Select (UChar_t select)
 
const Float_tColor () const
 
Bool_t IsTransparent () const
 
Bool_t IsInvisible () const
 
void SetColor (const Float_t rgba[17])
 Set full color attributes - see OpenGL material documentation for full description. More...
 
void SetColorOnFamily (const Float_t rgba[17])
 Set full color attributes to all physicals sharing the same logical with this object. More...
 
void SetDiffuseColor (const Float_t rgba[4])
 Set color from ROOT color index and transparency [0,100]. More...
 
void SetDiffuseColor (const UChar_t rgba[4])
 Set color from RGBA quadruplet. More...
 
void SetDiffuseColor (Color_t ci, UChar_t transparency)
 Set color from standard ROOT representation, that is color index. More...
 
TGLVector3 GetScale () const
 
TGLVertex3 GetTranslation () const
 
void SetTransform (const TGLMatrix &transform)
 
void SetTransform (const Double_t vals[16])
 
void SetTranslation (const TGLVertex3 &translation)
 
void Translate (const TGLVector3 &vect)
 
void Scale (const TGLVector3 &scale)
 
void Rotate (const TGLVertex3 &pivot, const TGLVector3 &axis, Double_t angle)
 
void InvokeContextMenu (TContextMenu &menu, UInt_t x, UInt_t y) const
 Request creation of context menu on shape, attached to 'menu' at screen position 'x' 'y'. More...
 

Static Private Attributes

static const float fgColor [4] = { 1.0, 0.6, 0.2, 0.3 }
 

Additional Inherited Members

- Public Types inherited from TGLClip
enum  EMode { kOutside, kInside }
 
enum  EType { kClipNone = 0, kClipPlane, kClipBox }
 
- Public Types inherited from TGLPhysicalShape
enum  EManip {
  kTranslateX = 1 << 0, kTranslateY = 1 << 1, kTranslateZ = 1 << 2, kTranslateAll = kTranslateX | kTranslateY | kTranslateZ,
  kScaleX = 1 << 3, kScaleY = 1 << 4, kScaleZ = 1 << 5, kScaleAll = kScaleX | kScaleY | kScaleZ,
  kRotateX = 1 << 6, kRotateY = 1 << 7, kRotateZ = 1 << 8, kRotateAll = kRotateX | kRotateY | kRotateZ,
  kManipAll = kTranslateAll | kScaleAll | kRotateAll
}
 
- Protected Attributes inherited from TGLClip
EMode fMode
 
UInt_t fTimeStamp
 
Bool_t fValid
 

#include <TGLClip.h>

Inheritance diagram for TGLClipBox:
[legend]

Constructor & Destructor Documentation

TGLClipBox::TGLClipBox ( )

Fixed color of clip box.

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.

Definition at line 264 of file TGLClip.cxx.

TGLClipBox::~TGLClipBox ( )
virtual

Destroy clip box object.

Definition at line 272 of file TGLClip.cxx.

Member Function Documentation

TGLClipBox::ClassDef ( TGLClipBox  ,
 
)
void TGLClipBox::PlaneSet ( TGLPlaneSet_t set) const
virtual

Return set of 6 planes describing faces of the box but invert them so that they point inside of box.

Implements TGLClip.

Definition at line 315 of file TGLClip.cxx.

void TGLClipBox::Setup ( const TGLBoundingBox bbox)
virtual

Setup the clip object for scene encompassed by bbox.

Implements TGLClip.

Definition at line 279 of file TGLClip.cxx.

Referenced by TGLClipSet::GetClipState(), and TGLClipSet::SetupClips().

void TGLClipBox::Setup ( const TGLVector3 min_point,
const TGLVector3 max_point 
)
virtual

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().

Reimplemented from TGLClip.

Definition at line 302 of file TGLClip.cxx.

Member Data Documentation

const float TGLClipBox::fgColor = { 1.0, 0.6, 0.2, 0.3 }
staticprivate

Definition at line 116 of file TGLClip.h.

Collaboration diagram for TGLClipBox:
[legend]

The documentation for this class was generated from the following files: