ROOT
6.07/01
Reference Guide
|
A collection of concrete TGLClip objects to be selected from.
Public Member Functions | |
TGLClipSet () | |
Constructor. More... | |
virtual | ~TGLClipSet () |
Destructor. More... | |
virtual Bool_t | MouseEnter (TGLOvlSelectRecord &selRec) |
Mouse has entered this element. More... | |
virtual Bool_t | MouseStillInside (TGLOvlSelectRecord &selRec) |
virtual Bool_t | Handle (TGLRnrCtx &rnrCtx, TGLOvlSelectRecord &selRec, Event_t *event) |
Handle overlay event. More... | |
virtual void | MouseLeave () |
Mouse has left the element. More... | |
virtual void | Render (TGLRnrCtx &rnrCtx) |
Render clip-shape and manipulator. More... | |
Bool_t | IsClipping () const |
TGLClip * | GetCurrentClip () const |
void | FillPlaneSet (TGLPlaneSet_t &set) const |
Forward request to fill the plane-set to the current clip. More... | |
void | SetupClips (const TGLBoundingBox &sceneBBox) |
Setup clipping objects for given scene bounding box. More... | |
void | SetupCurrentClip (const TGLBoundingBox &sceneBBox) |
Setup current clipping object for given scene bounding box. More... | |
void | SetupCurrentClipIfInvalid (const TGLBoundingBox &sceneBBox) |
Setup current clipping object for given scene bounding box. More... | |
void | InvalidateClips () |
Invalidate clip objects. More... | |
void | InvalidateCurrentClip () |
Invalidate current clip object. More... | |
void | GetClipState (TGLClip::EType type, Double_t data[6]) const |
Get state of clip object 'type' into data vector: More... | |
void | SetClipState (TGLClip::EType type, const Double_t data[6]) |
Set state of clip object 'type' into data vector: More... | |
TGLClip::EType | GetClipType () const |
Get current type active in viewer - returns one of kClipNone kClipPlane or kClipBox. More... | |
void | SetClipType (TGLClip::EType type) |
Set current clip active in viewer - 'type' is one of kClipNone kClipPlane or kClipBox. More... | |
Bool_t | GetAutoUpdate () const |
void | SetAutoUpdate (Bool_t aup) |
Bool_t | GetShowManip () const |
void | SetShowManip (Bool_t show) |
Bool_t | GetShowClip () const |
void | SetShowClip (Bool_t show) |
ClassDef (TGLClipSet, 0) | |
Public Member Functions inherited from TGLOverlayElement | |
TGLOverlayElement (ERole r=kUser, EState s=kActive) | |
virtual | ~TGLOverlayElement () |
ERole | GetRole () const |
void | SetRole (ERole r) |
EState | GetState () const |
void | SetState (EState s) |
void | SetBinaryState (Bool_t s) |
Protected Attributes | |
TGLClipPlane * | fClipPlane |
TGLClipBox * | fClipBox |
TGLClip * | fCurrentClip |
Bool_t | fAutoUpdate |
the current clipping shape More... | |
Bool_t | fShowClip |
Bool_t | fShowManip |
TGLManipSet * | fManip |
TGLBoundingBox | fLastBBox |
Protected Attributes inherited from TGLOverlayElement | |
ERole | fRole |
EState | fState |
Private Member Functions | |
TGLClipSet (const TGLClipSet &) | |
TGLClipSet & | operator= (const TGLClipSet &) |
Additional Inherited Members | |
Public Types inherited from TGLOverlayElement | |
enum | ERole { kUser, kViewer, kAnnotation, kAll } |
enum | EState { kInvisible = 1, kDisabled = 2, kActive = 4, kAllVisible = kDisabled | kActive } |
Protected Member Functions inherited from TGLOverlayElement | |
void | ProjectionMatrixPushIdentity () |
#include <TGLClip.h>
|
private |
TGLClipSet::TGLClipSet | ( | ) |
Constructor.
Definition at line 336 of file TGLClip.cxx.
|
virtual |
Destructor.
Definition at line 351 of file TGLClip.cxx.
TGLClipSet::ClassDef | ( | TGLClipSet | , |
0 | |||
) |
void TGLClipSet::FillPlaneSet | ( | TGLPlaneSet_t & | set | ) | const |
Forward request to fill the plane-set to the current clip.
Definition at line 416 of file TGLClip.cxx.
|
inline |
Definition at line 188 of file TGLClip.h.
Referenced by TGLViewer::GetClipAutoUpdate(), and TGLClipSetSubEditor::SetModel().
void TGLClipSet::GetClipState | ( | TGLClip::EType | type, |
Double_t | data[6] | ||
) | const |
Get state of clip object 'type' into data vector:
'type' requested - 'data' contents returned kClipPlane 4 components - A,B,C,D - of plane eq : Ax+By+CZ+D = 0 kBoxPlane 6 components - Box Center X/Y/Z - Box Extents X/Y/Z
Definition at line 477 of file TGLClip.cxx.
Referenced by TGLClipSetSubEditor::SetModel().
TGLClip::EType TGLClipSet::GetClipType | ( | ) | const |
Get current type active in viewer - returns one of kClipNone kClipPlane or kClipBox.
Definition at line 560 of file TGLClip.cxx.
Referenced by TGLClipSetSubEditor::ResetViewerClip(), and TGLClipSetSubEditor::SetModel().
|
inline |
Definition at line 170 of file TGLClip.h.
Referenced by TGLViewer::PreRender(), TGLClipSetSubEditor::ResetViewerClip(), TGLClipSetSubEditor::SetModel(), and TGLClipSetSubEditor::UpdateViewerClip().
|
inline |
Definition at line 192 of file TGLClip.h.
Referenced by TGLClipSetSubEditor::SetModel().
|
inline |
Definition at line 190 of file TGLClip.h.
Referenced by TGLClipSetSubEditor::SetModel().
|
virtual |
Handle overlay event.
Forward to ManipSet.
Reimplemented from TGLOverlayElement.
Definition at line 379 of file TGLClip.cxx.
void TGLClipSet::InvalidateClips | ( | ) |
Invalidate clip objects.
Definition at line 455 of file TGLClip.cxx.
void TGLClipSet::InvalidateCurrentClip | ( | ) |
Invalidate current clip object.
Definition at line 464 of file TGLClip.cxx.
|
virtual |
Mouse has entered this element.
Forward to ManipSet.
Reimplemented from TGLOverlayElement.
Definition at line 362 of file TGLClip.cxx.
|
virtual |
Mouse has left the element.
Forward to ManipSet.
Reimplemented from TGLOverlayElement.
Definition at line 389 of file TGLClip.cxx.
|
virtual |
Reimplemented from TGLOverlayElement.
Definition at line 367 of file TGLClip.cxx.
|
private |
Render clip-shape and manipulator.
Implements TGLOverlayElement.
Definition at line 397 of file TGLClip.cxx.
Definition at line 189 of file TGLClip.h.
Referenced by TGLViewer::SetClipAutoUpdate(), and TGLClipSetSubEditor::UpdateViewerClip().
void TGLClipSet::SetClipState | ( | TGLClip::EType | type, |
const Double_t | data[6] | ||
) |
Set state of clip object 'type' into data vector:
'type' specified 'data' contents interpretation kClipNone ignored kClipPlane 4 components - A,B,C,D - of plane eq : Ax+By+CZ+D = 0 kBoxPlane 6 components - Box Center X/Y/Z - Box Extents X/Y/Z
Definition at line 524 of file TGLClip.cxx.
Referenced by TGLClipSetSubEditor::UpdateViewerClip().
void TGLClipSet::SetClipType | ( | TGLClip::EType | type | ) |
Set current clip active in viewer - 'type' is one of kClipNone kClipPlane or kClipBox.
Definition at line 580 of file TGLClip.cxx.
Referenced by TGLClipSetSubEditor::ClipTypeChanged().
Definition at line 193 of file TGLClip.h.
Referenced by TGLClipSetSubEditor::UpdateViewerClip().
Definition at line 191 of file TGLClip.h.
Referenced by TGLClipSetSubEditor::UpdateViewerClip().
void TGLClipSet::SetupClips | ( | const TGLBoundingBox & | sceneBBox | ) |
Setup clipping objects for given scene bounding box.
Definition at line 425 of file TGLClip.cxx.
void TGLClipSet::SetupCurrentClip | ( | const TGLBoundingBox & | sceneBBox | ) |
Setup current clipping object for given scene bounding box.
Definition at line 435 of file TGLClip.cxx.
Referenced by TGLViewer::SetupClipObject().
void TGLClipSet::SetupCurrentClipIfInvalid | ( | const TGLBoundingBox & | sceneBBox | ) |
Setup current clipping object for given scene bounding box.
Definition at line 445 of file TGLClip.cxx.
Referenced by TGLViewer::SetupClipObject().
|
protected |
the current clipping shape
Definition at line 150 of file TGLClip.h.
Referenced by GetAutoUpdate(), and SetAutoUpdate().
|
protected |
Definition at line 147 of file TGLClip.h.
Referenced by GetClipState(), GetClipType(), InvalidateClips(), SetClipState(), SetClipType(), SetupClips(), and ~TGLClipSet().
|
protected |
Definition at line 146 of file TGLClip.h.
Referenced by GetClipState(), GetClipType(), InvalidateClips(), SetClipState(), SetClipType(), SetupClips(), and ~TGLClipSet().
|
protected |
Definition at line 148 of file TGLClip.h.
Referenced by FillPlaneSet(), GetClipType(), GetCurrentClip(), InvalidateCurrentClip(), IsClipping(), Render(), SetClipType(), SetupCurrentClip(), and SetupCurrentClipIfInvalid().
|
protected |
Definition at line 155 of file TGLClip.h.
Referenced by GetClipState(), SetupClips(), SetupCurrentClip(), and SetupCurrentClipIfInvalid().
|
protected |
Definition at line 153 of file TGLClip.h.
Referenced by Handle(), MouseEnter(), MouseLeave(), MouseStillInside(), Render(), SetClipType(), and ~TGLClipSet().
|
protected |
Definition at line 151 of file TGLClip.h.
Referenced by GetShowClip(), Render(), and SetShowClip().
|
protected |
Definition at line 152 of file TGLClip.h.
Referenced by GetShowManip(), Render(), and SetShowManip().