|
ROOT
Reference Guide |
|
Go to the documentation of this file.
33 fCurrentClip(
TGLClip::kClipNone),
66 static const char *
const planeStr[] = {
"aX + ",
"bY +",
"cZ + ",
"d = 0" };
68 for (
Int_t i = 0; i < 4; ++i)
75 static const char *
const boxStr[] = {
"Center X",
"Center Y",
"Center Z",
"Length X",
"Length Y",
"Length Z" };
77 for (
Int_t i = 0; i < 6; ++i)
87 fTypeButtons->
Connect(
"Clicked(Int_t)",
"TGLClipSetSubEditor",
this,
"ClipTypeChanged(Int_t)");
90 fClipEdit->
Connect(
"Clicked()",
"TGLClipSetSubEditor",
this,
"UpdateViewerClip()");
91 fClipShow->
Connect(
"Clicked()",
"TGLClipSetSubEditor",
this,
"UpdateViewerClip()");
93 for (
Int_t i = 0; i < 4; ++i)
94 fPlaneProp[i]->
Connect(
"ValueSet(Long_t)",
"TGLClipSetSubEditor",
this,
"ClipValueChanged()");
96 for (
Int_t i = 0; i < 6; ++i)
97 fBoxProp[i]->
Connect(
"ValueSet(Long_t)",
"TGLClipSetSubEditor",
this,
"ClipValueChanged()");
137 for (
Int_t i = 0; i < 4; ++i)
142 for (
Int_t i = 0; i < 6; ++i)
196 for (
Int_t i = 0; i < 4; ++i)
199 for (
Int_t i = 0; i < 6; ++i)
221 TGLPlane plane(0.0, -1.0, 0.0, 0.0);
251 fSE->
Connect(
"Changed()",
"TGLClipSetEditor",
this,
"Update()");
void GetClipState(TGLClip::EType type, Double_t data[6]) const
Get state of clip object 'type' into data vector:
void SetAutoUpdate(Bool_t aup)
void ClipValueChanged()
One of number entries was changed.
Bool_t GetAutoUpdate() const
A collection of concrete TGLClip objects to be selected from.
Bool_t GetShowManip() const
TGCompositeFrame(const TGCompositeFrame &)
TGLClip::EType GetClipType() const
Get current type active in viewer - returns one of kClipNone kClipPlane or kClipBox.
TGLClipSetEditor(const TGLClipSetEditor &)
include TDocParser_001 C image html pict1_TDocParser_001 png width
void SetClipState(TGLClip::EType type, const Double_t data[6])
Set state of clip object 'type' into data vector:
void ResetViewerClip()
Reset transformation of the current clip.
TGNumberEntry * fPlaneProp[4]
TGButtonGroup * fTypeButtons
16 component (4x4) transform matrix - column MAJOR as per GL.
GUI editor for TGLClipSet.
TGCheckButton * fClipEdit
TGLClip::EType fCurrentClip
TGLClip * GetCurrentClip() const
void SetModel(TGLClipSet *m)
Set model object.
3D plane class - of format Ax + By + Cz + D = 0
TGLClipSetSubEditor * fSE
void SetShowManip(Bool_t show)
void SetClipType(TGLClip::EType type)
Set current clip active in viewer - 'type' is one of kClipNone kClipPlane or kClipBox.
void UpdateViewerClip()
Change clipping volume.
TGCheckButton * fClipShow
virtual void HideFrame(TGFrame *f)
Hide sub frame.
TGCompositeFrame * fPlanePropFrame
Bool_t GetShowClip() const
TGNumberEntry * fBoxProp[6]
virtual void MakeTitle(const char *title)
Create attribute frame title.
void ClipTypeChanged(Int_t)
Clip type radio button changed - update viewer.
Concrete clip plane object.
TGLClipSetSubEditor(const TGLClipSetSubEditor &)
static TGNumberEntry * MakeLabeledNEntry(TGCompositeFrame *p, const char *name, Int_t labelw, Int_t nd=7, Int_t s=5)
Helper function to create fixed width TGLabel and TGNumberEntry in same row.
TGCheckButton * fClipInside
Abstract clipping shape - derives from TGLPhysicalShape Adds clip mode (inside/outside) and pure virt...
Bool_t Connect(const char *signal, const char *receiver_class, void *receiver, const char *slot)
Non-static method is used to connect from the signal of this object to the receiver slot.
virtual void SetModel(TObject *obj)
Set model object.
virtual const TGWindow * GetMainFrame() const
Returns top level main frame.
void SetShowClip(Bool_t show)
Mother of all ROOT objects.
TGCheckButton * fAutoUpdate
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=0)
Add frame to the composite frame using the specified layout hints.
TGCompositeFrame * fBoxPropFrame
virtual void Layout()
Layout the elements of the composite frame.
void Changed()
Emit Changed signal.
virtual void ShowFrame(TGFrame *f)
Show sub frame.
GUI sub-editor for TGLClipSet.
void Emit(const char *signal, const T &arg)
Activate signal with single parameter.
void SetTransform(const TGLMatrix &transform)