Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TBRIK.h
Go to the documentation of this file.
1// @(#)root/g3d:$Id$
2// Author: Nenad Buncic 17/09/95
3
4/*************************************************************************
5 * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
6 * All rights reserved. *
7 * *
8 * For the licensing terms see $ROOTSYS/LICENSE. *
9 * For the list of contributors see $ROOTSYS/README/CREDITS. *
10 *************************************************************************/
11
12#ifndef ROOT_TBRIK
13#define ROOT_TBRIK
14
15
16////////////////////////////////////////////////////////////////////////////
17// //
18// TBRIK //
19// //
20// BRIK is a box. It has 3 parameters, the half length in x, y, and z //
21// //
22////////////////////////////////////////////////////////////////////////////
23
24#include "TShape.h"
25
26class TBRIK : public TShape {
27
28protected:
29 Float_t fDx; // half length in x
30 Float_t fDy; // half length in y
31 Float_t fDz; // half length in z
32
33 void SetPoints(Double_t * points) const override;
34public:
35 TBRIK();
36 TBRIK(const char *name, const char *title, const char *material, Float_t dx, Float_t dy, Float_t dz);
37 ~TBRIK() override;
38
39 Int_t DistancetoPrimitive(Int_t px, Int_t py) override;
40 const TBuffer3D &GetBuffer3D(Int_t reqSections) const override;
41 Float_t GetDx() const {return fDx;}
42 Float_t GetDy() const {return fDy;}
43 Float_t GetDz() const {return fDz;}
44 void Sizeof3D() const override;
45
46 ClassDefOverride(TBRIK,1) //TBRIK shape
47};
48
49#endif
float Float_t
Definition RtypesCore.h:57
#define ClassDefOverride(name, id)
Definition Rtypes.h:346
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t points
char name[80]
Definition TGX11.cxx:110
A box with faces perpendicular to the axes.
Definition TBRIK.h:26
Float_t fDz
Definition TBRIK.h:31
Float_t GetDy() const
Definition TBRIK.h:42
const TBuffer3D & GetBuffer3D(Int_t reqSections) const override
Get buffer 3D.
Definition TBRIK.cxx:105
void SetPoints(Double_t *points) const override
Create BRIK points.
Definition TBRIK.cxx:78
Float_t GetDz() const
Definition TBRIK.h:43
Float_t GetDx() const
Definition TBRIK.h:41
Float_t fDy
Definition TBRIK.h:30
~TBRIK() override
BRIK shape default destructor.
Definition TBRIK.cxx:59
Float_t fDx
Definition TBRIK.h:29
Int_t DistancetoPrimitive(Int_t px, Int_t py) override
Compute distance from point px,py to a BRIK.
Definition TBRIK.cxx:69
TBRIK()
BRIK shape default constructor.
Definition TBRIK.cxx:38
void Sizeof3D() const override
Return total X3D needed by TNode::ls (when called with option "x")
Definition TBRIK.cxx:95
Generic 3D primitive description class.
Definition TBuffer3D.h:18
This is the base class for all geometry shapes.
Definition TShape.h:35