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