|
JG ROOT Tools libraries
version 5.0 - august 2014
|
#include <RSolidTesselation.hh>
Public Member Functions | |
Constructors, affectation, destructor | |
| RSolidTesselation () | |
| virtual | ~RSolidTesselation () |
Tesselation data | |
| virtual void | ResetData () |
| virtual void | InitData ()=0 |
| virtual int | SubDivide ()=0 |
| virtual u_short | GetDivision () const |
| int | GetNpoints () const |
| int | GetNsegments () const |
| const RTesselationPoint & | GetPoint (int ip) const |
| const RTesselationSegment & | GetSegment (int is) const |
ROOT related functions | |
| TPolyMarker3D * | CreatePoints3D () const |
| TPolyLine3D * | CreateSegment3D (int is) const |
| TList * | CreateLines3D (const TAttLine latt=TAttLine(kRed+1, 2, 1)) const |
| ClassDef (RSolidTesselation, 0) | |
Protected Attributes | |
| u_short | subdiv |
| Number of subdivisions since initial creation. | |
| u_int | npts |
| Number of points. | |
| u_int | nseg |
| Number of segments. | |
| RTesselationPoint * | tab_pts |
| Array of points. | |
| RTesselationSegment * | tab_seg |
| Array of segments. | |
Private Member Functions | |
| GObjectV (RSolidTesselation) | |
Base class for representation of a volume by a set of points that are summits of base triangles.
This is an abstract class, and the derived class must provide an initialization function (InitData) that properly defines the points for a closed volume.
| RSolidTesselation::RSolidTesselation | ( | ) |
|
virtual |
Destructor.
References ResetData().
|
private |
Macro from GCpp library that defines the following functions:
|
virtual |
Function that removes all points from the object.
References npts, nseg, subdiv, tab_pts, and tab_seg.
Referenced by RSphereTesselation::InitData(), RSphereTesselation::SubDivide(), and ~RSolidTesselation().
|
pure virtual |
Function setting the initial points before division.
Implemented in RSphereTesselation.
|
pure virtual |
Function sub-dividing the current discretization of the volume. The function should return the new number of points.
Implemented in RSphereTesselation.
|
inlinevirtual |
Return the number of division iterations from the primary solid.
References subdiv.
Referenced by RHoughTransform3D::SetTesselation().
|
inline |
|
inline |
|
inline |
Return a point (by constant reference).
| ip | point index |
References tab_pts.
Referenced by RHoughTransform3D::CreatePoints3D(), RHoughTransform3D::CreateScorePoints3D(), RHoughTransform3D::CreateSegment3D(), RHoughTransform3D::GetPoint(), and RHoughTransform3D::SetTesselation().
|
inline |
Return a segment (by constant reference).
| is | segment index |
References tab_seg.
Referenced by RHoughTransform3D::CreateSegment3D(), RHoughTransform3D::GetSegment(), and RHoughTransform3D::SetTesselation().
| TPolyMarker3D * RSolidTesselation::CreatePoints3D | ( | ) | const |
Create a TPolyMarker3D object (ROOT) from points.
References npts, RTesselationPoint::position, and tab_pts.
| TPolyLine3D * RSolidTesselation::CreateSegment3D | ( | int | is | ) | const |
Create a TPolyLine3D object (ROOT) from a segment.
| is | segment number |
References RTesselationSegment::GetP0(), RTesselationSegment::GetP1(), nseg, tab_pts, and tab_seg.
Referenced by CreateLines3D().
| TList * RSolidTesselation::CreateLines3D | ( | const TAttLine | latt = TAttLine(kRed+1,2,1 ) | ) | const |
Create a list of TPolyLine3D objects (ROOT) from segments.
| latt | line attributes set to all segments |
References CreateSegment3D(), and nseg.
| RSolidTesselation::ClassDef | ( | RSolidTesselation | , |
| 0 | |||
| ) |
For ROOT dictionary.