Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TNodeDiv.cxx
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#include "TNodeDiv.h"
13
14
15/** \class TNodeDiv
16\ingroup g3d
17Description of parameters to divide a 3-D geometry object.
18*/
19
20////////////////////////////////////////////////////////////////////////////////
21/// NodeDiv default constructor.
22
24{
25 fNdiv = 0;
26 fAxis = 0;
27}
28
29////////////////////////////////////////////////////////////////////////////////
30/// NodeDiv normal constructor.
31///
32/// - name is the name of the node
33/// - title is title
34/// - shapename is the name of the referenced shape
35/// - x,y,z are the offsets of the volume with respect to his mother
36/// - matrixname is the name of the rotation matrix
37///
38/// This new node is added into the list of sons of the current node
39
40TNodeDiv::TNodeDiv(const char *name, const char *title, const char *shapename, Int_t ndiv, Int_t axis, Option_t *option)
41 :TNode(name, title, shapename, 0, 0, 0, "", option)
42{
43 fNdiv = ndiv;
44 fAxis = axis;
45}
46
47////////////////////////////////////////////////////////////////////////////////
48/// NodeDiv normal constructor.
49///
50/// - name is the name of the node
51/// - title is title
52/// - shape is the pointer to the shape definition
53/// - ndiv number of divisions
54/// - axis number of the axis for the division
55///
56/// This new node is added into the list of sons of the current node
57
58TNodeDiv::TNodeDiv(const char *name, const char *title, TShape *shape, Int_t ndiv, Int_t axis, Option_t *option)
59 :TNode(name, title, shape, 0, 0, 0, nullptr, option)
60{
61 fNdiv = ndiv;
62 fAxis = axis;
63}
64
65////////////////////////////////////////////////////////////////////////////////
66/// NodeDiv default destructor.
67
71
72////////////////////////////////////////////////////////////////////////////////
73/// Draw Referenced node with current parameters.
74
76{
77}
78
79////////////////////////////////////////////////////////////////////////////////
80/// Paint Referenced node with current parameters.
81
83{
84}
const char Option_t
Option string (const char)
Definition RtypesCore.h:80
Option_t Option_t option
char name[80]
Definition TGX11.cxx:110
void Paint(Option_t *option="") override
Paint Referenced node with current parameters.
Definition TNodeDiv.cxx:82
TNodeDiv()
NodeDiv default constructor.
Definition TNodeDiv.cxx:23
Int_t fAxis
Definition TNodeDiv.h:31
~TNodeDiv() override
NodeDiv default destructor.
Definition TNodeDiv.cxx:68
Int_t fNdiv
Definition TNodeDiv.h:30
void Draw(Option_t *option="") override
Draw Referenced node with current parameters.
Definition TNodeDiv.cxx:75
TNode description.
Definition TNode.h:33
This is the base class for all geometry shapes.
Definition TShape.h:35