ATLAS Offline Software
Public Member Functions | Protected Attributes | List of all members
internal_poltrig::Linebase Class Reference
Collaboration diagram for internal_poltrig::Linebase:

Public Member Functions

 Linebase ()
 
 Linebase (Pointbase *ep1, Pointbase *ep2, const Type &type, long int &l_id)
 
 Linebase (const Linebase &line)
 
Linebaseoperator= (const Linebase &)=delete
 
 ~Linebase ()
 
unsigned int id () const
 
PointbaseendPoint (const int &i) const
 
Type type () const
 
double keyValue () const
 
void setKeyValue (const double &y)
 
void increaseKeyValue (const double &diff)
 
void reverse ()
 
void setHelper (const unsigned int &i)
 
unsigned int helper ()
 

Protected Attributes

unsigned int m_id
 
Pointbasem_endp [2]
 
Type m_type
 
double m_key
 
unsigned int m_helper
 

Detailed Description

Definition at line 1244 of file PolygonTriangulator.cxx.

Constructor & Destructor Documentation

◆ Linebase() [1/3]

internal_poltrig::Linebase::Linebase ( )

Definition at line 1368 of file PolygonTriangulator.cxx.

1368  :m_type(UNKNOWN), m_key(0), m_helper(0)
1369  {
1370  for(int i=0; i<2; ++i) m_endp[i]=0;
1371  m_id=0;
1372  }

◆ Linebase() [2/3]

internal_poltrig::Linebase::Linebase ( Pointbase ep1,
Pointbase ep2,
const Type type,
long int &  l_id 
)

Definition at line 1377 of file PolygonTriangulator.cxx.

1377  :m_type(type), m_key(0), m_helper(0)
1378  {
1379  m_endp[0]=sp;
1380  m_endp[1]=ep;
1381  m_id=++l_id;
1382  }

◆ Linebase() [3/3]

internal_poltrig::Linebase::Linebase ( const Linebase line)

Definition at line 1387 of file PolygonTriangulator.cxx.

1388  {
1389  this->m_id=line.m_id;
1390  this->m_endp[0]=line.m_endp[0];
1391  this->m_endp[1]=line.m_endp[1];
1392  this->m_key=line.m_key;
1393  this->m_type=line.m_type;
1394  this->m_helper=line.m_helper;
1395  }

◆ ~Linebase()

internal_poltrig::Linebase::~Linebase ( )
inline

Definition at line 1252 of file PolygonTriangulator.cxx.

1252 {};

Member Function Documentation

◆ endPoint()

Pointbase* internal_poltrig::Linebase::endPoint ( const int &  i) const
inline

Definition at line 1257 of file PolygonTriangulator.cxx.

1257 { return m_endp[i]; }

◆ helper()

unsigned int internal_poltrig::Linebase::helper ( )
inline

Definition at line 1268 of file PolygonTriangulator.cxx.

1268 { return m_helper; }

◆ id()

unsigned int internal_poltrig::Linebase::id ( ) const
inline

Definition at line 1254 of file PolygonTriangulator.cxx.

1254 { return m_id; }

◆ increaseKeyValue()

void internal_poltrig::Linebase::increaseKeyValue ( const double &  diff)
inline

Definition at line 1262 of file PolygonTriangulator.cxx.

1262 { m_key+=diff; }

◆ keyValue()

double internal_poltrig::Linebase::keyValue ( ) const
inline

Definition at line 1259 of file PolygonTriangulator.cxx.

1259 { return m_key; }

◆ operator=()

Linebase& internal_poltrig::Linebase::operator= ( const Linebase )
delete

◆ reverse()

void internal_poltrig::Linebase::reverse ( )

Definition at line 1401 of file PolygonTriangulator.cxx.

1402  {
1403  assert(m_type==INSERT);
1404  Pointbase* tmp=m_endp[0];
1405  m_endp[0]=m_endp[1];
1406  m_endp[1]=tmp;
1407  }

◆ setHelper()

void internal_poltrig::Linebase::setHelper ( const unsigned int &  i)
inline

Definition at line 1267 of file PolygonTriangulator.cxx.

1267 { m_helper=i; }

◆ setKeyValue()

void internal_poltrig::Linebase::setKeyValue ( const double &  y)

Definition at line 1409 of file PolygonTriangulator.cxx.

1410  {
1411  if( m_endp[1]->y==m_endp[0]->y )
1412  m_key=m_endp[0]->x < m_endp[1]->x ? m_endp[0]->x:m_endp[1]->x;
1413  else m_key=( y - m_endp[0]->y ) * ( m_endp[1]->x - m_endp[0]->x ) / (m_endp[1]->y - m_endp[0]->y ) + m_endp[0]->x;
1414  }

◆ type()

Type internal_poltrig::Linebase::type ( ) const
inline

Definition at line 1258 of file PolygonTriangulator.cxx.

1258 { return m_type; }

Member Data Documentation

◆ m_endp

Pointbase* internal_poltrig::Linebase::m_endp[2]
protected

Definition at line 1272 of file PolygonTriangulator.cxx.

◆ m_helper

unsigned int internal_poltrig::Linebase::m_helper
protected

Definition at line 1276 of file PolygonTriangulator.cxx.

◆ m_id

unsigned int internal_poltrig::Linebase::m_id
protected

Definition at line 1271 of file PolygonTriangulator.cxx.

◆ m_key

double internal_poltrig::Linebase::m_key
protected

Definition at line 1275 of file PolygonTriangulator.cxx.

◆ m_type

Type internal_poltrig::Linebase::m_type
protected

Definition at line 1274 of file PolygonTriangulator.cxx.


The documentation for this class was generated from the following file:
checkFileSG.line
line
Definition: checkFileSG.py:75
internal_poltrig::Pointbase::x
double x
Definition: PolygonTriangulator.cxx:1235
mc.diff
diff
Definition: mc.SFGenPy8_MuMu_DD.py:14
internal_poltrig::Linebase::m_id
unsigned int m_id
Definition: PolygonTriangulator.cxx:1271
internal_poltrig::Linebase::type
Type type() const
Definition: PolygonTriangulator.cxx:1258
x
#define x
internal_poltrig::INSERT
@ INSERT
Definition: PolygonTriangulator.cxx:112
internal_poltrig::Linebase::m_endp
Pointbase * m_endp[2]
Definition: PolygonTriangulator.cxx:1272
internal_poltrig::Linebase::m_type
Type m_type
Definition: PolygonTriangulator.cxx:1274
lumiFormat.i
int i
Definition: lumiFormat.py:85
DeMoUpdate.tmp
string tmp
Definition: DeMoUpdate.py:1167
internal_poltrig::UNKNOWN
@ UNKNOWN
Definition: PolygonTriangulator.cxx:112
internal_poltrig::Linebase::m_key
double m_key
Definition: PolygonTriangulator.cxx:1275
internal_poltrig::Linebase::m_helper
unsigned int m_helper
Definition: PolygonTriangulator.cxx:1276
internal_poltrig::Pointbase::y
double y
Definition: PolygonTriangulator.cxx:1235
y
#define y