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()");
ULong_t Pixel_t
Pixel value.
winID h TVirtualViewer3D TVirtualGLPainter p
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void data
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t height
The base class for composite widgets (menu bars, list boxes, etc.).
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=nullptr)
Add frame to the composite frame using the specified layout hints.
void Layout() override
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.
This class describes layout hints used by the layout classes.
Defines top level windows that interact with the system Window Manager.
Yield an action as soon as it is clicked.
A composite frame that layout their children in vertical way.
ROOT GUI Window base class.
virtual const TGWindow * GetMainFrame() const
Returns top level main frame.
Base frame for implementing GUI - a service class.
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.