25 TXTRU(
const char *
name,
const char *title,
const char *material,
88 void DumpPoints(
int npoints,
float *pointbuff)
const;
90 void DumpPolygons(
int npolygons,
int *polybuff,
int buffsize)
const;
#define ClassDefOverride(name, id)
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t points
Generic 3D primitive description class.
Mother of all ROOT objects.
This is the base class for all geometry shapes.
void CheckOrdering()
Determine ordering over which to process points, segments, surfaces so that they render correctly.
virtual void DefineVertex(Int_t pointNum, Float_t x, Float_t y)
Set vertex point ipt to (x,y) expand size of array if necessary.
virtual Float_t * GetY0() const
void SplitConcavePolygon(Bool_t split=kTRUE)
(Dis)Enable the splitting of concave polygon outlines into multiple convex polygons.
virtual Float_t * GetX0() const
virtual Float_t GetSectionX0(Int_t secNum) const
Return x0 shift of a z section.
virtual Float_t * GetYvtx() const
void DumpSegments(int nsegments, int *segbuff) const
Dump the segment info for visual inspection.
TXTRU & operator=(const TXTRU &rhs)
Deep assignment operator.
Int_t DistancetoPrimitive(Int_t px, Int_t py) override
Compute the distance from point px,py to a TXTRU by calculating the closest approach to each corner.
virtual Float_t GetOutlinePointX(Int_t pointNum) const
Return x coordinate of a vertex point.
virtual Int_t GetNxy() const
virtual Float_t GetSectionScale(Int_t secNum) const
Return scale factor for a z section.
virtual Float_t GetSectionY0(Int_t secNum) const
Return y0 shift of a z section.
virtual Float_t * GetXvtx() const
void DumpPolygons(int npolygons, int *polybuff, int buffsize) const
Dump the derived polygon info for visual inspection.
virtual Int_t GetNz() const
void Copy(TObject &xtru) const override
TXTRU Copy method.
void DumpPoints(int npoints, float *pointbuff) const
Dump the vertex points for visual inspection.
virtual void TruncateNxy(Int_t npts)
Truncate the vertex list.
void Print(Option_t *option="") const override
Dump the info of this TXTRU shape Option:
virtual Float_t GetSectionZ(Int_t secNum) const
Return z of a z section.
const TBuffer3D & GetBuffer3D(Int_t) const override
Get buffer 3d.
virtual void DefineSection(Int_t secNum, Float_t z, Float_t scale=1., Float_t x0=0., Float_t y0=0.)
Set z section iz information expand size of array if necessary.
virtual Float_t * GetScale() const
virtual Float_t * GetZ() const
void SetPoints(Double_t *points) const override
Create TXTRU points in buffer order as expected by other methods (counterclockwise xy,...
void Sizeof3D() const override
Return total X3D needed by TNode::ls (when called with option "x")
TXTRU()
TXTRU shape - default constructor.
~TXTRU() override
TXTRU destructor deallocates arrays.
virtual void TruncateNz(Int_t npts)
Truncate the z section list.
virtual Float_t GetOutlinePointY(Int_t pointNum) const
Return y coordinate of a vertex point.