ATLAS Offline Software
Loading...
Searching...
No Matches
ShapeCreator.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef SHAPECREATOR_H
6#define SHAPECREATOR_H
7
8class TLine;
9class TArc;
10class TBox;
11class TArrow;
12class TPolyLine;
13class TText;
14class TEllipse;
15
16//namespace CLHEP {
17//class Hep3Vector;
18//}
19
20class TVector3;
21
23public:
24
26 void setProjection(int p);
27// void setProjection(int p, double parameter = 1.);
28 TLine* createLine(const TVector3& pos, const TVector3& dir, double length);
29 TLine* createLine(const TVector3& pos1, const TVector3& pos2);
30 TLine* createOrthogonalLine(const TVector3& pos, const TVector3& dir, double length);
31 TArrow* createArrow(const TVector3& pos, const TVector3& dir, double length);
32 TPolyLine* createTriangle(const TVector3& pos, const TVector3& dir, double length);
33
34 TArc* createArc(const TVector3& pos, double r);
35 TBox* createBox(const TVector3& upperleft, const TVector3& lowerright);
36 TText* createText(const TVector3& pos, const char* text);
37 TEllipse* createEllipse(const TVector3& pos, double r1, double r2);
38private:
39 void applyProjection(const TVector3& pos, double& x1, double& x2);
40 void applyDirectionProjectionUnit(const TVector3& dir, double& x1, double& x2, const TVector3& pos);
42 //double m_parameter;
43};
44
45
46
47
48#endif
double length(const pvec &v)
TLine * createOrthogonalLine(const TVector3 &pos, const TVector3 &dir, double length)
void applyProjection(const TVector3 &pos, double &x1, double &x2)
void applyDirectionProjectionUnit(const TVector3 &dir, double &x1, double &x2, const TVector3 &pos)
TArrow * createArrow(const TVector3 &pos, const TVector3 &dir, double length)
TLine * createLine(const TVector3 &pos, const TVector3 &dir, double length)
TArc * createArc(const TVector3 &pos, double r)
TBox * createBox(const TVector3 &upperleft, const TVector3 &lowerright)
void setProjection(int p)
TText * createText(const TVector3 &pos, const char *text)
TPolyLine * createTriangle(const TVector3 &pos, const TVector3 &dir, double length)
TEllipse * createEllipse(const TVector3 &pos, double r1, double r2)
int r
Definition globals.cxx:22