/usr/include/root/TEveLine.h is in libroot-graf3d-eve-dev 5.34.19+dfsg-1.2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 | // @(#)root/eve:$Id$
// Authors: Matevz Tadel & Alja Mrak-Tadel: 2006, 2007
/*************************************************************************
* Copyright (C) 1995-2007, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* *
* For the licensing terms see $ROOTSYS/LICENSE. *
* For the list of contributors see $ROOTSYS/README/CREDITS. *
*************************************************************************/
#ifndef ROOT_TEveLine
#define ROOT_TEveLine
#include "TEvePointSet.h"
#include "TEveVector.h"
#include "TAttLine.h"
//------------------------------------------------------------------------------
// TEveLine
//------------------------------------------------------------------------------
class TEveLine : public TEvePointSet,
public TAttLine
{
friend class TEveLineEditor;
friend class TEveLineGL;
private:
TEveLine(const TEveLine&); // Not implemented
TEveLine& operator=(const TEveLine&); // Not implemented
protected:
Bool_t fRnrLine;
Bool_t fRnrPoints;
Bool_t fSmooth;
static Bool_t fgDefaultSmooth;
public:
TEveLine(Int_t n_points=0, ETreeVarType_e tv_type=kTVT_XYZ);
TEveLine(const char* name, Int_t n_points=0, ETreeVarType_e tv_type=kTVT_XYZ);
virtual ~TEveLine() {}
virtual void SetMarkerColor(Color_t col);
virtual void SetLineColor(Color_t col) { SetMainColor(col); }
virtual void SetLineStyle(Style_t lstyle);
virtual void SetLineWidth(Width_t lwidth);
Bool_t GetRnrLine() const { return fRnrLine; }
Bool_t GetRnrPoints() const { return fRnrPoints; }
Bool_t GetSmooth() const { return fSmooth; }
void SetRnrLine(Bool_t r);
void SetRnrPoints(Bool_t r);
void SetSmooth(Bool_t r);
void ReduceSegmentLengths(Float_t max);
Float_t CalculateLineLength() const;
TEveVector GetLineStart() const;
TEveVector GetLineEnd() const;
virtual const TGPicture* GetListTreeIcon(Bool_t open=kFALSE);
virtual void CopyVizParams(const TEveElement* el);
virtual void WriteVizParams(ostream& out, const TString& var);
virtual TClass* ProjectedClass(const TEveProjection* p) const;
static Bool_t GetDefaultSmooth();
static void SetDefaultSmooth(Bool_t r);
ClassDef(TEveLine, 0); // An arbitrary polyline with fixed line and marker attributes.
};
//------------------------------------------------------------------------------
// TEveLineProjected
//------------------------------------------------------------------------------
class TEveLineProjected : public TEveLine,
public TEveProjected
{
private:
TEveLineProjected(const TEveLineProjected&); // Not implemented
TEveLineProjected& operator=(const TEveLineProjected&); // Not implemented
protected:
virtual void SetDepthLocal(Float_t d);
public:
TEveLineProjected();
virtual ~TEveLineProjected() {}
virtual void SetProjection(TEveProjectionManager* mng, TEveProjectable* model);
virtual void UpdateProjection();
virtual TEveElement* GetProjectedAsElement() { return this; }
ClassDef(TEveLineProjected, 0); // Projected replica of a TEveLine.
};
#endif
|