95 TAttLine::operator=(ts);
96 TAttFill::operator=(ts);
97 TAtt3D::operator=(ts);
121 if (!(numPoints && view))
return dist;
126 for (
Int_t i = 0; i < numPoints; i++) {
129 x1 =
gPad->XtoAbsPixel(xndc[0]);
130 y1 =
gPad->YtoAbsPixel(xndc[1]);
131 dpoint2= (px-x1)*(px-x1) + (py-y1)*(py-y1);
132 if (dpoint2 < dist) dist = (
Int_t)dpoint2;
194 for (
UInt_t j=0; j<NbPnts; j++) {
196 dlocal[1] =
points[3*j+1];
197 dlocal[2] =
points[3*j+2];
198 gGeometry->Local2Master(&dlocal[0],&dmaster[0]);
200 points[3*j+1] = dmaster[1];
201 points[3*j+2] = dmaster[2];
243 if (basicColor < 0) basicColor = 0;
254 Warning(
"GetBuffer3D",
"this must be implemented for shapes in a TNode::Paint hierarchy. This will become a pure virtual fn eventually.");
int Int_t
Signed integer 4 bytes (int).
short Version_t
Class version identifier (short).
unsigned int UInt_t
Unsigned integer 4 bytes (unsigned int).
double Double_t
Double 8 bytes.
short Color_t
Color number (short).
float Float_t
Float 4 bytes (float).
const char Option_t
Option string (const char).
externTGeometry * gGeometry
virtual void Streamer(TBuffer &)
virtual void Streamer(TBuffer &)
virtual void Streamer(TBuffer &)
virtual Color_t GetLineColor() const
Return the line color.
virtual void SetLineColor(Color_t lcolor)
Set the line color.
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
Call this function within a function that you don't want to define as purely virtual,...
virtual void Warning(const char *method, const char *msgfmt,...) const
Issue warning message.
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.