12#ifndef ROOT7_REveProjectionAxis
13#define ROOT7_REveProjectionAxis
21namespace Experimental {
char Text_t
General string (char)
float Float_t
Float 4 bytes (float)
Manager class for steering of projections and managing projected objects.
void SetAxesMode(EAxesMode_e m)
ELabMode_e
Where the labelled values come from.
void RemoveAunt(REveAunt *au) override
Forget the projection manager when it is destroyed, then clear any click target as REveText does.
Bool_t GetUseFgColor() const
ELabMode_e GetLabMode() const
REveProjectionAxis(const REveProjectionAxis &)=delete
void SetLabMode(ELabMode_e m)
EAxesMode_e GetAxesMode() const
std::vector< Tick_t > fTicks[2]
! computed ticks, [0] horizontal, [1] vertical
void BuildRenderData() override
Render data.
EAxesMode_e
Which edges of the viewport carry an axis.
REveProjectionAxis & operator=(const REveProjectionAxis &)=delete
~REveProjectionAxis() override
Destructor.
void SetDrawCenter(Bool_t x)
REveText * fDistLabel
! optional read-out of the distortion, not owned
REveProjectionManager * fManager
! held as an aunt, not owned
void SetDrawOrigin(Bool_t x)
Float_t fRangeFactor
tick range as a multiple of the manager's bbox extent, about its centre
Int_t GetNdivisions() const
Bool_t GetDrawOrigin() const
void UpdateDistortionLabel()
Rewrite the read-out.
Bool_t fUseFgColor
Take the viewer's foreground colour instead of fTextColor/fLineColor, so the axis stays legible when ...
REveProjectionManager * GetManager() const
void SetRangeFactor(Float_t f)
Bool_t GetDrawCenter() const
void SetDistortionLabel(REveText *t)
Attach a text element that shows the current distortion.
Int_t fNdivisions
Primary divisions * 100 + secondary divisions, decoded as TEveProjectionAxes does,...
void SetUseFgColor(Bool_t x)
void UpdateTicks()
Recompute both tick sets.
void BuildTicks(Int_t ax)
Build the tick set for one screen axis, 0 horizontal and 1 vertical.
Int_t WriteCoreJson(nlohmann::json &j, Int_t rnr_offset) override
Stream style, mode and the tick sets.
void SetNdivisions(Int_t n)
Float_t GetRangeFactor() const
REveProjectionManager Manager class for steering of projections and managing projected objects.
One tick: where it lands in projected space, what to write, and whether it is a labelled (major) tick...
std::string fLabel
empty for a minor tick
Float_t fPos
position along the axis, in projected coordinates