112 x0 = x1 = buffer.
fPnts[0];
113 y0 = y1 = buffer.
fPnts[1];
114 z0 = z1 = buffer.
fPnts[2];
115 for (i=1; i<buffer.
NbPnts(); i++) {
116 i0 = 3*i; i1 = i0+1; i2 = i0+2;
117 x0 = buffer.
fPnts[i0] < x0 ? buffer.
fPnts[i0] : x0;
118 y0 = buffer.
fPnts[i1] < y0 ? buffer.
fPnts[i1] : y0;
119 z0 = buffer.
fPnts[i2] < z0 ? buffer.
fPnts[i2] : z0;
120 x1 = buffer.
fPnts[i0] > x1 ? buffer.
fPnts[i0] : x1;
121 y1 = buffer.
fPnts[i1] > y1 ? buffer.
fPnts[i1] : y1;
122 z1 = buffer.
fPnts[i2] > z1 ? buffer.
fPnts[i2] : z1;
124 view->
SetRange(x0,y0,z0,x1,y1,z1,2);
134 for (i=0; i<buffer.
NbPnts(); i++) {
135 for ( i0=0; i0<3; i0++ ) temp[i0] = buffer.
fPnts[3*i+i0];
137 fPad.PaintPolyMarker(1, &pndc[0], &pndc[1]);
140 for (i=0; i<buffer.
NbSegs(); i++) {
141 i0 = 3*buffer.
fSegs[3*i+1];
143 i0 = 3*buffer.
fSegs[3*i+2];
145 fPad.PaintLine3D(ptpoints_0, ptpoints_3);
int Int_t
Signed integer 4 bytes (int).
unsigned int UInt_t
Unsigned integer 4 bytes (unsigned int).
bool Bool_t
Boolean (0=false, 1=true) (bool).
double Double_t
Double 8 bytes.
Generic 3D primitive description class.
Bool_t SectionsValid(UInt_t mask) const
virtual void WCtoNDC(const Float_t *pw, Float_t *pn)=0
static TView * CreateView(Int_t system=1, const Double_t *rmin=nullptr, const Double_t *rmax=nullptr)
Create a concrete default 3-d view via the plug-in manager.
virtual Bool_t GetAutoRange()=0
virtual void SetAutoRange(Bool_t autorange=kTRUE)=0
virtual void SetRange(const Double_t *min, const Double_t *max)=0
Int_t AddObject(const TBuffer3D &buffer, Bool_t *addChildren=nullptr) override
Add an 3D object described by the buffer to the viewer.
Bool_t PreferLocalFrame() const override
Indicates if we prefer positions in local frame.
void EndScene() override
Close the scene on the viewer.
Bool_t fBuilding
is scene being built?
void CloseComposite() override
Bool_t OpenComposite(const TBuffer3D &buffer, Bool_t *addChildren=nullptr) override
Composite shapes not supported on this viewer currently - ignore.
TVirtualPad & fPad
the pad we paint into.
void BeginScene() override
Open a scene on the viewer.
void AddCompositeOp(UInt_t operation) override