18#include <nlohmann/json.hpp>
65 l->SetMarkerColor(col);
83 pt->SetLineStyle(lstyle);
101 pt->SetLineWidth(lwidth);
177 std::vector<REveVector>
q;
181 for (
Int_t i = 1; i < s; ++i)
183 a =
b;
b.Set(&p[3*i]);
d =
b -
a;
190 for (
Int_t j = 0; j <
n; ++j)
250 TAttLine::operator=(*
m);
359 for (
Int_t i = 0; i <
n; ++i, p+=3)
378 for (
Int_t i = 0; i <
n; ++i, o+=3, p+=3)
int Int_t
Signed integer 4 bytes (int).
short Width_t
Line width (short).
bool Bool_t
Boolean (0=false, 1=true) (bool).
short Color_t
Color number (short).
short Style_t
Style number (short).
std::unique_ptr< REveRenderData > fRenderData
! Vertex / normal / triangle index information for rendering.
virtual REveTrans * PtrMainTrans(Bool_t create=kTRUE)
Return pointer to main transformation.
static const std::string & ToString(Bool_t b)
Convert Bool_t to string - kTRUE or kFALSE.
REveLineProjected()
Default constructor.
void SetDepthLocal(Float_t d) override
Set depth (z-coordinate) of the projected points.
void SetProjection(REveProjectionManager *mng, REveProjectable *model) override
Set projection manager and projection model.
void UpdateProjection() override
Re-apply the projection.
REveVector GetLineEnd() const
Return the last point of the line.
void ReduceSegmentLengths(Float_t max)
Make sure that no segment is longer than max.
void CopyVizParams(const REveElement *el) override
Copy visualization parameters from element el.
void SetSmooth(Bool_t r)
Set smooth rendering. Propagate to projected lines.
void SetMarkerColor(Color_t col) override
Set marker color. Propagate to projected lines.
void WriteVizParams(std::ostream &out, const TString &var) override
Write visualization parameters.
REveVector GetLineStart() const
Return the first point of the line.
REveLine(const std::string &name="", const std::string &title="", Int_t n_points=0)
Constructor.
void SetLineWidth(Width_t lwidth) override
Set line-style of the line.
static Bool_t GetDefaultSmooth()
Get default value for smooth-line drawing flag.
static void SetDefaultSmooth(Bool_t r)
Set default value for smooth-line drawing flag (default kFALSE).
static Bool_t fgDefaultSmooth
void SetLineStyle(Style_t lstyle) override
Set line-style of the line.
Int_t WriteCoreJson(nlohmann::json &cj, Int_t rnr_offset) override
Write core json.
void SetRnrLine(Bool_t r)
Set rendering of line. Propagate to projected lines.
Float_t CalculateLineLength() const
Sum-up lengths of individual segments.
void SetRnrPoints(Bool_t r)
Set rendering of points. Propagate to projected lines.
TClass * ProjectedClass(const REveProjection *p) const override
Virtual from REveProjectable, returns REvePointSetProjected class.
void BuildRenderData() override
Virtual from REveElement. Prepares render data for binary streaming to client.
void WriteVizParams(std::ostream &out, const TString &var) override
Write visualization parameters.
REveVector & RefPoint(int n)
Int_t WriteCoreJson(nlohmann::json &j, Int_t rnr_offset) override
Write core json.
void CopyVizParams(const REveElement *el) override
Copy visualization parameters from element el.
REvePointSet(const std::string &name="", const std::string &title="", Int_t n_points=0)
Constructor.
std::vector< REveVector > fPoints
int SetNextPoint(float x, float y, float z)
void Reset(Int_t n_points=0)
Drop all data and set-up the data structures to recive new data.
ProjList_t fProjectedList
virtual void SetProjection(REveProjectionManager *mng, REveProjectable *model)
Sets projection manager and reference in the projectable object.
void SetDepthCommon(Float_t d, REveElement *el, Float_t *bbox)
Utility function to update the z-values of the bounding-box.
REveProjected(const REveProjected &)=delete
REveProjectable * fProjectable
REveProjectionManager * fManager
REveProjectionManager Manager class for steering of projections and managing projected objects.
REveProjection Base for specific classes that implement non-linear projections.
void ProjectPointfv(Float_t *v, Float_t d)
Project float array.
Float_t * fBBox
! Dynamic Float_t[6] X(min,max), Y(min,max), Z(min,max)
virtual Color_t GetLineColor() const
Return the line color.
virtual void SetLineStyle(Style_t lstyle)
Set the line style.
virtual Width_t GetLineWidth() const
Return the line width.
virtual void SetLineWidth(Width_t lwidth)
Set the line width.
virtual void SaveLineAttributes(std::ostream &out, const char *name, Int_t coldef=1, Int_t stydef=1, Int_t widdef=1)
virtual Style_t GetLineStyle() const
Return the line style.
Color_t fLineColor
Line color.
virtual void SetMarkerColor(Color_t mcolor=1)
Set the marker color.
Color_t fMarkerColor
Marker color.
TClass instances represent classes, structs and namespaces in the ROOT type system.
static TClass * GetClass(const char *name, Bool_t load=kTRUE, Bool_t silent=kFALSE)
Static method returning pointer to TClass of the specified class name.
Namespace for ROOT features in testing.
REveVectorT< Float_t > REveVector
Int_t FloorNint(Double_t x)
Returns the nearest integer of TMath::Floor(x).
Double_t Sqrt(Double_t x)
Returns the square root of x.
static uint64_t sum(uint64_t i)