TGL5DPainter implements "gl5d" option for TTree::Draw.
Data (4D) is visualized as a set of iso-surfaces. 5D.
Definition at line 32 of file TGL5DPainter.h.
Classes | |
| struct | Surf_t |
Public Types | |
| typedef SurfList_t::const_iterator | ConstSurfIter_t |
| enum | ECutAxisID { kXAxis = 7 , kYAxis = 8 , kZAxis = 9 } |
| enum | EDefaults { kNContours = 4 , kNLowPts = 50 } |
| typedef Rgl::Mc::TIsoMesh< Float_t > | Mesh_t |
| typedef SurfList_t::iterator | SurfIter_t |
| typedef std::list< Surf_t > | SurfList_t |
Public Member Functions | |
| TGL5DPainter (TGL5DDataSet *data, TGLPlotCamera *camera, TGLPlotCoordinates *coord) | |
| Constructor. | |
| void | AddOption (const TString &option) override |
| No additional options for TGL5DPainter. | |
| void | AddSurface (Double_t v4) |
| Add new surface. Simplified version for ged. | |
| SurfIter_t | AddSurface (Double_t v4, Color_t ci, Double_t isoVal=1., Double_t sigma=1., Double_t range=1e-3, Int_t lowNumOfPoints=kNLowPts) |
| Try to add new iso-surface. | |
| Bool_t | CutAxisSelected () const |
| Double_t | GetAlpha () const |
| Bool_t | GetDrawAxes () |
| Int_t | GetNContours () const |
| char * | GetPlotInfo (Int_t px, Int_t py) override |
| Return info for plot part under cursor. | |
| Bool_t | InitGeometry () override |
| Create mesh. | |
| void | InvalidateSelection () |
| Selection must be updated. | |
| TClass * | IsA () const override |
| Bool_t | IsBoxCutShown () const |
| void | Paint () override |
| Draw lego/surf/whatever you can. | |
| void | Pan (Int_t px, Int_t py) override |
| Mouse events handler. | |
| Bool_t | PlotSelected (Int_t px, Int_t py) override |
| Read color buffer content to find selected object. | |
| void | ProcessEvent (Int_t event, Int_t px, Int_t py) override |
| const TGLPlotBox & | RefBackBox () const |
| void | RemoveSurface (SurfIter_t surf) |
| Remove iso-surface. | |
| void | ResetGeometryRanges () |
| No need to create or delete meshes, number of meshes (iso-levels) are the same, but meshes must be rebuilt in new ranges. | |
| void | SetAlpha (Double_t newAlpha) |
| Set selection range parameter. | |
| void | SetDrawAxes (Bool_t s) |
| void | SetDrawBackBox (Bool_t b) |
| void | SetDrawFrontBox (Bool_t b) |
| virtual void | SetFrameColor (const TColor *frameColor) |
| Set plot's back box color. | |
| void | SetNContours (Int_t num) |
| Set the number of predefined contours. | |
| void | SetPadColor (const TColor *color) |
| Used in a pad. | |
| void | SetPhysicalShapeColor (const Float_t *rgba) |
| void | ShowBoxCut (Bool_t show) |
| void | StartPan (Int_t px, Int_t py) override |
| User clicks right mouse button (in a pad). | |
| void | Streamer (TBuffer &) override |
| void | StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b) |
| SurfIter_t | SurfacesBegin () |
| std::list::begin. | |
| SurfIter_t | SurfacesEnd () |
| std::list::end. | |
Static Public Member Functions | |
| static TClass * | Class () |
| static const char * | Class_Name () |
| static constexpr Version_t | Class_Version () |
| static const char * | DeclFileName () |
Protected Types | |
| enum | ESelectionBase { kHighColorSelectionBase = 7 , kTrueColorSelectionBase = 10 } |
Protected Member Functions | |
| virtual void | ClearBuffers () const |
| virtual void | DrawPaletteAxis () const |
| Draw. Palette. Axis. | |
| void | DrawSections () const |
| Draw sections (if any). | |
| const TColor * | GetPadColor () const |
| Get pad color. | |
| void | MoveSection (Int_t px, Int_t py) |
| Create dynamic profile using selected plane. | |
| void | PrintPlot () const |
| Generate PS using gl2ps. | |
| void | RestoreModelviewMatrix () const |
| void | RestoreProjectionMatrix () const |
| void | SaveModelviewMatrix () const |
| void | SaveProjectionMatrix () const |
Private Types | |
| typedef std::vector< Double_t >::size_type | size_type |
Private Member Functions | |
| TGL5DPainter (const TGL5DPainter &) | |
| void | DeInitGL () const override |
| Return some gl states to original values. | |
| void | DrawCloud () const |
| Draw full cloud of points. | |
| void | DrawMesh (ConstSurfIter_t surf) const |
| Draw one iso-surface. | |
| void | DrawPlot () const override |
| Draw a set of meshes. | |
| void | DrawSectionXOY () const override |
| void | DrawSectionXOZ () const override |
| void | DrawSectionYOZ () const override |
| void | DrawSubCloud (Double_t v4, Double_t range, Color_t ci) const |
| Draw cloud for selected iso-surface. | |
| void | InitGL () const override |
| Initialize OpenGL state variables. | |
| TGL5DPainter & | operator= (const TGL5DPainter &) |
| void | SetSurfaceColor (ConstSurfIter_t surf) const |
| Set the color for iso-surface. | |
Private Attributes | |
| Double_t | fAlpha |
| TGL5DDataSet * | fData |
| const Surf_t | fDummy |
| Bool_t | fInit |
| SurfList_t | fIsos |
| TKDEFGT | fKDE |
| Rgl::Mc::TMeshBuilder< TKDEFGT, Float_t > | fMeshBuilder |
| Int_t | fNContours |
| const TColor * | fPadColor |
| Bool_t | fShowSlider |
| Rgl::Range_t | fV5PredictedRange |
| Rgl::Range_t | fV5SliderRange |
#include <TGL5DPainter.h>
| typedef SurfList_t::const_iterator TGL5DPainter::ConstSurfIter_t |
Definition at line 62 of file TGL5DPainter.h.
| typedef Rgl::Mc::TIsoMesh<Float_t> TGL5DPainter::Mesh_t |
Definition at line 39 of file TGL5DPainter.h.
|
private |
Definition at line 74 of file TGL5DPainter.h.
| typedef SurfList_t::iterator TGL5DPainter::SurfIter_t |
Definition at line 61 of file TGL5DPainter.h.
| typedef std::list<Surf_t> TGL5DPainter::SurfList_t |
Definition at line 60 of file TGL5DPainter.h.
|
inherited |
| Enumerator | |
|---|---|
| kXAxis | |
| kYAxis | |
| kZAxis | |
Definition at line 262 of file TGLPlotPainter.h.
| Enumerator | |
|---|---|
| kNContours | |
| kNLowPts | |
Definition at line 34 of file TGL5DPainter.h.
|
protectedinherited |
| Enumerator | |
|---|---|
| kHighColorSelectionBase | |
| kTrueColorSelectionBase | |
Definition at line 213 of file TGLPlotPainter.h.
| TGL5DPainter::TGL5DPainter | ( | TGL5DDataSet * | data, |
| TGLPlotCamera * | camera, | ||
| TGLPlotCoordinates * | coord ) |
Constructor.
Definition at line 35 of file TGL5DPainter.cxx.
|
private |
|
overridevirtual |
No additional options for TGL5DPainter.
Implements TGLPlotPainter.
Definition at line 240 of file TGL5DPainter.cxx.
| void TGL5DPainter::AddSurface | ( | Double_t | v4 | ) |
Add new surface. Simplified version for ged.
Definition at line 101 of file TGL5DPainter.cxx.
| TGL5DPainter::SurfIter_t TGL5DPainter::AddSurface | ( | Double_t | v4, |
| Color_t | ci, | ||
| Double_t | iso = 1., | ||
| Double_t | sigma = 1., | ||
| Double_t | range = 1e-3, | ||
| Int_t | lownps = kNLowPts ) |
Try to add new iso-surface.
If something goes wrong, return iterator to the end of fIsos.
Definition at line 53 of file TGL5DPainter.cxx.
|
staticinherited |
|
staticinherited |
|
inlinestaticconstexprinherited |
Definition at line 300 of file TGLPlotPainter.h.
|
protectedvirtualinherited |
Definition at line 564 of file TGLPlotPainter.cxx.
|
inlineinherited |
Definition at line 268 of file TGLPlotPainter.h.
|
inlinestaticinherited |
Definition at line 300 of file TGLPlotPainter.h.
|
overrideprivatevirtual |
Return some gl states to original values.
Implements TGLPlotPainter.
Definition at line 368 of file TGL5DPainter.cxx.
|
private |
Draw full cloud of points.
Definition at line 464 of file TGL5DPainter.cxx.
|
private |
Draw one iso-surface.
Definition at line 517 of file TGL5DPainter.cxx.
|
protectedvirtualinherited |
Draw. Palette. Axis.
Reimplemented in TGLBoxPainter, TGLH2PolyPainter, TGLLegoPainter, TGLSurfacePainter, and TGLVoxelPainter.
Definition at line 579 of file TGLPlotPainter.cxx.
|
overrideprivatevirtual |
|
protectedinherited |
Draw sections (if any).
Definition at line 440 of file TGLPlotPainter.cxx.
|
inlineoverrideprivatevirtual |
Implements TGLPlotPainter.
Definition at line 126 of file TGL5DPainter.h.
|
inlineoverrideprivatevirtual |
Implements TGLPlotPainter.
Definition at line 124 of file TGL5DPainter.h.
|
inlineoverrideprivatevirtual |
Implements TGLPlotPainter.
Definition at line 125 of file TGL5DPainter.h.
Draw cloud for selected iso-surface.
Definition at line 489 of file TGL5DPainter.cxx.
|
inline |
Definition at line 106 of file TGL5DPainter.h.
|
inlineinherited |
Definition at line 273 of file TGLPlotPainter.h.
|
inline |
Definition at line 109 of file TGL5DPainter.h.
|
protectedinherited |
Get pad color.
Definition at line 360 of file TGLPlotPainter.cxx.
Return info for plot part under cursor.
Implements TVirtualGLPainter.
Definition at line 130 of file TGL5DPainter.cxx.
|
overridevirtual |
Create mesh.
InitGeometry creates surfaces for auto-iso levels. Called the first time and each time number of auto-levels is reset via the editor.
Implements TGLPlotPainter.
Definition at line 142 of file TGL5DPainter.cxx.
|
overrideprivatevirtual |
Initialize OpenGL state variables.
Implements TGLPlotPainter.
Definition at line 356 of file TGL5DPainter.cxx.
|
inherited |
Selection must be updated.
Definition at line 352 of file TGLPlotPainter.cxx.
|
inlineoverridevirtualinherited |
Reimplemented from TVirtualGLPainter.
Reimplemented in TGLSurfacePainter, TGLTF3Painter, TGLTH3CompositionPainter, and TGLVoxelPainter.
Definition at line 300 of file TGLPlotPainter.h.
|
inline |
Definition at line 103 of file TGL5DPainter.h.
Create dynamic profile using selected plane.
Definition at line 368 of file TGLPlotPainter.cxx.
|
private |
|
overridevirtualinherited |
Draw lego/surf/whatever you can.
Implements TVirtualGLPainter.
Definition at line 149 of file TGLPlotPainter.cxx.
Mouse events handler.
Implements TVirtualGLPainter.
Definition at line 201 of file TGL5DPainter.cxx.
Read color buffer content to find selected object.
Implements TVirtualGLPainter.
Definition at line 271 of file TGLPlotPainter.cxx.
|
protectedinherited |
Generate PS using gl2ps.
Definition at line 231 of file TGLPlotPainter.cxx.
Implements TGLPlotPainter.
Definition at line 246 of file TGL5DPainter.cxx.
|
inlineinherited |
Definition at line 231 of file TGLPlotPainter.h.
| void TGL5DPainter::RemoveSurface | ( | SurfIter_t | surf | ) |
Remove iso-surface.
Definition at line 117 of file TGL5DPainter.cxx.
| void TGL5DPainter::ResetGeometryRanges | ( | ) |
No need to create or delete meshes, number of meshes (iso-levels) are the same, but meshes must be rebuilt in new ranges.
Only in cartesian.
Definition at line 305 of file TGL5DPainter.cxx.
|
protectedinherited |
Definition at line 601 of file TGLPlotPainter.cxx.
|
protectedinherited |
Definition at line 609 of file TGLPlotPainter.cxx.
|
protectedinherited |
Definition at line 585 of file TGLPlotPainter.cxx.
|
protectedinherited |
Definition at line 593 of file TGLPlotPainter.cxx.
| void TGL5DPainter::SetAlpha | ( | Double_t | newAlpha | ) |
Set selection range parameter.
Definition at line 271 of file TGL5DPainter.cxx.
|
inlineinherited |
Definition at line 272 of file TGLPlotPainter.h.
|
inlineinherited |
Definition at line 271 of file TGLPlotPainter.h.
|
inlineinherited |
Definition at line 270 of file TGLPlotPainter.h.
|
virtualinherited |
Set plot's back box color.
Definition at line 344 of file TGLPlotPainter.cxx.
| void TGL5DPainter::SetNContours | ( | Int_t | num | ) |
Set the number of predefined contours.
Definition at line 286 of file TGL5DPainter.cxx.
|
inherited |
Used in a pad.
Definition at line 336 of file TGLPlotPainter.cxx.
|
inlineinherited |
Definition at line 232 of file TGLPlotPainter.h.
|
private |
Set the color for iso-surface.
Definition at line 449 of file TGL5DPainter.cxx.
|
inline |
Definition at line 102 of file TGL5DPainter.h.
User clicks right mouse button (in a pad).
Implements TGLPlotPainter.
Definition at line 190 of file TGL5DPainter.cxx.
|
overridevirtualinherited |
Reimplemented from TVirtualGLPainter.
Reimplemented in TGLSurfacePainter, TGLTF3Painter, TGLTH3CompositionPainter, and TGLVoxelPainter.
|
inlineinherited |
Definition at line 300 of file TGLPlotPainter.h.
| TGL5DPainter::SurfIter_t TGL5DPainter::SurfacesBegin | ( | ) |
std::list::begin.
Definition at line 340 of file TGL5DPainter.cxx.
| TGL5DPainter::SurfIter_t TGL5DPainter::SurfacesEnd | ( | ) |
std::list::end.
Definition at line 348 of file TGL5DPainter.cxx.
|
private |
Definition at line 80 of file TGL5DPainter.h.
|
protectedinherited |
Definition at line 207 of file TGLPlotPainter.h.
|
protectedinherited |
Definition at line 208 of file TGLPlotPainter.h.
|
protectedinherited |
Definition at line 197 of file TGLPlotPainter.h.
|
protectedinherited |
Definition at line 196 of file TGLPlotPainter.h.
|
private |
Definition at line 72 of file TGL5DPainter.h.
|
protectedinherited |
Definition at line 220 of file TGLPlotPainter.h.
|
mutableprotectedinherited |
Definition at line 219 of file TGLPlotPainter.h.
|
private |
Definition at line 68 of file TGL5DPainter.h.
|
protectedinherited |
Definition at line 211 of file TGLPlotPainter.h.
|
protectedinherited |
Definition at line 191 of file TGLPlotPainter.h.
|
private |
Definition at line 69 of file TGL5DPainter.h.
|
private |
Definition at line 71 of file TGL5DPainter.h.
|
private |
Definition at line 65 of file TGL5DPainter.h.
|
private |
Definition at line 66 of file TGL5DPainter.h.
|
protectedinherited |
Definition at line 203 of file TGLPlotPainter.h.
|
private |
Definition at line 81 of file TGL5DPainter.h.
|
privateinherited |
Definition at line 184 of file TGLPlotPainter.h.
|
protectedinherited |
Definition at line 189 of file TGLPlotPainter.h.
|
protectedinherited |
Definition at line 190 of file TGLPlotPainter.h.
|
protectedinherited |
Definition at line 187 of file TGLPlotPainter.h.
|
protectedinherited |
Definition at line 202 of file TGLPlotPainter.h.
|
protectedinherited |
Definition at line 198 of file TGLPlotPainter.h.
|
protectedinherited |
Definition at line 218 of file TGLPlotPainter.h.
|
protectedinherited |
Definition at line 201 of file TGLPlotPainter.h.
|
private |
Definition at line 78 of file TGL5DPainter.h.
|
protectedinherited |
Definition at line 200 of file TGLPlotPainter.h.
|
private |
Definition at line 76 of file TGL5DPainter.h.
|
private |
Definition at line 77 of file TGL5DPainter.h.
|
protectedinherited |
Definition at line 192 of file TGLPlotPainter.h.
|
mutableprotectedinherited |
Definition at line 206 of file TGLPlotPainter.h.
|
mutableprotectedinherited |
Definition at line 204 of file TGLPlotPainter.h.
|
protectedinherited |
Definition at line 193 of file TGLPlotPainter.h.
|
mutableprotectedinherited |
Definition at line 205 of file TGLPlotPainter.h.
|
protectedinherited |
Definition at line 194 of file TGLPlotPainter.h.
|
protectedinherited |
Definition at line 210 of file TGLPlotPainter.h.