114 y0 = y1 = buffer.
fPnts[1];
115 z0 = z1 = buffer.
fPnts[2];
116 for (i=1; i<buffer.
NbPnts(); i++) {
117 i0 = 3*i; i1 = i0+1; i2 = i0+2;
118 x0 = buffer.
fPnts[i0] < x0 ? buffer.
fPnts[i0] : x0;
119 y0 = buffer.
fPnts[i1] < y0 ? buffer.
fPnts[i1] : y0;
120 z0 = buffer.
fPnts[i2] < z0 ? buffer.
fPnts[i2] : z0;
122 y1 = buffer.
fPnts[i1] > y1 ? buffer.
fPnts[i1] : y1;
123 z1 = buffer.
fPnts[i2] > z1 ? buffer.
fPnts[i2] : z1;
135 for (i=0; i<buffer.
NbPnts(); i++) {
136 for ( i0=0; i0<3; i0++ ) temp[i0] = buffer.
fPnts[3*i+i0];
141 for (i=0; i<buffer.
NbSegs(); i++) {
142 i0 = 3*buffer.
fSegs[3*i+1];
144 i0 = 3*buffer.
fSegs[3*i+2];
static const double x1[5]
Generic 3D primitive description class.
Bool_t SectionsValid(UInt_t mask) const
virtual void WCtoNDC(const Float_t *pw, Float_t *pn)=0
virtual Bool_t GetAutoRange()=0
virtual void SetAutoRange(Bool_t autorange=kTRUE)=0
static TView * CreateView(Int_t system=1, const Double_t *rmin=0, const Double_t *rmax=0)
Create a concrete default 3-d view via the plug-in manager.
virtual void SetRange(const Double_t *min, const Double_t *max)=0
Provides 3D viewer interface (TVirtualViewer3D) support on a pad.
virtual Int_t AddObject(const TBuffer3D &buffer, Bool_t *addChildren=nullptr)
Add an 3D object described by the buffer to the viewer.
virtual Bool_t OpenComposite(const TBuffer3D &buffer, Bool_t *addChildren=nullptr)
Composite shapes not supported on this viewer currently - ignore.
virtual void AddCompositeOp(UInt_t operation)
virtual void BeginScene()
Open a scene on the viewer.
Bool_t fBuilding
is scene being built?
virtual void CloseComposite()
TVirtualPad & fPad
the pad we paint into.
virtual Bool_t PreferLocalFrame() const
Indicates if we prefer positions in local frame.
virtual void EndScene()
Close the scene on the viewer.
virtual void PaintLine3D(Float_t *p1, Float_t *p2)=0
virtual void PaintPolyMarker(Int_t n, Float_t *x, Float_t *y, Option_t *option="")=0
virtual void SetView(TView *view=0)=0
void Paint(Option_t *option="") override=0
This method must be overridden if a class wants to paint itself.
virtual TView * GetView() const =0