FEDRA emulsion software from the OPERA Collaboration
EdbEDALine Class Reference

#include <EdbEDA.h>

Inheritance diagram for EdbEDALine:
Collaboration diagram for EdbEDALine:

Public Member Functions

void Draw (Option_t *option="")
 
 EdbEDALine (float x1, float y1, float z1, float x2, float y2, float z2, int color, int width, char *comment="")
 
 EdbEDALine (int color, int width, char *comment="")
 
void SetPoint1 (float x1, float y1, float z1)
 
void SetPoint2 (float x2, float y2, float z2)
 
 ~EdbEDALine ()
 
- Public Member Functions inherited from EdbEDAObject
virtual void Draw (Option_t *option="")
 
 EdbEDAObject ()
 
bool GetDraw ()
 
voidGetReference ()
 
virtual void SetColorMode (int mode)
 
void SetDraw (bool b=kTRUE)
 
void SetReference (void *ref)
 
 ~EdbEDAObject ()
 

Private Attributes

int col
 
TString text
 
int wid
 
float X1
 
float X2
 
float Y1
 
float Y2
 
float Z1
 
float Z2
 

Constructor & Destructor Documentation

◆ EdbEDALine() [1/2]

EdbEDALine::EdbEDALine ( float  x1,
float  y1,
float  z1,
float  x2,
float  y2,
float  z2,
int  color,
int  width,
char *  comment = "" 
)
inline
93: X1(x1), Y1(y1), Z1(z1), X2(x2), Y2(y2), Z2(z2), col(color), wid(width), text(comment){}
float X1
Definition: EdbEDA.h:88
int col
Definition: EdbEDA.h:89
TString text
Definition: EdbEDA.h:90
float X2
Definition: EdbEDA.h:88
float Y2
Definition: EdbEDA.h:88
float Y1
Definition: EdbEDA.h:88
float Z2
Definition: EdbEDA.h:88
float Z1
Definition: EdbEDA.h:88
int wid
Definition: EdbEDA.h:89

◆ EdbEDALine() [2/2]

EdbEDALine::EdbEDALine ( int  color,
int  width,
char *  comment = "" 
)
inline
94: col(color), wid(width), text(comment){}

◆ ~EdbEDALine()

EdbEDALine::~EdbEDALine ( )
inline
95{}

Member Function Documentation

◆ Draw()

void EdbEDALine::Draw ( Option_t *  option = "")
virtual

Reimplemented from EdbEDAObject.

2184 {
2185 if(GetDraw()==kFALSE) return;
2186 TEveLine *l = new TEveLine;
2187 l->SetElementName(text.Data());
2188 l->SetNextPoint(X1,Y1,Z1*gEDA->GetScaleZ());
2189 l->SetNextPoint(X2,Y2,Z2*gEDA->GetScaleZ());
2190 l->SetLineColor(col);
2191 l->SetLineWidth(wid);
2192 gEve->AddElement(l);
2193}
EdbEDA * gEDA
Definition: EdbEDA.C:3
bool GetDraw()
Definition: EdbEDA.h:45
double GetScaleZ()
Definition: EdbEDA.h:732

◆ SetPoint1()

void EdbEDALine::SetPoint1 ( float  x1,
float  y1,
float  z1 
)
inline
97{ X1=x1; Y1=y1; Z1=z1;}

◆ SetPoint2()

void EdbEDALine::SetPoint2 ( float  x2,
float  y2,
float  z2 
)
inline
98{ X2=x2; Y2=y2; Z2=z2;}

Member Data Documentation

◆ col

int EdbEDALine::col
private

◆ text

TString EdbEDALine::text
private

◆ wid

int EdbEDALine::wid
private

◆ X1

float EdbEDALine::X1
private

◆ X2

float EdbEDALine::X2
private

◆ Y1

float EdbEDALine::Y1
private

◆ Y2

float EdbEDALine::Y2
private

◆ Z1

float EdbEDALine::Z1
private

◆ Z2

float EdbEDALine::Z2
private

The documentation for this class was generated from the following files: