113 x0 = x1 = buffer.
fPnts[0];
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;
125 view->
SetRange(x0,y0,z0,x1,y1,z1,2);
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];
virtual void Paint(Option_t *option="")=0
This method must be overridden if a class wants to paint itself.
virtual void WCtoNDC(const Float_t *pw, Float_t *pn)=0
virtual void SetAutoRange(Bool_t autorange=kTRUE)=0
virtual void SetRange(const Double_t *min, const Double_t *max)=0
virtual void AddCompositeOp(UInt_t operation)
virtual void PaintPolyMarker(Int_t n, Float_t *x, Float_t *y, Option_t *option="")=0
virtual void PaintLine3D(Float_t *p1, Float_t *p2)=0
virtual void BeginScene()
Open a scene on the viewer.
Provides 3D viewer interface (TVirtualViewer3D) support on a pad.
virtual Bool_t OpenComposite(const TBuffer3D &buffer, Bool_t *addChildren=0)
Composite shapes not supported on this viewer currently - ignore.
virtual void EndScene()
Close the scene on the viewer.
virtual TView * GetView() const =0
Bool_t SectionsValid(UInt_t mask) const
Generic 3D primitive description class.
virtual Bool_t GetAutoRange()=0
static const double x1[5]
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 CloseComposite()
Bool_t fBuilding
is scene being built?
TVirtualPad & fPad
the pad we paint into.
virtual Int_t AddObject(const TBuffer3D &buffer, Bool_t *addChildren=0)
Add an 3D object described by the buffer to the viewer.
virtual void SetView(TView *view=0)=0