12#include "TGLIncludes.h"
25 const std::vector<UInt_t> &
fTS)
39void DrawMesh(
const std::vector<Float_t> &
vs,
const std::vector<Float_t> &ns,
40 const std::vector<UInt_t> &
ts)
48void DrawMesh(
const std::vector<Double_t> &
vs,
const std::vector<Double_t> &ns,
49 const std::vector<UInt_t> &
ts)
69void DrawMesh(
const std::vector<Float_t> &
vs,
const std::vector<UInt_t> &
ts)
77void DrawMesh(
const std::vector<Double_t> &
vs,
const std::vector<UInt_t> &
ts)
86template<
class V,
class GLN,
class GLV>
88 const std::vector<V> &ns,
const std::vector<UInt_t> &
fTS,
93 for (
UInt_t i = 0,
e =
fTS.size() / 3; i <
e; ++i) {
95 if (
box.IsInCut(&
vs[t[0] * 3]))
97 if (
box.IsInCut(&
vs[t[1] * 3]))
99 if (
box.IsInCut(&
vs[t[2] * 3]))
118void DrawMesh(
const std::vector<Float_t> &
vs,
const std::vector<Float_t> &ns,
127void DrawMesh(
const std::vector<Double_t> &
vs,
const std::vector<Double_t> &ns,
137template<
class V,
class GLV>
143 for (
UInt_t i = 0,
e =
fTS.size() / 3; i <
e; ++i) {
145 if (
box.IsInCut(&
vs[t[0] * 3]))
147 if (
box.IsInCut(&
vs[t[1] * 3]))
149 if (
box.IsInCut(&
vs[t[2] * 3]))
184 rfColor[0] = (
x > 0. ?
x : 0.) + (
y < 0. ? -0.5 *
y : 0.) + (z < 0. ? -0.5 * z : 0.);
185 rfColor[1] = (
y > 0. ?
y : 0.) + (z < 0. ? -0.5 * z : 0.) + (
x < 0. ? -0.5 *
x : 0.);
186 rfColor[2] = (z > 0. ? z : 0.) + (
x < 0. ? -0.5 *
x : 0.) + (
y < 0. ? -0.5 *
y : 0.);
193 const std::vector<UInt_t> &
fTS)
195 Double_t color[] = {0., 0., 0., 0.15};
199 for (
UInt_t i = 0,
e =
fTS.size() / 3; i <
e; ++i) {
227 Double_t color[] = {0., 0., 0., 0.15};
231 for (
UInt_t i = 0,
e =
fTS.size() / 3; i <
e; ++i) {
233 if (
box.IsInCut(&
vs[t[0] * 3]))
235 if (
box.IsInCut(&
vs[t[1] * 3]))
237 if (
box.IsInCut(&
vs[t[2] * 3]))
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h Atom_t Int_t ULong_t ULong_t unsigned char prop_list Atom_t Atom_t Atom_t Time_t type
Used by plot-painters to determine the area of the plot that is cut away.
void box(Int_t pat, Double_t x1, Double_t y1, Double_t x2, Double_t y2)
void DrawMapleMesh(const std::vector< Double_t > &vs, const std::vector< Double_t > &ns, const std::vector< UInt_t > &ts)
Colored mesh with lighting disabled.
void NormalToColor(Double_t *rfColor, const Double_t *n)
NormalToColor generates a color from a given normal.
void DrawMesh(const std::vector< Float_t > &vs, const std::vector< Float_t > &ns, const std::vector< UInt_t > &ts)
Call function-template.