84 fVisibility(ts.fVisibility),
85 fMaterial(ts.fMaterial)
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]);
132 dpoint2= (px-
x1)*(px-
x1) + (py-
y1)*(py-
y1);
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];
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
Use this attribute class when an object should have 3D capabilities.
virtual void Streamer(TBuffer &)
Fill Area Attributes class.
virtual void Streamer(TBuffer &)
virtual void Streamer(TBuffer &)
virtual Color_t GetLineColor() const
Return 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
virtual Int_t GetSize() const
Return the capacity of the collection, i.e.
virtual void Local2Master(Double_t *local, Double_t *master)
Convert one point from local system to master reference system.
TMaterial * GetMaterial(const char *name) const
Return pointer to Material with name.
THashList * GetListOfShapes() const
TObject * Remove(TObject *obj) override
Remove object from the list.
void Add(TObject *obj) override
The TNamed class is the base class for all named ROOT classes.
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.