96 TAttLine::operator=(ts);
97 TAttFill::operator=(ts);
98 TAtt3D::operator=(ts);
122 if (!(numPoints && view))
return dist;
127 for (
Int_t i = 0;
i < numPoints;
i++) {
130 x1 =
gPad->XtoAbsPixel(xndc[0]);
131 y1 =
gPad->YtoAbsPixel(xndc[1]);
133 if (dpoint2 < dist) dist = (
Int_t)dpoint2;
195 for (
UInt_t j=0; j<NbPnts; j++) {
197 dlocal[1] =
points[3*j+1];
198 dlocal[2] =
points[3*j+2];
199 gGeometry->Local2Master(&dlocal[0],&dmaster[0]);
201 points[3*j+1] = dmaster[1];
202 points[3*j+2] = dmaster[2];
244 if (basicColor < 0) basicColor = 0;
255 Warning(
"GetBuffer3D",
"this must be implemented for shapes in a TNode::Paint hierarchy. This will become a pure virtual fn eventually.");
Option_t Option_t SetLineColor
Option_t Option_t TPoint TPoint const char x1
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t points
Option_t Option_t TPoint TPoint const char y1
R__EXTERN TGeometry * gGeometry
virtual void Streamer(TBuffer &)
virtual void Streamer(TBuffer &)
TAttFill()
AttFill default constructor.
virtual void Streamer(TBuffer &)
virtual Color_t GetLineColor() const
Return the line color.
TAttLine()
AttLine default constructor.
Generic 3D primitive description class.
void SetLocalMasterIdentity()
Set kRaw tessellation section of buffer with supplied sizes.
Bool_t SectionsValid(UInt_t mask) const
void ClearSectionsValid()
Clear any sections marked valid.
void SetSectionsValid(UInt_t mask)
Buffer base class used for serializing objects.
virtual Version_t ReadVersion(UInt_t *start=nullptr, UInt_t *bcnt=nullptr, const TClass *cl=nullptr)=0
virtual Int_t CheckByteCount(UInt_t startpos, UInt_t bcnt, const TClass *clss)=0
virtual Int_t ReadClassBuffer(const TClass *cl, void *pointer, const TClass *onfile_class=nullptr)=0
virtual Int_t WriteClassBuffer(const TClass *cl, void *pointer)=0
void Streamer(TBuffer &) override
Stream an object of class TObject.
TNamed & operator=(const TNamed &rhs)
TNamed assignment operator.
void AbstractMethod(const char *method) const
Use this method to implement an "abstract" method that you don't want to leave purely abstract.
virtual void Warning(const char *method, const char *msgfmt,...) const
Issue warning message.
This is the base class for all geometry shapes.
TShape & operator=(const TShape &)
assignment operator
virtual void SetPoints(Double_t *points) const
Set points.
void Streamer(TBuffer &) override
Stream an object of class TShape.
void Paint(Option_t *option="") override
This method is used only when a shape is painted outside a TNode.
Int_t GetBasicColor() const
Get basic color.
Int_t ShapeDistancetoPrimitive(Int_t numPoints, Int_t px, Int_t py)
Distance to primitive.
virtual const TBuffer3D & GetBuffer3D(Int_t reqSections) const
Stub to avoid forcing implementation at this stage.
TShape()
Shape default constructor.
~TShape() override
Shape default destructor.
virtual void FillBuffer3D(TBuffer3D &buffer, Int_t reqSections) const
We have to set kRawSize (unless already done) to allocate buffer space before kRaw can be filled.
TClass * IsA() const override
void TransformPoints(Double_t *points, UInt_t NbPnts) const
Transform points (LocalToMaster)
virtual void WCtoNDC(const Float_t *pw, Float_t *pn)=0
Abstract 3D shapes viewer.
virtual Int_t AddObject(const TBuffer3D &buffer, Bool_t *addChildren=nullptr)=0
Double_t Sqrt(Double_t x)
Returns the square root of x.
TMatrixT< Element > & Add(TMatrixT< Element > &target, Element scalar, const TMatrixT< Element > &source)
Modify addition: target += scalar * source.