StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
TTablePadView3D.cxx
1 // @(#)root/table:$Id$
2 // Author: Valery Fine(fine@vxcern.cern.ch) 30/05/97
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 
13 // //
14 // TTablePadView3D //
15 // //
16 // TTablePadView3D is a generic 3D viewer. //
17 // For a concrete viewer see TGLViewer. //
18 // //
20 
21 #include "TTablePadView3D.h"
22 #include "TVirtualPad.h"
23 
24 
25 // ClassImp(TTablePadView3D); //3-D View of TPad
26 
29 
31 {
32  if (fParent) {
34  SetPad();
35  }
36 }
37 
38 
39 // Getter's / Setter's methods for the data-members
40 
43 
44 void TTablePadView3D::GetRange(Double_t min[3], Double_t max[3]) const
45 {
46  memcpy(min,fViewBoxMin,sizeof(fViewBoxMin));
47  memcpy(max,fViewBoxMax,sizeof(fViewBoxMax));
48 }
51 
52 void TTablePadView3D::SetRange(Double_t min[3], Double_t max[3])
53 {
54  memcpy(fViewBoxMin,min,sizeof(fViewBoxMin));
55  memcpy(fViewBoxMax,max,sizeof(fViewBoxMax));
56 }
57 
60 
61 void TTablePadView3D::GetShift(Double_t main_shift[3], Double_t extra_shift[3]) const
62 {
63  memcpy(main_shift,fTranslate,sizeof(fTranslate));
64  memcpy(extra_shift,fExtraTranslate,sizeof(fExtraTranslate));
65 }
66 
69 
70 void TTablePadView3D::SetShift(Double_t main_shift[3], Double_t extra_shift[3])
71 {
72  memcpy(fTranslate,main_shift,sizeof(fTranslate));
73  memcpy(fExtraTranslate,extra_shift,sizeof(fExtraTranslate));
74 }
75 
78 
79 void TTablePadView3D::GetAngles(Double_t main_angles[3], Double_t extra_angles[3]) const
80 {
81  memcpy(main_angles,fAngles,sizeof(fAngles));
82  memcpy(extra_angles,fExtraAngles,sizeof(fExtraAngles));
83 }
84 
87 
88 void TTablePadView3D::SetAngles(Double_t main_angles[3], Double_t extra_angles[3])
89 {
90  memcpy(fAngles,main_angles,sizeof(fAngles));
91  memcpy(fExtraAngles,extra_angles,sizeof(fExtraAngles));
92 }
93 
96 
97 void TTablePadView3D::GetAnglesFactors(Double_t factors[3]) const
98 {
99  memcpy(factors,fAnglFactor,sizeof(fAnglFactor));
100 }
103 
104 void TTablePadView3D::SetAnglesFactors(Double_t factors[3])
105 {
106  memcpy(fAnglFactor,factors,sizeof(fAnglFactor));
107 }
108 
111 
112 void TTablePadView3D::SetScale(Float_t scale)
113 {
114  fScale = scale;
115 }
virtual void SetAnglesFactors(Double_t factors[3])
set view angles factors
virtual void SetRange(Double_t min[3], Double_t max[3])
set view range
virtual void GetRange(Double_t min[3], Double_t max[3]) const
get view range
virtual void SetScale(Float_t scale)
set view scale
virtual ~TTablePadView3D()
Delete 3D viewer.
virtual void SetAngles(Double_t main_angles[3], Double_t extra_angles[3])
set view angles
virtual void SetShift(Double_t main_shift[3], Double_t extra_shift[3])
set shift parameters
virtual void GetAnglesFactors(Double_t factors[3]) const
get view angles factors
virtual void GetShift(Double_t main_shift[3], Double_t extra_shift[3]) const
get shift parameters
virtual void GetAngles(Double_t main_angles[3], Double_t extra_angles[3]) const
get view angles