JG ROOT Tools libraries  version 5.0 - august 2014
RTesselationSegment Class Reference

#include <RSolidTesselation.hh>

Public Member Functions

Constructors, affectation, destructor
 RTesselationSegment ()
 
 RTesselationSegment (const RTesselationSegment &original)
 
RTesselationSegmentoperator= (const RTesselationSegment &original)
 
virtual ~RTesselationSegment ()
 
Segment data
void SetPindex (int i0, int i1)
 
int GetPindex (int ip) const
 
int GetP0 () const
 
int GetP1 () const
 
ROOT related functions
 ClassDef (RTesselationSegment, 0)
 

Protected Attributes

int pt_index [2]
 Indexes of segment points.
 

Private Member Functions

 GObject (RTesselationSegment)
 

Friends

class RSolidTesselation
 

Detailed Description

This class defines the information associated to a point in the tesselation of solids:

  • the point position
  • the angles theta and phi (for convenience)
  • the indexes of related neighbours

Constructor & Destructor Documentation

RTesselationSegment::RTesselationSegment ( )
inline

Default constructor.

References pt_index.

RTesselationSegment::RTesselationSegment ( const RTesselationSegment original)
inline

Copy constructor.

Parameters
originalobject to copy

References GetP0(), GetP1(), and pt_index.

RTesselationSegment::~RTesselationSegment ( )
inlinevirtual

Destructor.

Member Function Documentation

RTesselationSegment::GObject ( RTesselationSegment  )
private

Macro from GCpp library that defines the following functions:

  • ClassName(): return the real class name of the object
  • StaticClassName(): return the used class name of the object (that may be a base class of the real object).
  • IsInstanceOf<T>(): return true if the current object is an instance of the template class name argument
  • Clone(): return an allocated copy of the object.
RTesselationSegment & RTesselationSegment::operator= ( const RTesselationSegment original)
inline

Affectation operator.

Parameters
originalobject to copy

References GetP0(), GetP1(), and pt_index.

void RTesselationSegment::SetPindex ( int  i0,
int  i1 
)
inline

Set the indexes of the segment points.

Parameters
i0first point index
i1second point index

References pt_index.

Referenced by RSphereTesselation::InitData(), and RSphereTesselation::SubDivide().

int RTesselationSegment::GetPindex ( int  ip) const
inline

Return the index of one of the segment points.

Parameters
ippoint number (0 or 1)

References pt_index.

int RTesselationSegment::GetP0 ( ) const
inline
int RTesselationSegment::GetP1 ( ) const
inline
RTesselationSegment::ClassDef ( RTesselationSegment  ,
 
)

For ROOT dictionary.


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