Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TNodeDiv.h
Go to the documentation of this file.
1// @(#)root/g3d:$Id$
2// Author: Rene Brun 14/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
13//////////////////////////////////////////////////////////////////////////
14// //
15// TNodeDiv //
16// //
17// Description of parameters to divide a 3-D geometry object //
18// //
19// //
20//////////////////////////////////////////////////////////////////////////
21
22#ifndef ROOT_TNodeDiv
23#define ROOT_TNodeDiv
24
25#include "TNode.h"
26
27
28class TNodeDiv : public TNode {
29protected:
30 Int_t fNdiv; //Number of divisions
31 Int_t fAxis; //Axis number where object is divided
32
33public:
34 TNodeDiv();
35 TNodeDiv(const char *name, const char *title, const char *shapename, Int_t ndiv, Int_t axis, Option_t *option="");
36 TNodeDiv(const char *name, const char *title, TShape *shape, Int_t ndiv, Int_t axis, Option_t *option="");
37 ~TNodeDiv() override;
38 void Draw(Option_t *option="") override;
39 void Paint(Option_t *option="") override;
40
41 ClassDefOverride(TNodeDiv,1) //Description of parameters to divide a 3-D geometry object
42};
43
44#endif
const char Option_t
Definition RtypesCore.h:66
#define ClassDefOverride(name, id)
Definition Rtypes.h:341
Option_t Option_t option
char name[80]
Definition TGX11.cxx:110
Description of parameters to divide a 3-D geometry object.
Definition TNodeDiv.h:28
void Paint(Option_t *option="") override
Paint Referenced node with current parameters.
Definition TNodeDiv.cxx:83
TNodeDiv()
NodeDiv default constructor.
Definition TNodeDiv.cxx:24
Int_t fAxis
Definition TNodeDiv.h:31
~TNodeDiv() override
NodeDiv default destructor.
Definition TNodeDiv.cxx:69
Int_t fNdiv
Definition TNodeDiv.h:30
TNode description.
Definition TNode.h:33
This is the base class for all geometry shapes.
Definition TShape.h:35
th1 Draw()