// @(#)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; }