Logo ROOT  
Reference Guide
camera_restore.C File Reference

Detailed Description

void camera_restore(const char* fname, int mode = 0)
{
writeCurrentCamera(fname);
}
void writeCurrentCamera(const char* fname)
{
TFile* f = TFile::Open(fname, "RECREATE");
c.Write();
f->Close();
}
void readCurrentCamera(const char* fname)
{
TFile* f = TFile::Open(fname, "READ");
if (!f)
return;
if (f->GetKey(c.ClassName())) {
f->GetKey(c.ClassName())->Read(&c);
c.IncTimeStamp();
}
}
#define f(i)
Definition: RSha256.hxx:104
#define c(i)
Definition: RSha256.hxx:101
R__EXTERN TEveManager * gEve
Definition: TEveManager.h:243
TGLViewer * GetDefaultGLViewer() const
Get TGLViewer of the default TEveViewer.
static TEveManager * Create(Bool_t map_window=kTRUE, Option_t *opt="FIV")
If global TEveManager* gEve is not set initialize it.
A ROOT file is a suite of consecutive data records (TKey instances) with a well defined format.
Definition: TFile.h:53
static TFile * Open(const char *name, Option_t *option="", const char *ftitle="", Int_t compress=ROOT::RCompressionSetting::EDefaults::kUseCompiledDefault, Int_t netopt=0)
Create / open a file.
Definition: TFile.cxx:3942
Abstract base camera class - concrete classes for orthographic and perspective cameras derive from it...
Definition: TGLCamera.h:43
void RequestDraw(Short_t LOD=TGLRnrCtx::kLODMed)
Post request for redraw of viewer at level of detail 'LOD' Request is directed via cross thread gVirt...
Definition: TGLViewer.cxx:438
TGLCamera & CurrentCamera() const
Definition: TGLViewer.h:269
Author
Matevz Tadel

Definition in file camera_restore.C.