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