ROOT logo
// @(#)root/table:$Id: TTablePadView3D.cxx 20882 2007-11-19 11:31:26Z rdm $
// Author: Valery Fine(fine@vxcern.cern.ch)   30/05/97

/*************************************************************************
 * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers.               *
 * All rights reserved.                                                  *
 *                                                                       *
 * For the licensing terms see $ROOTSYS/LICENSE.                         *
 * For the list of contributors see $ROOTSYS/README/CREDITS.             *
 *************************************************************************/

//////////////////////////////////////////////////////////////////////////
//                                                                      //
// TTablePadView3D                                                      //
//                                                                      //
// TTablePadView3D is a generic 3D viewer.                              //
// For a concrete viewer see TGLViewer.                                 //
//                                                                      //
//////////////////////////////////////////////////////////////////////////

#include "TTablePadView3D.h"
#include "TVirtualPad.h"


//   ClassImp(TTablePadView3D)   //3-D View of TPad

//______________________________________________________________________________
TTablePadView3D::~TTablePadView3D()
{
   // Delete 3D viewer.

   if (fParent) {
      ///  fParent->ResetView3D();
      SetPad();
   }
}


//  Getter's / Setter's methods for the data-members

//______________________________________________________________________________
void  TTablePadView3D::GetRange(Double_t min[3], Double_t max[3]) const
{
   //get view range
   memcpy(min,fViewBoxMin,sizeof(fViewBoxMin));
   memcpy(max,fViewBoxMax,sizeof(fViewBoxMax));
}
//______________________________________________________________________________
void  TTablePadView3D::SetRange(Double_t min[3], Double_t max[3])
{
   //set view range
   memcpy(fViewBoxMin,min,sizeof(fViewBoxMin));
   memcpy(fViewBoxMax,max,sizeof(fViewBoxMax));
}

//______________________________________________________________________________
void  TTablePadView3D::GetShift(Double_t main_shift[3], Double_t extra_shift[3]) const
{
   //get shift parameters
   memcpy(main_shift,fTranslate,sizeof(fTranslate));
   memcpy(extra_shift,fExtraTranslate,sizeof(fExtraTranslate));
}

//______________________________________________________________________________
void  TTablePadView3D::SetShift(Double_t main_shift[3], Double_t extra_shift[3])
{
   //set shift parameters
   memcpy(fTranslate,main_shift,sizeof(fTranslate));
   memcpy(fExtraTranslate,extra_shift,sizeof(fExtraTranslate));
}

//______________________________________________________________________________
void  TTablePadView3D::GetAngles(Double_t main_angles[3], Double_t extra_angles[3]) const
{
  //get view angles
   memcpy(main_angles,fAngles,sizeof(fAngles));
   memcpy(extra_angles,fExtraAngles,sizeof(fExtraAngles));
}

//______________________________________________________________________________
void  TTablePadView3D::SetAngles(Double_t main_angles[3], Double_t extra_angles[3])
{
  //set view angles
   memcpy(fAngles,main_angles,sizeof(fAngles));
   memcpy(fExtraAngles,extra_angles,sizeof(fExtraAngles));
}

//______________________________________________________________________________
void  TTablePadView3D::GetAnglesFactors(Double_t factors[3]) const
{
  //get view angles factors
   memcpy(factors,fAnglFactor,sizeof(fAnglFactor));
}
//______________________________________________________________________________
void  TTablePadView3D::SetAnglesFactors(Double_t factors[3])
{
  //set view angles factors
   memcpy(fAnglFactor,factors,sizeof(fAnglFactor));
}

