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()");
virtual void HideFrame(TGFrame *f)
Hide sub frame.
TGLClipSetSubEditor * fSE
TGLClip * GetCurrentClip() const
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 ClipValueChanged()
One of number entries was changed.
TGCheckButton * fAutoUpdate
16 component (4x4) transform matrix - column MAJOR as per GL.
image html pict1_TGaxis_012 png width
Define new text attributes for the label number "labNum".
GUI editor for TGLClipSet.
Abstract clipping shape - derives from TGLPhysicalShape Adds clip mode (inside/outside) and pure virt...
TGLClipSetSubEditor(const TGLClipSetSubEditor &)
virtual void ShowFrame(TGFrame *f)
Show sub frame.
void SetShowClip(Bool_t show)
Bool_t GetShowClip() const
TGCompositeFrame * fPlanePropFrame
TGLClip::EType fCurrentClip
TGCheckButton * fClipShow
GUI sub-editor for TGLClipSet.
virtual void Layout()
Layout the elements of the composite frame.
virtual void SetModel(TObject *obj)
Set model object.
TGNumberEntry * fBoxProp[6]
TGNumberEntry * fPlaneProp[4]
TGCompositeFrame(const TGCompositeFrame &)
TGCheckButton * fClipEdit
virtual const TGWindow * GetMainFrame() const
Returns top level main frame.
void Changed()
Emit Changed signal.
void UpdateViewerClip()
Change clipping volume.
Bool_t GetShowManip() const
void GetClipState(TGLClip::EType type, Double_t data[6]) const
Get state of clip object 'type' into data vector:
void SetModel(TGLClipSet *m)
Set model object.
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...
Concrete clip plane object.
Bool_t GetAutoUpdate() const
A collection of concrete TGLClip objects to be selected from.
void SetAutoUpdate(Bool_t aup)
void ClipTypeChanged(Int_t)
Clip type radio button changed - update viewer.
TGLClip::EType GetClipType() const
Get current type active in viewer - returns one of kClipNone kClipPlane or kClipBox.
void SetTransform(const TGLMatrix &transform)
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=0)
Add frame to the composite frame using the specified layout hints.
TGLClipSetEditor(const TGLClipSetEditor &)
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.
void SetClipState(TGLClip::EType type, const Double_t data[6])
Set state of clip object 'type' into data vector:
Mother of all ROOT objects.
TGCheckButton * fClipInside
void ResetViewerClip()
Reset transformation of the current clip.
TGButtonGroup * fTypeButtons
void Emit(const char *signal, const T &arg)
Activate signal with single parameter.
TGCompositeFrame * fBoxPropFrame
3D plane class - of format Ax + By + Cz + D = 0
virtual void MakeTitle(const char *title)
Create attribute frame title.