12 #ifndef ROOT_TSpectrum2Painter 13 #define ROOT_TSpectrum2Painter 195 void ColorModel(
unsigned ui,
unsigned ui1,
unsigned ui2,
unsigned ui3);
209 TSpectrum2Painter& operator=(const TSpectrum2Painter&);
void SetDisplayMode(Int_t modeGroup, Int_t displayMode)
Sets display group mode and display mode:
void GetDisplayMode(Int_t &modeGroup, Int_t &displayMode)
Gets display group mode and display mode: -modeGroup - the following group modes might have been set:...
void SetAngles(Int_t alpha, Int_t beta, Int_t view)
Sets angles of the view:
Double_t BezierBlend(Int_t i, Double_t bezf)
This function calculates Bezier approximation.
void CopyEnvelope(Double_t xr, Double_t xs, Double_t yr, Double_t ys)
Copies envelope vector, which ensures hidden surface removal for the contours display mode...
void SetBezier(Int_t bezier)
Sets on/off Bezier smoothing:
void SetShading(Int_t shading, Int_t shadow)
Sets on/off shading and shadow switches:
void Envelope(Int_t x1, Int_t y1, Int_t x2, Int_t y2)
Ensures hidden surface removal.
void GetColorAlgorithm(Int_t &colorAlgorithm)
Gets shading color algorithm:
Double_t ColorCalculation(Double_t dx1, Double_t dy1, Double_t z1, Double_t dx2, Double_t dy2, Double_t z2, Double_t dx3, Double_t dy3, Double_t z3)
Calculates and returns color value for the surface triangle given by function parameters: -dx1...
void SetPenAttr(Int_t color, Int_t style, Int_t width)
Sets pen attributes:
Int_t fMaximumXScreenResolution
Int_t fNewColorIndex
buffers' size
double beta(double x, double y)
Calculates the beta function.
static void PaintSpectrum(TH2 *h2, Option_t *option="", Int_t bs=1600)
This function allows to set all the possible options available in TSpectrum2Painter and paint "h2"...
static const double x2[5]
#define ClassDef(name, id)
void GetAngles(Int_t &alpha, Int_t &beta, Int_t &view)
Gets angles of the view:
void ColorModel(unsigned ui, unsigned ui1, unsigned ui2, unsigned ui3)
This function calculates color for one palette entry given by function parameter ui.
The TNamed class is the base class for all named ROOT classes.
void GetNodes(Int_t &nodesx, Int_t &nodesy)
Gets nodes in both directions:
void EnvelopeBars(Int_t x1, Int_t y1, Int_t x2, Int_t y2)
Ensures hidden surface removal for Bars, BarsX and BarsY display modes.
void SetContourWidth(Int_t width)
Sets width between horizontal slices:
void GetLightHeightWeight(Double_t &weight)
Gets weight between shading according to fictive light source and according to channels counts: ...
void SetChanMarks(Int_t enable, Int_t color, Int_t width, Int_t height, Int_t style)
Sets enables/disables drawing of channel marks and sets their attributes:
void GetContourWidth(Int_t &width)
Gets width between horizontal slices:
void BezierSmoothing(Double_t bezf)
Calculates screen coordinates of the smoothed point.
Service class for 2-Dim histogram classes.
TSpectrum2Painter(TH2 *h2, Int_t bs)
TSpectrum2Painter normal constructor.
void Transform(Int_t it, Int_t jt, Int_t zmt)
Reads out the value from histogram and calculates screen coordinates.
virtual ~TSpectrum2Painter()
TSpectrum2Painter destructor.
void GetShading(Int_t &shading, Int_t &shadow)
Gets shading and shadow switches:
void GetPenAttr(Int_t &color, Int_t &style, Int_t &width)
Gets pen attributes: -color - color of spectrum -style - style of pen (solid, dash, dot, dash-dot) -width - width of pen in pixels.
void GetColorIncrements(Double_t &r, Double_t &g, Double_t &b)
Gets color increments between two color levels for r, g, b components:
void GetChanGrid(Int_t &enable, Int_t &color)
This function gets attributes for drawing channel:
void DrawMarker(Int_t x, Int_t y, Int_t w, Int_t h, Int_t type)
Draws channel mark at the screen coordinates x, y.
void GetChanMarks(Int_t &enable, Int_t &color, Int_t &width, Int_t &height, Int_t &style)
Gets drawing attributes for channel marks:
Two-dimensional graphics function.
void GetLightPosition(Int_t &x, Int_t &y, Int_t &z)
Gets position of fictive light source in 3D space:
static const double x1[5]
Double_t ShadowColorCalculation(Double_t xtaz, Double_t ytaz, Double_t ztaz, Double_t shad_noise)
Determines whether the center of the triangle in 3-d space given by function parameters: ...
The color creation and management class.
void SetChanGrid(Int_t enable, Int_t color)
This function sets enables/disables drawing of channel grid and sets its color: -enable - decides whe...
void GetBezier(Int_t &bezier)
Gets Bezier smoothing switch:
void SetLightHeightWeight(Double_t weight)
Sets weight between shading according to fictive light source and according to channels counts: ...
you should not use this method at all Int_t Int_t z
void Paint(Option_t *option)
Paints histogram according to preset parameters.
void SetColorIncrements(Double_t r, Double_t g, Double_t b)
Sets color increments between two color levels for r, g, b components:
void SetNodes(Int_t nodesx, Int_t nodesy)
Sets nodes in both directions:
Short_t * fEnvelopeContour
void SetLightPosition(Int_t x, Int_t y, Int_t z)
Sets position of fictive light source in 3D space:
void SetColorAlgorithm(Int_t colorAlgorithm)
Sets shading color algorithm:
you should not use this method at all Int_t Int_t Double_t Double_t Double_t Int_t Double_t Double_t Double_t Double_t b
void Slice(Double_t xr, Double_t yr, Double_t xs, Double_t ys, TLine *line)
Calculates screen coordinates of the line given by two nodes for contours display mode...
void GetZScale(Int_t &scale)
Gets z-axis scale:
Int_t BezC(Int_t i)
This function is called from BezierBlend function.
void SetZScale(Int_t scale)
Sets z-axis scale:
static constexpr double g