|
JG ROOT Tools libraries
version 5.0 - august 2014
|
#include <RSolidTesselation.hh>
Public Member Functions | |
Constructors, affectation, destructor | |
| RTesselationPoint () | |
| RTesselationPoint (const RTesselationPoint &original) | |
| RTesselationPoint & | operator= (const RTesselationPoint &original) |
| virtual | ~RTesselationPoint () |
Data setting | |
| virtual void | ResetData () |
| virtual void | CopyData (const RTesselationPoint &original) |
| void | SetPosition (const TVector3 &p) |
| void | SetNeighboursNum (int n) |
| void | SetNeighbour (int i, int ip) |
Points information | |
| const TVector3 & | GetPosition () const |
| TVector3 & | GetPosition () |
| double | GetX () const |
| double | GetY () const |
| double | GetZ () const |
| double | GetTheta (bool deg=false) const |
| double | GetPhi (bool deg=false) const |
| int | GetNeighbourNum () const |
| int | GetNeighbourIndex (int i) const |
| const int * | GetNeighbourTab () const |
| int * | GetNeighbourTab () |
ROOT related functions | |
| ClassDef (RTesselationPoint, 0) | |
Protected Attributes | |
| TVector3 | position |
| Position of the point. | |
| int | neighbour_num |
| Number of neighbouring points. | |
| int * | neighbour_tab |
| Array of index of neighbouring points. | |
Private Member Functions | |
| GObject (RTesselationPoint) | |
Friends | |
| class | RSolidTesselation |
This class defines the information associated to a point in the tesselation of solids:
| RTesselationPoint::RTesselationPoint | ( | ) |
Default constructor.
| RTesselationPoint::RTesselationPoint | ( | const RTesselationPoint & | original | ) |
Copy constructor.
| original | object to copy |
References CopyData(), neighbour_num, and neighbour_tab.
|
virtual |
Destructor.
References ResetData().
|
private |
Macro from GCpp library that defines the following functions:
| RTesselationPoint & RTesselationPoint::operator= | ( | const RTesselationPoint & | original | ) |
|
virtual |
Function that destroys data associated to the point.
References neighbour_num, and neighbour_tab.
Referenced by CopyData(), SetNeighboursNum(), and ~RTesselationPoint().
|
virtual |
Function that copies the data from a point.
| original | object to copy |
References GetNeighbourNum(), GetNeighbourTab(), GetPosition(), neighbour_num, neighbour_tab, position, and ResetData().
Referenced by operator=(), and RTesselationPoint().
|
inline |
Set the point position.
| p | position vector |
References position.
Referenced by RSphereTesselation::InitData(), and RSphereTesselation::SubDivide().
| void RTesselationPoint::SetNeighboursNum | ( | int | n | ) |
Set the number of neighbours (previous data are resetted if defined).
| n | number of neighbours |
References neighbour_num, neighbour_tab, and ResetData().
Referenced by RSphereTesselation::InitData(), and RSphereTesselation::SubDivide().
|
inline |
Set the index of a neighbouring point.
| i | neighbour number |
| ip | neighbour point index |
References neighbour_tab.
Referenced by RSphereTesselation::InitData(), and RSphereTesselation::SubDivide().
|
inline |
Return the point position.
References position.
Referenced by CopyData(), RSphereTesselation::InitData(), and RSphereTesselation::SubDivide().
|
inline |
Return the point position.
References position.
|
inline |
Return the point X coordinate.
References position.
Referenced by RHoughTransform3D::CreatePoints3D(), RHoughTransform3D::CreateScorePoints3D(), RHoughTransform3D::CreateSegment3D(), and RHoughTransform3D::SetTesselation().
|
inline |
Return the point Y coordinate.
References position.
Referenced by RHoughTransform3D::CreatePoints3D(), RHoughTransform3D::CreateScorePoints3D(), RHoughTransform3D::CreateSegment3D(), and RHoughTransform3D::SetTesselation().
|
inline |
Return the point Z coordinate.
References position.
Referenced by RHoughTransform3D::CreatePoints3D(), RHoughTransform3D::CreateScorePoints3D(), RHoughTransform3D::CreateSegment3D(), and RHoughTransform3D::SetTesselation().
| double RTesselationPoint::GetTheta | ( | bool | deg = false | ) | const |
Return the Theta angle of the point.
| deg | whether the angle is return in degrees |
References position.
| double RTesselationPoint::GetPhi | ( | bool | deg = false | ) | const |
Return the Phi angle of the point.
| deg | whether the angle is return in degrees |
References position.
|
inline |
|
inline |
|
inline |
|
inline |
Return the pointer of neighbours array.
References neighbour_tab.
| RTesselationPoint::ClassDef | ( | RTesselationPoint | , |
| 0 | |||
| ) |
For ROOT dictionary.