68 const Double_t xMin = -1., xMax = 1., xStep = (xMax - xMin) / (nX - 1);
71 const Double_t yMin = -1., yMax = 1., yStep = (yMax - yMin) / (nY - 1);
74 const Double_t zMin = -1., zMax = 1., zStep = (zMax - zMin) / (nZ - 1);
76 TH3F *hist =
new TH3F(
"glvoxel",
"glvoxel", nX, -1., 1., nY, -1., 1., nZ, -1., 1.);
79 for (
UInt_t i = 0; i < nZ; ++i) {
82 for (
UInt_t j = 0; j < nY; ++j) {
85 for (
UInt_t k = 0; k < nX; ++k) {
97 TF1 *tf =
new TF1(
"TransferFunction", my_transfer_function, -2., 1.);
R__EXTERN TStyle * gStyle
void Draw(Option_t *option="") override
Draw this histogram with options.
TList * GetListOfFunctions() const
3-D histogram with a float per channel (see TH1 documentation)
void SetBinContent(Int_t bin, Double_t content) override
Set bin content.
void Add(TObject *obj) override
void SetCanvasPreferGL(Bool_t prefer=kTRUE)