48 if (*
x > -1.5 && *
x < -0.5)
51 if (*
x < -0.5 && *
x < 0.)
54 if (*
x > 0 && *
x < 0.5)
69 const Double_t xMin = -1., xMax = 1., xStep = (xMax - xMin) / (nX - 1);
72 const Double_t yMin = -1., yMax = 1., yStep = (yMax - yMin) / (nY - 1);
75 const Double_t zMin = -1., zMax = 1., zStep = (zMax - zMin) / (nZ - 1);
77 TH3F *hist =
new TH3F(
"glvoxel",
"glvoxel", nX, -1., 1., nY, -1., 1., nZ, -1., 1.);
80 for (
UInt_t i = 0; i < nZ; ++i) {
83 for (
UInt_t j = 0; j < nY; ++j) {
86 for (
UInt_t k = 0; k < nX; ++k) {
98 TF1 * tf =
new TF1(
"TransferFunction", my_transfer_function);
R__EXTERN TStyle * gStyle
TList * GetListOfFunctions() const
virtual void Draw(Option_t *option="")
Draw this histogram with options.
3-D histogram with a float per channel (see TH1 documentation)}
virtual void SetBinContent(Int_t bin, Double_t content)
Set bin content.
virtual void Add(TObject *obj)
void SetCanvasPreferGL(Bool_t prefer=kTRUE)