36 fSmooth (fgDefaultSmooth)
49 fSmooth (fgDefaultSmooth)
191 std::vector<TEveVector>
q;
195 for (
Int_t i = 1; i < s; ++i)
197 a =
b;
b.Set(&p[3*i]);
d =
b -
a;
204 for (
Int_t j = 0; j <
n; ++j)
215 for (std::vector<TEveVector>::iterator i =
q.begin(); i !=
q.end(); ++i)
228 for (
Int_t i = 1; i < s; ++i, p += 3)
230 sum +=
TMath::Sqrt(sqr(p[3] - p[0]) + sqr(p[4] - p[1]) + sqr(p[5] - p[2]));
265 TAttLine::operator=(*
m);
293 return TEveLineProjected::Class();
350 for (
Int_t i = 0; i <
n; ++i, p+=3)
368 for (
Int_t i = 0; i <
n; ++i, o+=3, p+=3)
virtual void SetLineStyle(Style_t lstyle)
Set the line style.
virtual void SetLineWidth(Width_t lwidth)
Set the line width.
Color_t fLineColor
Line color.
virtual void SaveLineAttributes(std::ostream &out, const char *name, Int_t coldef=1, Int_t stydef=1, Int_t widdef=1)
Save line attributes as C++ statement(s) on output stream out.
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.
Base class for TEveUtil visualization elements, providing hierarchy management, rendering control and...
virtual TEveTrans * PtrMainTrans(Bool_t create=kTRUE)
Return pointer to main transformation.
static const char * ToString(Bool_t b)
Convert Bool_t to string - kTRUE or kFALSE.
static const TGPicture * fgListTreeIcons[9]
Projected copy of a TEveLine.
virtual void UpdateProjection()
Re-apply the projection.
virtual void SetDepthLocal(Float_t d)
Set depth (z-coordinate) of the projected points.
virtual void SetProjection(TEveProjectionManager *mng, TEveProjectable *model)
Set projection manager and projection model.
TEveLineProjected()
Default constructor.
An arbitrary polyline with fixed line and marker attributes.
virtual void SetLineStyle(Style_t lstyle)
Set line-style of the line.
Float_t CalculateLineLength() const
Sum-up lengths of individual segments.
virtual void SetLineWidth(Width_t lwidth)
Set line-style of the line.
void ReduceSegmentLengths(Float_t max)
Make sure that no segment is longer than max.
static void SetDefaultSmooth(Bool_t r)
Set default value for smooth-line drawing flag (default kFALSE).
static Bool_t fgDefaultSmooth
TEveVector GetLineStart() const
Return the first point of the line.
virtual TClass * ProjectedClass(const TEveProjection *p) const
Virtual from TEveProjectable, returns TEvePointSetProjected class.
virtual const TGPicture * GetListTreeIcon(Bool_t open=kFALSE)
Returns list-tree icon for TEveLine.
void SetRnrLine(Bool_t r)
Set rendering of line. Propagate to projected lines.
TEveLine(const TEveLine &)
virtual void CopyVizParams(const TEveElement *el)
Copy visualization parameters from element el.
virtual void WriteVizParams(std::ostream &out, const TString &var)
Write visualization parameters.
void SetSmooth(Bool_t r)
Set smooth rendering. Propagate to projected lines.
void SetRnrPoints(Bool_t r)
Set rendering of points. Propagate to projected lines.
static Bool_t GetDefaultSmooth()
Get default value for smooth-line drawing flag.
virtual void SetMarkerColor(Color_t col)
Set marker color. Propagate to projected lines.
TEveVector GetLineEnd() const
Return the last point of the line.
TEvePointSet is a render-element holding a collection of 3D points with optional per-point TRef and a...
virtual void CopyVizParams(const TEveElement *el)
Copy visualization parameters from element el.
virtual void WriteVizParams(std::ostream &out, const TString &var)
Write visualization parameters.
void Reset(Int_t n_points=0, Int_t n_int_ids=0)
Drop all data and set-up the data structures to recive new data.
Abstract base-class for non-linear projectable objects.
ProjList_t fProjectedList
Abstract base class for classes that hold results of a non-linear projection transformation.
TEveProjectable * fProjectable
TEveProjectionManager * fManager
virtual void SetProjection(TEveProjectionManager *mng, TEveProjectable *model)
Sets projection manager and reference in the projectable object.
void SetDepthCommon(Float_t d, TEveElement *el, Float_t *bbox)
Utility function to update the z-values of the bounding-box.
Manager class for steering of projections and managing projected objects.
TEveProjection * GetProjection()
Base-class for non-linear projections.
void ProjectPointfv(Float_t *v, Float_t d)
Project float array.
TEveTrans is a 4x4 transformation matrix for homogeneous coordinates stored internally in a column-ma...
void Set(const Float_t *v)
virtual void GetPoint(Int_t n, Float_t &x, Float_t &y, Float_t &z) const
Fills the parameters x, y, z with the coordinate of the n-th point n must be between 0 and Size() - 1...
virtual Int_t Size() const
virtual Float_t * GetP() const
virtual Int_t SetNextPoint(Double_t x, Double_t y, Double_t z)
Set point following LastPoint to x, y, z.
VecExpr< UnaryOp< Sqr< T >, VecExpr< A, T, D >, T >, T, D > sqr(const VecExpr< A, T, D > &rhs)
Int_t FloorNint(Double_t x)
Double_t Sqrt(Double_t x)
static uint64_t sum(uint64_t i)