00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #include "TTablePadView3D.h"
00022 #include "TVirtualPad.h"
00023
00024
00025
00026
00027
00028 TTablePadView3D::~TTablePadView3D()
00029 {
00030
00031
00032 if (fParent) {
00033
00034 SetPad();
00035 }
00036 }
00037
00038
00039
00040
00041
00042 void TTablePadView3D::GetRange(Double_t min[3], Double_t max[3]) const
00043 {
00044
00045 memcpy(min,fViewBoxMin,sizeof(fViewBoxMin));
00046 memcpy(max,fViewBoxMax,sizeof(fViewBoxMax));
00047 }
00048
00049 void TTablePadView3D::SetRange(Double_t min[3], Double_t max[3])
00050 {
00051
00052 memcpy(fViewBoxMin,min,sizeof(fViewBoxMin));
00053 memcpy(fViewBoxMax,max,sizeof(fViewBoxMax));
00054 }
00055
00056
00057 void TTablePadView3D::GetShift(Double_t main_shift[3], Double_t extra_shift[3]) const
00058 {
00059
00060 memcpy(main_shift,fTranslate,sizeof(fTranslate));
00061 memcpy(extra_shift,fExtraTranslate,sizeof(fExtraTranslate));
00062 }
00063
00064
00065 void TTablePadView3D::SetShift(Double_t main_shift[3], Double_t extra_shift[3])
00066 {
00067
00068 memcpy(fTranslate,main_shift,sizeof(fTranslate));
00069 memcpy(fExtraTranslate,extra_shift,sizeof(fExtraTranslate));
00070 }
00071
00072
00073 void TTablePadView3D::GetAngles(Double_t main_angles[3], Double_t extra_angles[3]) const
00074 {
00075
00076 memcpy(main_angles,fAngles,sizeof(fAngles));
00077 memcpy(extra_angles,fExtraAngles,sizeof(fExtraAngles));
00078 }
00079
00080
00081 void TTablePadView3D::SetAngles(Double_t main_angles[3], Double_t extra_angles[3])
00082 {
00083
00084 memcpy(fAngles,main_angles,sizeof(fAngles));
00085 memcpy(fExtraAngles,extra_angles,sizeof(fExtraAngles));
00086 }
00087
00088
00089 void TTablePadView3D::GetAnglesFactors(Double_t factors[3]) const
00090 {
00091
00092 memcpy(factors,fAnglFactor,sizeof(fAnglFactor));
00093 }
00094
00095 void TTablePadView3D::SetAnglesFactors(Double_t factors[3])
00096 {
00097
00098 memcpy(fAnglFactor,factors,sizeof(fAnglFactor));
00099 }
00100
00101
00102 void TTablePadView3D::SetScale(Float_t scale)
00103 {
00104
00105 fScale = scale;
00106 }