//______________________________________________________________________________
void  TTablePadView3D::SetScale(Float_t scale)
{ 
   //set view scale
   fScale = scale;
}
 TTablePadView3D.cxx:1
 TTablePadView3D.cxx:2
 TTablePadView3D.cxx:3
 TTablePadView3D.cxx:4
 TTablePadView3D.cxx:5
 TTablePadView3D.cxx:6
 TTablePadView3D.cxx:7
 TTablePadView3D.cxx:8
 TTablePadView3D.cxx:9
 TTablePadView3D.cxx:10
 TTablePadView3D.cxx:11
 TTablePadView3D.cxx:12
 TTablePadView3D.cxx:13
 TTablePadView3D.cxx:14
 TTablePadView3D.cxx:15
 TTablePadView3D.cxx:16
 TTablePadView3D.cxx:17
 TTablePadView3D.cxx:18
 TTablePadView3D.cxx:19
 TTablePadView3D.cxx:20
 TTablePadView3D.cxx:21
 TTablePadView3D.cxx:22
 TTablePadView3D.cxx:23
 TTablePadView3D.cxx:24
 TTablePadView3D.cxx:25
 TTablePadView3D.cxx:26
 TTablePadView3D.cxx:27
 TTablePadView3D.cxx:28
 TTablePadView3D.cxx:29
 TTablePadView3D.cxx:30
 TTablePadView3D.cxx:31
 TTablePadView3D.cxx:32
 TTablePadView3D.cxx:33
 TTablePadView3D.cxx:34
 TTablePadView3D.cxx:35
 TTablePadView3D.cxx:36
 TTablePadView3D.cxx:37
 TTablePadView3D.cxx:38
 TTablePadView3D.cxx:39
 TTablePadView3D.cxx:40
 TTablePadView3D.cxx:41
 TTablePadView3D.cxx:42
 TTablePadView3D.cxx:43
 TTablePadView3D.cxx:44
 TTablePadView3D.cxx:45
 TTablePadView3D.cxx:46
 TTablePadView3D.cxx:47
 TTablePadView3D.cxx:48
 TTablePadView3D.cxx:49
 TTablePadView3D.cxx:50
 TTablePadView3D.cxx:51
 TTablePadView3D.cxx:52
 TTablePadView3D.cxx:53
 TTablePadView3D.cxx:54
 TTablePadView3D.cxx:55
 TTablePadView3D.cxx:56
 TTablePadView3D.cxx:57
 TTablePadView3D.cxx:58
 TTablePadView3D.cxx:59
 TTablePadView3D.cxx:60
 TTablePadView3D.cxx:61
 TTablePadView3D.cxx:62
 TTablePadView3D.cxx:63
 TTablePadView3D.cxx:64
 TTablePadView3D.cxx:65
 TTablePadView3D.cxx:66
 TTablePadView3D.cxx:67
 TTablePadView3D.cxx:68
 TTablePadView3D.cxx:69
 TTablePadView3D.cxx:70
 TTablePadView3D.cxx:71
 TTablePadView3D.cxx:72
 TTablePadView3D.cxx:73
 TTablePadView3D.cxx:74
 TTablePadView3D.cxx:75
 TTablePadView3D.cxx:76
 TTablePadView3D.cxx:77
 TTablePadView3D.cxx:78
 TTablePadView3D.cxx:79
 TTablePadView3D.cxx:80
 TTablePadView3D.cxx:81
 TTablePadView3D.cxx:82
 TTablePadView3D.cxx:83
 TTablePadView3D.cxx:84
 TTablePadView3D.cxx:85
 TTablePadView3D.cxx:86
 TTablePadView3D.cxx:87
 TTablePadView3D.cxx:88
 TTablePadView3D.cxx:89
 TTablePadView3D.cxx:90
 TTablePadView3D.cxx:91
 TTablePadView3D.cxx:92
 TTablePadView3D.cxx:93
 TTablePadView3D.cxx:94
 TTablePadView3D.cxx:95
 TTablePadView3D.cxx:96
 TTablePadView3D.cxx:97
 TTablePadView3D.cxx:98
 TTablePadView3D.cxx:99
 TTablePadView3D.cxx:100
 TTablePadView3D.cxx:101
 TTablePadView3D.cxx:102
 TTablePadView3D.cxx:103
 TTablePadView3D.cxx:104
 TTablePadView3D.cxx:105
 TTablePadView3D.cxx:106