Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TView3D Class Reference

The 3D view class.

This package was originally written by Evgueni Tcherniaev from IHEP/Protvino.

The original Fortran implementation was adapted to HIGZ/PAW by Olivier Couet and Evgueni Tcherniaev.

This View class is a subset of the original system. It has been converted to a C++ class by Rene Brun.

TView3D creates a 3-D view in the current pad. In this 3D view Lego and Surface plots can be drawn and also 3D polyline and markers. Most of the time a TView3D is created automatically when a 3D object needs to be painted in a pad (for instance a Lego or a Surface plot).

In some case a TView3D should be explicitly. For instance to paint a 3D simple scene composed of simple objects like polylines and polymarkers. The following macro gives an example:

{
auto cV3D = new TCanvas("cV3D","PolyLine3D & PolyMarker3D Window",200,10,500,500);
// Creating a view
view->SetRange(5,5,5,25,25,25);
// Create a first PolyLine3D
pl3d1->SetPoint(0, 10, 20, 10);
pl3d1->SetPoint(1, 15, 15, 15);
pl3d1->SetPoint(2, 20, 20, 20);
pl3d1->SetPoint(3, 20, 10, 20);
pl3d1->SetPoint(4, 10, 10, 20);
pl3d1->SetPoint(5, 10, 10, 10);
// Create a first PolyMarker3D
pm3d1->SetPoint( 0, 10, 10, 10);
pm3d1->SetPoint( 1, 20, 20, 20);
pm3d1->SetPoint( 2, 10, 20, 20);
pm3d1->SetPoint( 3, 10, 10, 20);
pm3d1->SetPoint( 4, 20, 20, 10);
pm3d1->SetPoint( 5, 20, 10, 10);
pm3d1->SetPoint( 6, 20, 10, 20);
pm3d1->SetPoint( 7, 10, 20, 10);
pm3d1->SetPoint( 8, 15, 15, 15);
pm3d1->SetMarkerSize(2);
pm3d1->SetMarkerColor(4);
pm3d1->SetMarkerStyle(2);
// Draw
pl3d1->Draw();
pm3d1->Draw();
}
The Canvas class.
Definition TCanvas.h:23
A 3-dimensional polyline.
Definition TPolyLine3D.h:33
A 3D polymarker.
The 3D view class.
Definition TView3D.h:29
void SetRange(const Double_t *min, const Double_t *max) override
Set Range function.
Definition TView3D.cxx:1326
static TView * CreateView(Int_t system=1, const Double_t *rmin=nullptr, const Double_t *rmax=nullptr)
Create a concrete default 3-d view via the plug-in manager.
Definition TView.cxx:26

Several coordinate systems are available:

  • Cartesian
  • Polar
  • Cylindrical
  • Spherical
  • PseudoRapidity/Phi

Definition at line 29 of file TView3D.h.

Public Types

enum  {
  kIsOnHeap = 0x01000000 , kNotDeleted = 0x02000000 , kZombie = 0x04000000 , kInconsistent = 0x08000000 ,
  kBitMask = 0x00ffffff
}
 
enum  { kSingleKey = (1ULL << ( 0 )) , kOverwrite = (1ULL << ( 1 )) , kWriteDelete = (1ULL << ( 2 )) }
 
enum  { kPerspective = BIT(6) }
 
enum  EDeprecatedStatusBits { kObjInCanvas = (1ULL << ( 3 )) }
 
enum  EStatusBits {
  kCanDelete = (1ULL << ( 0 )) , kMustCleanup = (1ULL << ( 3 )) , kIsReferenced = (1ULL << ( 4 )) , kHasUUID = (1ULL << ( 5 )) ,
  kCannotPick = (1ULL << ( 6 )) , kNoContextMenu = (1ULL << ( 8 )) , kInvalidObject = (1ULL << ( 13 ))
}
 

Public Member Functions

 TView3D ()
 Default constructor.
 
 TView3D (Int_t system, const Double_t *rmin, const Double_t *rmax)
 TView3D constructor.
 
 ~TView3D () override
 TView3D default destructor.
 
void AbstractMethod (const char *method) const
 Call this function within a function that you don't want to define as purely virtual, in order not to force all users deriving from that class to implement that maybe (on their side) unused function; but at the same time, emit a run-time warning if they try to call it, telling that it is not implemented in the derived class: action must thus be taken on the user side to override it.
 
void AdjustScales (TVirtualPad *pad=nullptr) override
 Adjust all sides of view in respect of the biggest one.
 
virtual void AppendPad (Option_t *option="")
 Append graphics object to current pad.
 
void AxisVertex (Double_t ang, Double_t *av, Int_t &ix1, Int_t &ix2, Int_t &iy1, Int_t &iy2, Int_t &iz1, Int_t &iz2) override
 Define axis vertices.
 
virtual void Browse (TBrowser *b)
 Browse object. May be overridden for another default action.
 
void Centered () override
 
void Centered3DImages (TVirtualPad *pad=nullptr) override
 Move view into the center of the scene.
 
ULong_t CheckedHash ()
 Check and record whether this class has a consistent Hash/RecursiveRemove setup (*) and then return the regular Hash value for this object.
 
 ClassDefOverride (TView3D, 3)
 
virtual const char * ClassName () const
 Returns name of class to which the object belongs.
 
virtual void Clear (Option_t *="")
 
virtual TObjectClone (const char *newname="") const
 Make a clone of an object using the Streamer facility.
 
virtual Int_t Compare (const TObject *obj) const
 Compare abstract method.
 
void Copy (TAttLine &attline) const
 Copy this line attributes to a new TAttLine.
 
virtual void Copy (TObject &object) const
 Copy this to obj.
 
void DefinePerspectiveView () override
 Define perspective view.
 
void DefineViewDirection (const Double_t *s, const Double_t *c, Double_t cosphi, Double_t sinphi, Double_t costhe, Double_t sinthe, Double_t cospsi, Double_t sinpsi, Double_t *tnorm, Double_t *tback) override
 Define view direction (in spherical coordinates)
 
virtual void Delete (Option_t *option="")
 Delete this object.
 
Int_t DistancetoLine (Int_t px, Int_t py, Double_t xp1, Double_t yp1, Double_t xp2, Double_t yp2)
 Compute distance from point px,py to a line.
 
virtual Int_t DistancetoPrimitive (Int_t px, Int_t py)
 Computes distance from point (px,py) to the object.
 
virtual void Draw (Option_t *option="")
 Default Draw method for all objects.
 
virtual void DrawClass () const
 Draw class inheritance tree of the class to which this object belongs.
 
virtual TObjectDrawClone (Option_t *option="") const
 Draw a clone of this object in the current selected pad with: gROOT->SetSelectedPad(c1).
 
void DrawOutlineCube (TList *outline, Double_t *rmin, Double_t *rmax) override
 Draw the outline of a cube while rotating a 3-d object in the pad.
 
virtual void Dump () const
 Dump contents of object on stdout.
 
virtual void Error (const char *method, const char *msgfmt,...) const
 Issue error message.
 
virtual void Execute (const char *method, const char *params, Int_t *error=nullptr)
 Execute method on this object with the given parameter string, e.g.
 
virtual void Execute (TMethod *method, TObjArray *params, Int_t *error=nullptr)
 Execute method on this object with parameters stored in the TObjArray.
 
void ExecuteEvent (Int_t event, Int_t px, Int_t py) override
 Execute action corresponding to one event.
 
void ExecuteRotateView (Int_t event, Int_t px, Int_t py) override
 Execute action corresponding to one event.
 
virtual void Fatal (const char *method, const char *msgfmt,...) const
 Issue fatal error message.
 
void FindNormal (Double_t x, Double_t y, Double_t z, Double_t &zn) override
 Find Z component of NORMAL in normalized coordinates.
 
virtual TObjectFindObject (const char *name) const
 Must be redefined in derived classes.
 
virtual TObjectFindObject (const TObject *obj) const
 Must be redefined in derived classes.
 
void FindPhiSectors (Int_t iopt, Int_t &kphi, Double_t *aphi, Int_t &iphi1, Int_t &iphi2) override
 Find critical PHI sectors.
 
void FindScope (Double_t *scale, Double_t *center, Int_t &irep) override
 Find centre of a MIN-MAX scope and scale factors.
 
void FindThetaSectors (Int_t iopt, Double_t phi, Int_t &kth, Double_t *ath, Int_t &ith1, Int_t &ith2) override
 Find critical THETA sectors for given PHI sector.
 
void Front () override
 
void FrontView (TVirtualPad *pad=nullptr) override
 Set to front view.
 
Bool_t GetAutoRange () override
 
Int_t GetDistancetoAxis (Int_t axis, Int_t px, Int_t py, Double_t &ratio) override
 Return distance to axis from point px,py.
 
Double_t GetDproj () const override
 
virtual Option_tGetDrawOption () const
 Get option used by the graphics system to draw this object.
 
Double_t GetDview () const override
 
Double_t GetExtent () const override
 Get maximum view extent.
 
virtual const char * GetIconName () const
 Returns mime type name of object.
 
Double_t GetLatitude () override
 
virtual Color_t GetLineColor () const
 Return the line color.
 
virtual Style_t GetLineStyle () const
 Return the line style.
 
virtual Width_t GetLineWidth () const
 Return the line width.
 
Double_t GetLongitude () override
 
virtual const char * GetName () const
 Returns name of object.
 
virtual char * GetObjectInfo (Int_t px, Int_t py) const
 Returns string containing info about the object at position (px,py).
 
virtual Option_tGetOption () const
 
TSeqCollectionGetOutline () override
 
Double_t GetPsi () override
 
void GetRange (Double_t *min, Double_t *max) override
 Get Range function.
 
void GetRange (Float_t *min, Float_t *max) override
 Get Range function.
 
Double_tGetRmax () override
 
Double_tGetRmin () override
 
Int_t GetSystem () override
 
Double_tGetTback () override
 
virtual const char * GetTitle () const
 Returns title of object.
 
Double_tGetTN () override
 
Double_tGetTnorm () override
 
virtual UInt_t GetUniqueID () const
 Return the unique object id.
 
void GetWindow (Double_t &u0, Double_t &v0, Double_t &du, Double_t &dv) const override
 Get current window extent.
 
Double_t GetWindowHeight () const override
 
Double_t GetWindowWidth () const override
 
virtual Bool_t HandleTimer (TTimer *timer)
 Execute action in response of a timer timing out.
 
virtual ULong_t Hash () const
 Return hash value for this object.
 
Bool_t HasInconsistentHash () const
 Return true is the type of this object is known to have an inconsistent setup for Hash and RecursiveRemove (i.e.
 
virtual void Info (const char *method, const char *msgfmt,...) const
 Issue info message.
 
virtual Bool_t InheritsFrom (const char *classname) const
 Returns kTRUE if object inherits from class "classname".
 
virtual Bool_t InheritsFrom (const TClass *cl) const
 Returns kTRUE if object inherits from TClass cl.
 
virtual void Inspect () const
 Dump contents of this object in a graphics canvas.
 
void InvertBit (UInt_t f)
 
TClassIsA () const override
 
Bool_t IsClippedNDC (Double_t *p) const override
 Check if point is clipped in perspective view.
 
Bool_t IsDestructed () const
 IsDestructed.
 
virtual Bool_t IsEqual (const TObject *obj) const
 Default equal comparison (objects are equal if they have the same address in memory).
 
virtual Bool_t IsFolder () const
 Returns kTRUE in case object contains browsable objects (like containers or lists of other objects).
 
R__ALWAYS_INLINE Bool_t IsOnHeap () const
 
Bool_t IsPerspective () const override
 
virtual Bool_t IsSortable () const
 
Bool_t IsViewChanged () const override
 
R__ALWAYS_INLINE Bool_t IsZombie () const
 
virtual void ls (Option_t *option="") const
 The ls function lists the contents of a class on stdout.
 
void MayNotUse (const char *method) const
 Use this method to signal that a method (defined in a base class) may not be called in a derived class (in principle against good design since a child class should not provide less functionality than its parent, however, sometimes it is necessary).
 
virtual void Modify ()
 Change current line attributes if necessary.
 
virtual void ModifyOn (TVirtualPad &pad)
 Change current line attributes on specified pad.
 
void MoveFocus (Double_t *center, Double_t dx, Double_t dy, Double_t dz, Int_t nsteps=10, Double_t dlong=0, Double_t dlat=0, Double_t dpsi=0) override
 Move focus to a different box position and extent in nsteps.
 
void MoveViewCommand (Char_t chCode, Int_t count=1) override
 
void MoveWindow (Char_t option) override
 Move view window :
 
void NDCtoWC (const Double_t *pn, Double_t *pw) override
 Transfer point from normalized to world coordinates.
 
void NDCtoWC (const Float_t *pn, Float_t *pw) override
 Transfer point from normalized to world coordinates.
 
void NormalWCtoNDC (const Double_t *pw, Double_t *pn) override
 Transfer vector of NORMAL from word to normalized coordinates.
 
void NormalWCtoNDC (const Float_t *pw, Float_t *pn) override
 Transfer vector of NORMAL from word to normalized coordinates.
 
virtual Bool_t Notify ()
 This method must be overridden to handle object notification (the base implementation is no-op).
 
void Obsolete (const char *method, const char *asOfVers, const char *removedFromVers) const
 Use this method to declare a method obsolete.
 
void operator delete (void *, size_t)
 Operator delete for sized deallocation.
 
void operator delete (void *ptr)
 Operator delete.
 
void operator delete (void *ptr, void *vp)
 Only called by placement new when throwing an exception.
 
void operator delete[] (void *, size_t)
 Operator delete [] for sized deallocation.
 
void operator delete[] (void *ptr)
 Operator delete [].
 
void operator delete[] (void *ptr, void *vp)
 Only called by placement new[] when throwing an exception.
 
void * operator new (size_t sz)
 
void * operator new (size_t sz, void *vp)
 
void * operator new[] (size_t sz)
 
void * operator new[] (size_t sz, void *vp)
 
void PadRange (Int_t rback) override
 Set the correct window size for lego and surface plots.
 
virtual void Paint (Option_t *option="")
 This method must be overridden if a class wants to paint itself.
 
virtual void Pop ()
 Pop on object drawn in a pad to the top of the display list.
 
virtual void Print (Option_t *option="") const
 This method must be overridden when a class wants to print itself.
 
virtual Int_t Read (const char *name)
 Read contents of object with specified name from the current directory.
 
virtual void RecursiveRemove (TObject *obj)
 Recursively remove this object from a list.
 
virtual void ResetAttLine (Option_t *option="")
 Reset this line attributes to default values.
 
void ResetBit (UInt_t f)
 
void ResizePad () override
 Recompute window for perspective view.
 
void RotateView (Double_t phi, Double_t theta, TVirtualPad *pad=nullptr) override
 API to rotate view and adjust the pad provided it the current one.
 
virtual void SaveAs (const char *filename="", Option_t *option="") const
 Save this object in the file specified by filename.
 
virtual void SaveLineAttributes (std::ostream &out, const char *name, Int_t coldef=1, Int_t stydef=1, Int_t widdef=1)
 Save line attributes as C++ statement(s) on output stream out.
 
virtual void SavePrimitive (std::ostream &out, Option_t *option="")
 Save a primitive as a C++ statement(s) on output stream "out".
 
void SetAutoRange (Bool_t autorange=kTRUE) override
 
void SetAxisNDC (const Double_t *x1, const Double_t *x2, const Double_t *y1, const Double_t *y2, const Double_t *z1, const Double_t *z2) override
 Store axis coordinates in the NDC system.
 
void SetBit (UInt_t f)
 
void SetBit (UInt_t f, Bool_t set)
 Set or unset the user status bits as specified in f.
 
void SetDefaultWindow () override
 Set default viewing window.
 
void SetDproj (Double_t dproj) override
 
virtual void SetDrawOption (Option_t *option="")
 Set drawing option for object.
 
void SetDview (Double_t dview) override
 
void SetLatitude (Double_t latitude) override
 
virtual void SetLineAttributes ()
 Invoke the DialogCanvas Line attributes.
 
virtual void SetLineColor (Color_t lcolor)
 Set the line color.
 
void SetLineColor (TColorNumber lcolor)
 
virtual void SetLineColorAlpha (Color_t lcolor, Float_t lalpha)
 Set a transparent line color.
 
virtual void SetLineStyle (Style_t lstyle)
 Set the line style.
 
virtual void SetLineWidth (Width_t lwidth)
 Set the line width.
 
void SetLongitude (Double_t longitude) override
 
void SetOutlineToCube () override
 This is a function which creates default outline.
 
void SetParallel () override
 Set the parallel option (default).
 
void SetPerspective () override
 Set perspective option.
 
void SetPsi (Double_t psi) override
 
void SetRange (const Double_t *min, const Double_t *max) override
 Set Range function.
 
void SetRange (Double_t x0, Double_t y0, Double_t z0, Double_t x1, Double_t y1, Double_t z1, Int_t flag=0) override
 Set 3-D View range.
 
void SetSystem (Int_t system) override
 
virtual void SetUniqueID (UInt_t uid)
 Set the unique object id.
 
void SetView (Double_t longitude, Double_t latitude, Double_t psi, Int_t &irep) override
 Set view parameters.
 
void SetViewChanged (Bool_t flag=kTRUE) override
 
void SetWindow (Double_t u0, Double_t v0, Double_t du, Double_t dv) override
 Set viewing window.
 
void ShowAxis () override
 
void Side () override
 
void SideView (TVirtualPad *pad=nullptr) override
 Set to side view.
 
void Streamer (TBuffer &) override
 Stream an object of class TObject.
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 
virtual void SysError (const char *method, const char *msgfmt,...) const
 Issue system error message.
 
R__ALWAYS_INLINE Bool_t TestBit (UInt_t f) const
 
Int_t TestBits (UInt_t f) const
 
void ToggleRulers (TVirtualPad *pad=nullptr) override
 Turn on /off 3D axis.
 
void ToggleZoom (TVirtualPad *pad=nullptr) override
 Turn on /off the interactive option to Zoom / Move / Change attributes of 3D axis correspond this view.
 
void Top () override
 
void TopView (TVirtualPad *pad=nullptr) override
 Set to top view.
 
void UnZoom () override
 
void UnzoomView (TVirtualPad *pad=nullptr, Double_t unZoomFactor=1.25) override
 unZOOM this view.
 
virtual void UseCurrentStyle ()
 Set current style settings in this object This function is called when either TCanvas::UseCurrentStyle or TROOT::ForceStyle have been invoked.
 
virtual void Warning (const char *method, const char *msgfmt,...) const
 Issue warning message.
 
void WCtoNDC (const Double_t *pw, Double_t *pn) override
 Transfer point from world to normalized coordinates.
 
void WCtoNDC (const Float_t *pw, Float_t *pn) override
 Transfer point from world to normalized coordinates.
 
virtual Int_t Write (const char *name=nullptr, Int_t option=0, Int_t bufsize=0)
 Write this object to the current directory.
 
virtual Int_t Write (const char *name=nullptr, Int_t option=0, Int_t bufsize=0) const
 Write this object to the current directory.
 
void Zoom () override
 
void ZoomIn () override
 Zoom in.
 
void ZoomMove () override
 
void ZoomOut () override
 Zoom out.
 
void ZoomView (TVirtualPad *pad=nullptr, Double_t zoomFactor=1.25) override
 ZOOM this view.
 

Static Public Member Functions

static void AdjustPad (TVirtualPad *pad=nullptr)
 Force the current pad to be updated.
 
static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static TViewCreateView (Int_t system=1, const Double_t *rmin=nullptr, const Double_t *rmax=nullptr)
 Create a concrete default 3-d view via the plug-in manager.
 
static const char * DeclFileName ()
 
static Longptr_t GetDtorOnly ()
 Return destructor only flag.
 
static Bool_t GetObjectStat ()
 Get status of object stat flag.
 
static void SetDtorOnly (void *obj)
 Set destructor only flag.
 
static void SetObjectStat (Bool_t stat)
 Turn on/off tracking of objects in the TObjectTable.
 

Protected Types

enum  { kOnlyPrepStep = (1ULL << ( 3 )) }
 

Protected Member Functions

 TView3D (const TView3D &)
 Copy constructor.
 
virtual void DoError (int level, const char *location, const char *fmt, va_list va) const
 Interface to ErrorHandler (protected).
 
void MakeZombie ()
 
TView3Doperator= (const TView3D &)
 Assignment operator.
 
void ResetView (Double_t longitude, Double_t latitude, Double_t psi, Int_t &irep)
 Set view direction (in spherical coordinates).
 

Static Protected Member Functions

static void SavePrimitiveConstructor (std::ostream &out, TClass *cl, const char *variable_name, const char *constructor_agrs="", Bool_t empty_line=kTRUE)
 Save object constructor in the output stream "out".
 
static void SavePrimitiveDraw (std::ostream &out, const char *variable_name, Option_t *option=nullptr)
 Save invocation of primitive Draw() method Skipped if option contains "nodraw" string.
 
static TString SavePrimitiveVector (std::ostream &out, const char *prefix, Int_t len, Double_t *arr, Int_t flag=0)
 Save array in the output stream "out" as vector.
 

Protected Attributes

Bool_t fAutoRange
 
Bool_t fChanged
 ! Set to TRUE after ExecuteRotateView
 
Bool_t fDefaultOutline
 
Double_t fDproj
 
Double_t fDview
 
Double_t fLatitude
 
Color_t fLineColor
 Line color.
 
Style_t fLineStyle
 Line style.
 
Width_t fLineWidth
 Line width.
 
Double_t fLongitude
 
TSeqCollectionfOutline
 
Double_t fPsi
 
Double_t fRmax [3]
 
Double_t fRmin [3]
 
Int_t fSystem
 
Double_t fTB [16]
 
Double_t fTback [16]
 
Double_t fTN [16]
 
Double_t fTnorm [16]
 
Double_t fUpix
 
Double_t fUVcoord [4]
 
Double_t fVpix
 
Double_t fX1 [3]
 
Double_t fX2 [3]
 
Double_t fY1 [3]
 
Double_t fY2 [3]
 
Double_t fZ1 [3]
 
Double_t fZ2 [3]
 

Static Private Member Functions

static void AddToTObjectTable (TObject *)
 Private helper function which will dispatch to TObjectTable::AddObj.
 

Private Attributes

UInt_t fBits
 bit field status word
 
UInt_t fUniqueID
 object unique identifier
 

Static Private Attributes

static Longptr_t fgDtorOnly = 0
 object for which to call dtor only (i.e. no delete)
 
static Bool_t fgObjectStat = kTRUE
 if true keep track of objects in TObjectTable
 

#include <TView3D.h>

Inheritance diagram for TView3D:
TView TObject TAttLine

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
inherited
Enumerator
kIsOnHeap 

object is on heap

kNotDeleted 

object has not been deleted

kZombie 

object ctor failed

kInconsistent 

class overload Hash but does call RecursiveRemove in destructor

kBitMask 

Definition at line 89 of file TObject.h.

◆ anonymous enum

anonymous enum
inherited
Enumerator
kSingleKey 

write collection with single key

kOverwrite 

overwrite existing object with same name

kWriteDelete 

write object, then delete previous key with same name

Definition at line 99 of file TObject.h.

◆ anonymous enum

anonymous enum
protectedinherited
Enumerator
kOnlyPrepStep 

Used to request that the class specific implementation of TObject::Write just prepare the objects to be ready to be written but do not actually write them into the TBuffer.

This is just for example by TBufferMerger to request that the TTree inside the file calls TTree::FlushBaskets (outside of the merging lock) and TBufferMerger will later ask for the write (inside the merging lock). To take advantage of this feature the class needs to overload TObject::Write and use this enum value accordingly. (See TTree::Write and TObject::Write) Do not use, this feature will be migrate to the Merge function (See TClass and TTree::Merge)

Definition at line 106 of file TObject.h.

◆ anonymous enum

Enumerator
kPerspective 

Definition at line 66 of file TView3D.h.

◆ EDeprecatedStatusBits

Enumerator
kObjInCanvas 

for backward compatibility only, use kMustCleanup

Definition at line 84 of file TObject.h.

◆ EStatusBits

Enumerator
kCanDelete 

if object in a list can be deleted

kMustCleanup 

if object destructor must call RecursiveRemove()

kIsReferenced 

if object is referenced by a TRef or TRefArray

kHasUUID 

if object has a TUUID (its fUniqueID=UUIDNumber)

kCannotPick 

if object in a pad cannot be picked

kNoContextMenu 

if object does not want context menu

kInvalidObject 

if object ctor succeeded but object should not be used

Definition at line 70 of file TObject.h.

Constructor & Destructor Documentation

◆ TView3D() [1/3]

TView3D::TView3D ( const TView3D & tv)
protected

Copy constructor.

Definition at line 196 of file TView3D.cxx.

◆ TView3D() [2/3]

TView3D::TView3D ( )

Default constructor.

Definition at line 108 of file TView3D.cxx.

◆ TView3D() [3/3]

TView3D::TView3D ( Int_t system,
const Double_t * rmin,
const Double_t * rmax )

TView3D constructor.

Creates a 3-D view in the current pad rmin[3], rmax[3] are the limits of the object depending on the selected coordinate system

Before drawing a 3-D object in a pad, a 3-D view must be created. Note that a view is automatically created when drawing legos or surfaces.

The coordinate system is selected via system:

  • system = 1 Cartesian
  • system = 2 Polar
  • system = 3 Cylindrical
  • system = 4 Spherical
  • system = 5 PseudoRapidity/Phi

Definition at line 152 of file TView3D.cxx.

◆ ~TView3D()

TView3D::~TView3D ( )
override

TView3D default destructor.

Definition at line 275 of file TView3D.cxx.

Member Function Documentation

◆ AbstractMethod()

void TObject::AbstractMethod ( const char * method) const
inherited

Call this function within a function that you don't want to define as purely virtual, in order not to force all users deriving from that class to implement that maybe (on their side) unused function; but at the same time, emit a run-time warning if they try to call it, telling that it is not implemented in the derived class: action must thus be taken on the user side to override it.

In other word, this method acts as a "runtime purely virtual" warning instead of a "compiler purely virtual" error.

Warning
This interface is a legacy function that is no longer recommended to be used by new development code.
Note
The name "AbstractMethod" does not imply that it's an abstract method in the strict C++ sense.

Definition at line 1149 of file TObject.cxx.

◆ AddToTObjectTable()

void TObject::AddToTObjectTable ( TObject * op)
staticprivateinherited

Private helper function which will dispatch to TObjectTable::AddObj.

Included here to avoid circular dependency between header files.

Definition at line 195 of file TObject.cxx.

◆ AdjustPad()

void TView3D::AdjustPad ( TVirtualPad * pad = nullptr)
static

Force the current pad to be updated.

Definition at line 1538 of file TView3D.cxx.

◆ AdjustScales()

void TView3D::AdjustScales ( TVirtualPad * pad = nullptr)
overridevirtual

Adjust all sides of view in respect of the biggest one.

Implements TView.

Definition at line 1616 of file TView3D.cxx.

◆ AppendPad()

void TObject::AppendPad ( Option_t * option = "")
virtualinherited

Append graphics object to current pad.

In case no current pad is set yet, create a default canvas with the name "c1".

Definition at line 204 of file TObject.cxx.

◆ AxisVertex()

void TView3D::AxisVertex ( Double_t ang,
Double_t * av,
Int_t & ix1,
Int_t & ix2,
Int_t & iy1,
Int_t & iy2,
Int_t & iz1,
Int_t & iz2 )
overridevirtual

Define axis vertices.

Input:

  • ANG - angle between X and Y axis (not used anymore)

    Output:

  • AV(3,8) - axis vertices
  • IX1 - 1st point of X-axis (x-min)
  • IX2 - 2nd point of X-axis (x-max)
  • IY1 - 1st point of Y-axis (y-min)
  • IY2 - 2nd point of Y-axis (y-max)
  • IZ1 - 1st point of Z-axis (z-min)
  • IZ2 - 2nd point of Z-axis (z-max)

Implements TView.

Definition at line 297 of file TView3D.cxx.

◆ Browse()

◆ Centered()

void TView3D::Centered ( )
overridevirtual

Implements TView.

Definition at line 1929 of file TView3D.cxx.

◆ Centered3DImages()

void TView3D::Centered3DImages ( TVirtualPad * pad = nullptr)
overridevirtual

Move view into the center of the scene.

Implements TView.

Definition at line 1634 of file TView3D.cxx.

◆ CheckedHash()

ULong_t TObject::CheckedHash ( )
inlineinherited

Check and record whether this class has a consistent Hash/RecursiveRemove setup (*) and then return the regular Hash value for this object.

The intent is for this routine to be called instead of directly calling the function Hash during "insert" operations. See TObject::HasInconsistenTObjectHash();

(*) The setup is consistent when all classes in the class hierarchy that overload TObject::Hash do call ROOT::CallRecursiveRemoveIfNeeded in their destructor. i.e. it is safe to call the Hash virtual function during the RecursiveRemove operation.

Definition at line 332 of file TObject.h.

◆ Class()

static TClass * TView::Class ( )
staticinherited
Returns
TClass describing this class

◆ Class_Name()

static const char * TView::Class_Name ( )
staticinherited
Returns
Name of this class

◆ Class_Version()

static constexpr Version_t TView::Class_Version ( )
inlinestaticconstexprinherited
Returns
Version of this class

Definition at line 127 of file TView.h.

◆ ClassDefOverride()

TView3D::ClassDefOverride ( TView3D ,
3  )

◆ ClassName()

const char * TObject::ClassName ( ) const
virtualinherited

Returns name of class to which the object belongs.

Definition at line 227 of file TObject.cxx.

◆ Clear()

◆ Clone()

TObject * TObject::Clone ( const char * newname = "") const
virtualinherited

Make a clone of an object using the Streamer facility.

If the object derives from TNamed, this function is called by TNamed::Clone. TNamed::Clone uses the optional argument to set a new name to the newly created object.

If the object class has a DirectoryAutoAdd function, it will be called at the end of the function with the parameter gDirectory. This usually means that the object will be appended to the current ROOT directory.

Reimplemented in TMVA::MinuitWrapper, RooCatType, TImage, RooStudyPackage, RooLinkedList, RooStats::ModelConfig, TNamed, TCollection, TClass, TFunction, TFunctionTemplate, TMethod, TMethodCall, TASImage, TH1, TStreamerInfo, TMinuit, RooAbsStudy, RooDataHist, RooDataSet, RooWorkspace, TChainIndex, TTreeIndex, TF1, RooAbsArg, RooAbsBinning, RooAbsCollection, RooCmdArg, RooFitResult, RooTemplateProxy< T >, RooTemplateProxy< const RooHistFunc >, RooTemplateProxy< RooAbsCategory >, RooTemplateProxy< RooAbsPdf >, RooTemplateProxy< RooAbsReal >, RooTemplateProxy< RooAbsRealLValue >, RooTemplateProxy< RooMultiCategory >, RooTemplateProxy< RooRealVar >, and RooStats::HypoTestResult.

Definition at line 243 of file TObject.cxx.

◆ Compare()

Int_t TObject::Compare ( const TObject * obj) const
virtualinherited

Compare abstract method.

Must be overridden if a class wants to be able to compare itself with other objects. Must return -1 if this is smaller than obj, 0 if objects are equal and 1 if this is larger than obj.

Reimplemented in TEnvRec, TFileInfo, TNamed, TObjString, TParameter< AParamType >, TParameter< Long64_t >, TUrl, TCollection, TGeoBranchArray, TGeoOverlap, TStructNode, TStructNodeProperty, TGFSFrameElement, TGLBFrameElement, RooAbsArg, and RooDouble.

Definition at line 258 of file TObject.cxx.

◆ Copy() [1/2]

void TAttLine::Copy ( TAttLine & attline) const
inherited

Copy this line attributes to a new TAttLine.

Definition at line 176 of file TAttLine.cxx.

◆ Copy() [2/2]

◆ CreateView()

TView * TView::CreateView ( Int_t system = 1,
const Double_t * rmin = nullptr,
const Double_t * rmax = nullptr )
staticinherited

Create a concrete default 3-d view via the plug-in manager.

Definition at line 26 of file TView.cxx.

◆ DeclFileName()

static const char * TView::DeclFileName ( )
inlinestaticinherited
Returns
Name of the file containing the class declaration

Definition at line 127 of file TView.h.

◆ DefinePerspectiveView()

void TView3D::DefinePerspectiveView ( )
overridevirtual

Define perspective view.

Compute transformation matrix from world coordinates to normalized coordinates (-1 to +1)

Input :

  • theta, phi - spherical angles giving the direction of projection
  • psi - screen rotation angle
  • cov[3] - center of view
  • dview - distance from COV to COP (center of projection)
  • umin, umax, vmin, vmax - view window in projection plane
  • dproj - distance from COP to projection plane
  • bcut, fcut - backward/forward range w.r.t projection plane (fcut<=0)

Output :

  • nper[16] - normalizing transformation

compute tr+rot to get COV in origin, view vector parallel to -Z axis, up vector parallel to Y.

| | /|
| | / |
| dproj / x--- center of window (COW)
COV |----------|--x--|------------> Zv
/ | VRP'z
/ ---> | /
/ VPN |/
Xv
Double_t x[n]
Definition legend1.C:17
  1. translate COP to origin of MARS : Tper = T(-copx, -copy, -copz)
  2. rotate VPN : R = Rz(-psi)*Rx(-theta)*Rz(-phi) (inverse Euler)
  3. left-handed screen reference to right-handed one of MARS : Trl

T12 = Tper*R*Trl

Implements TView.

Definition at line 399 of file TView3D.cxx.

◆ DefineViewDirection()

void TView3D::DefineViewDirection ( const Double_t * s,
const Double_t * c,
Double_t cosphi,
Double_t sinphi,
Double_t costhe,
Double_t sinthe,
Double_t cospsi,
Double_t sinpsi,
Double_t * tnorm,
Double_t * tback )
overridevirtual

Define view direction (in spherical coordinates)

Compute transformation matrix from world coordinates to normalized coordinates (-1 to +1)

Input:

  • S(3) - scale factors
  • C(3) - centre of scope
  • COSPHI - longitude COS
  • SINPHI - longitude SIN
  • COSTHE - latitude COS (angle between +Z and view direction.)
  • SINTHE - latitude SIN
  • COSPSI - screen plane rotation angle COS
  • SINPSI - screen plane rotation angle SIN

Implements TView.

Definition at line 513 of file TView3D.cxx.

◆ Delete()

void TObject::Delete ( Option_t * option = "")
virtualinherited

◆ DistancetoLine()

Int_t TAttLine::DistancetoLine ( Int_t px,
Int_t py,
Double_t xp1,
Double_t yp1,
Double_t xp2,
Double_t yp2 )
inherited

Compute distance from point px,py to a line.

Compute the closest distance of approach from point px,py to this line. The distance is computed in pixels units.

Algorithm:

A(x1,y1) P B(x2,y2)
-----------------+------------------------------
|
|
|
|
M(x,y)
Let us call a = distance AM A=a**2
b = distance BM B=b**2
c = distance AB C=c**2
d = distance PM D=d**2
u = distance AP U=u**2
v = distance BP V=v**2 c = u + v
D = A - U
D = B - V = B -(c-u)**2
==> u = (A -B +C)/2c
#define d(i)
Definition RSha256.hxx:102
#define b(i)
Definition RSha256.hxx:100
#define c(i)
Definition RSha256.hxx:101
#define a(i)
Definition RSha256.hxx:99
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
Option_t Option_t TPoint TPoint const char x2
Option_t Option_t TPoint TPoint const char x1
Option_t Option_t TPoint TPoint const char y2
Option_t Option_t TPoint TPoint const char y1
Double_t y[n]
Definition legend1.C:17

Definition at line 210 of file TAttLine.cxx.

◆ DistancetoPrimitive()

◆ DoError()

void TObject::DoError ( int level,
const char * location,
const char * fmt,
va_list va ) const
protectedvirtualinherited

Interface to ErrorHandler (protected).

Reimplemented in TTreeViewer, and TThread.

Definition at line 1059 of file TObject.cxx.

◆ Draw()

◆ DrawClass()

void TObject::DrawClass ( ) const
virtualinherited

Draw class inheritance tree of the class to which this object belongs.

If a class B inherits from a class A, description of B is drawn on the right side of description of A. Member functions overridden by B are shown in class A with a blue line crossing-out the corresponding member function. The following picture is the class inheritance tree of class TPaveLabel:

Reimplemented in TSystemDirectory, TSystemFile, and TGFrame.

Definition at line 308 of file TObject.cxx.

◆ DrawClone()

TObject * TObject::DrawClone ( Option_t * option = "") const
virtualinherited

Draw a clone of this object in the current selected pad with: gROOT->SetSelectedPad(c1).

If pad was not selected - gPad will be used.

Note
For histograms, use the more specialised TH1::DrawCopy().

Reimplemented in TSystemDirectory, TSystemFile, TGFrame, TAxis, and TCanvas.

Definition at line 319 of file TObject.cxx.

◆ DrawOutlineCube()

void TView3D::DrawOutlineCube ( TList * outline,
Double_t * rmin,
Double_t * rmax )
overridevirtual

Draw the outline of a cube while rotating a 3-d object in the pad.

Implements TView.

Definition at line 619 of file TView3D.cxx.

◆ Dump()

void TObject::Dump ( ) const
virtualinherited

Dump contents of object on stdout.

Using the information in the object dictionary (class TClass) each data member is interpreted. If a data member is a pointer, the pointer value is printed

The following output is the Dump of a TArrow object:

fAngle 0 Arrow opening angle (degrees)
fArrowSize 0.2 Arrow Size
fOption.*fData
fX1 0.1 X of 1st point
fY1 0.15 Y of 1st point
fX2 0.67 X of 2nd point
fY2 0.83 Y of 2nd point
fBits 50331648 bit field status word
fFillColor 19 fill area color
fFillStyle 1001 fill area style
#define X(type, name)
Option_t Option_t TPoint TPoint angle
Option_t Option_t width
Option_t Option_t style
Width_t fLineWidth
Line width.
Definition TAttLine.h:26
Style_t fLineStyle
Line style.
Definition TAttLine.h:25
Color_t fLineColor
Line color.
Definition TAttLine.h:24
UInt_t fUniqueID
object unique identifier
Definition TObject.h:46
UInt_t fBits
bit field status word
Definition TObject.h:47
Double_t fX2[3]
Definition TView3D.h:47
Double_t fY1[3]
Definition TView3D.h:48
Double_t fY2[3]
Definition TView3D.h:49
Double_t fX1[3]
Definition TView3D.h:46
TLine * line

Reimplemented in TSystemFile, TCollection, TClass, TGFrame, and TGPack.

Definition at line 367 of file TObject.cxx.

◆ Error()

void TObject::Error ( const char * location,
const char * fmt,
... ) const
virtualinherited

Issue error message.

Use "location" to specify the method where the error occurred. Accepts standard printf formatting arguments.

Reimplemented in TFitResult.

Definition at line 1098 of file TObject.cxx.

◆ Execute() [1/2]

void TObject::Execute ( const char * method,
const char * params,
Int_t * error = nullptr )
virtualinherited

Execute method on this object with the given parameter string, e.g.

"3.14,1,\"text\"".

Reimplemented in TMethodCall, TCling, TInterpreter, ROOT::R::TRInterface, and TContextMenu.

Definition at line 378 of file TObject.cxx.

◆ Execute() [2/2]

void TObject::Execute ( TMethod * method,
TObjArray * params,
Int_t * error = nullptr )
virtualinherited

Execute method on this object with parameters stored in the TObjArray.

The TObjArray should contain an argv vector like:

argv[0] ... argv[n] = the list of TObjString parameters
Collectable string class.
Definition TObjString.h:28
const Int_t n
Definition legend1.C:16

Reimplemented in TCling, TMethodCall, TInterpreter, ROOT::R::TRInterface, and TContextMenu.

Definition at line 398 of file TObject.cxx.

◆ ExecuteEvent()

void TView3D::ExecuteEvent ( Int_t event,
Int_t px,
Int_t py )
overridevirtual

Execute action corresponding to one event.

Implements TView.

Definition at line 627 of file TView3D.cxx.

◆ ExecuteRotateView()

void TView3D::ExecuteRotateView ( Int_t event,
Int_t px,
Int_t py )
overridevirtual

Execute action corresponding to one event.

This member function is called when a object is clicked with the locator

If Left button clicked in the object area, while the button is kept down the cube representing the surrounding frame for the corresponding new latitude and longitude position is drawn.

Implements TView.

Definition at line 641 of file TView3D.cxx.

◆ Fatal()

void TObject::Fatal ( const char * location,
const char * fmt,
... ) const
virtualinherited

Issue fatal error message.

Use "location" to specify the method where the fatal error occurred. Accepts standard printf formatting arguments.

Definition at line 1126 of file TObject.cxx.

◆ FindNormal()

void TView3D::FindNormal ( Double_t x,
Double_t y,
Double_t z,
Double_t & zn )
overridevirtual

Find Z component of NORMAL in normalized coordinates.

Input:

  • X - X-component of NORMAL
  • Y - Y-component of NORMAL
  • Z - Z-component of NORMAL

Output:

  • ZN - Z-component of NORMAL in normalized coordinates

Implements TView.

Definition at line 785 of file TView3D.cxx.

◆ FindObject() [1/2]

TObject * TObject::FindObject ( const char * name) const
virtualinherited

Must be redefined in derived classes.

This function is typically used with TCollections, but can also be used to find an object by name inside this object.

Reimplemented in TListOfEnums, TMap, TDirectory, TFolder, TROOT, TListOfTypes, TListOfTypes, TBtree, TCollection, THashList, THashTable, TList, TObjArray, TListOfDataMembers, TListOfDataMembers, TListOfEnums, TListOfEnumsWithLock, TListOfFunctions, TListOfFunctionTemplates, TListOfFunctionTemplates, TViewPubDataMembers, TViewPubFunctions, TPad, TGeometry, THbookFile, TGraph, TGraph2D, TH1, RooAbsCollection, and RooLinkedList.

Definition at line 425 of file TObject.cxx.

◆ FindObject() [2/2]

TObject * TObject::FindObject ( const TObject * obj) const
virtualinherited

Must be redefined in derived classes.

This function is typically used with TCollections, but can also be used to find an object inside this object.

Reimplemented in TMap, TDirectory, TFolder, TROOT, TListOfTypes, TBtree, TCollection, THashList, THashTable, TList, TObjArray, TListOfDataMembers, TListOfEnums, TListOfEnumsWithLock, TListOfFunctions, TListOfFunctionTemplates, TViewPubDataMembers, TViewPubFunctions, TPad, TGeometry, THbookFile, TGraph, TGraph2D, TH1, RooAbsCollection, and RooLinkedList.

Definition at line 435 of file TObject.cxx.

◆ FindPhiSectors()

void TView3D::FindPhiSectors ( Int_t iopt,
Int_t & kphi,
Double_t * aphi,
Int_t & iphi1,
Int_t & iphi2 )
overridevirtual

Find critical PHI sectors.

Input:

  • IOPT - options:
    1. from BACK to FRONT 'BF'
    2. from FRONT to BACK 'FB'
  • KPHI - number of phi sectors
  • APHI(*) - PHI separators (modified internally)

Output:

  • IPHI1 - initial sector
  • IPHI2 - final sector

Implements TView.

Definition at line 805 of file TView3D.cxx.

◆ FindScope()

void TView3D::FindScope ( Double_t * scale,
Double_t * center,
Int_t & irep )
overridevirtual

Find centre of a MIN-MAX scope and scale factors.

Output:

Implements TView.

Definition at line 932 of file TView3D.cxx.

◆ FindThetaSectors()

void TView3D::FindThetaSectors ( Int_t iopt,
Double_t phi,
Int_t & kth,
Double_t * ath,
Int_t & ith1,
Int_t & ith2 )
overridevirtual

Find critical THETA sectors for given PHI sector.

Input:

  • IOPT - options:
    1. from BACK to FRONT 'BF'
    2. from FRONT to BACK 'FB'
  • PHI - PHI sector
  • KTH - number of THETA sectors
  • ATH(*) - THETA separators (modified internally)

Output:

  • ITH1 - initial sector
  • ITH2 - final sector

Implements TView.

Definition at line 871 of file TView3D.cxx.

◆ Front()

void TView3D::Front ( )
overridevirtual

Implements TView.

Definition at line 1930 of file TView3D.cxx.

◆ FrontView()

void TView3D::FrontView ( TVirtualPad * pad = nullptr)
overridevirtual

Set to front view.

Implements TView.

Definition at line 1583 of file TView3D.cxx.

◆ GetAutoRange()

Bool_t TView3D::GetAutoRange ( )
inlineoverridevirtual

Implements TView.

Definition at line 89 of file TView3D.h.

◆ GetDistancetoAxis()

Int_t TView3D::GetDistancetoAxis ( Int_t axis,
Int_t px,
Int_t py,
Double_t & ratio )
overridevirtual

Return distance to axis from point px,py.

Algorithm:

A(x1,y1) P B(x2,y2)
------------------------------------------------
I
I
I
I
M(x,y)
Let us call a = distance AM A=a**2
b = distance BM B=b**2
c = distance AB C=c**2
d = distance PM D=d**2
u = distance AP U=u**2
v = distance BP V=v**2 c = u + v
D = A - U
D = B - V = B -(c-u)**2
==> u = (A -B +C)/2c
#define I(x, y, z)

Implements TView.

Definition at line 970 of file TView3D.cxx.

◆ GetDproj()

Double_t TView3D::GetDproj ( ) const
inlineoverridevirtual

Implements TView.

Definition at line 87 of file TView3D.h.

◆ GetDrawOption()

Option_t * TObject::GetDrawOption ( ) const
virtualinherited

Get option used by the graphics system to draw this object.

Note that before calling object.GetDrawOption(), you must have called object.Draw(..) before in the current pad.

Reimplemented in TBrowser, TFitEditor, TGedFrame, TGFileBrowser, TRootBrowser, and TRootBrowserLite.

Definition at line 445 of file TObject.cxx.

◆ GetDtorOnly()

Longptr_t TObject::GetDtorOnly ( )
staticinherited

Return destructor only flag.

Definition at line 1196 of file TObject.cxx.

◆ GetDview()

Double_t TView3D::GetDview ( ) const
inlineoverridevirtual

Implements TView.

Definition at line 86 of file TView3D.h.

◆ GetExtent()

Double_t TView3D::GetExtent ( ) const
overridevirtual

Get maximum view extent.

Implements TView.

Definition at line 1016 of file TView3D.cxx.

◆ GetIconName()

const char * TObject::GetIconName ( ) const
virtualinherited

Returns mime type name of object.

Used by the TBrowser (via TGMimeTypes class). Override for class of which you would like to have different icons for objects of the same class.

Reimplemented in TSystemFile, TGeoVolume, TASImage, TGMainFrame, TKey, ROOT::Experimental::XRooFit::xRooNode, TBranch, TVirtualBranchBrowsable, TMethodBrowsable, and TBranchElement.

Definition at line 472 of file TObject.cxx.

◆ GetLatitude()

Double_t TView3D::GetLatitude ( )
inlineoverridevirtual

Implements TView.

Definition at line 90 of file TView3D.h.

◆ GetLineColor()

virtual Color_t TAttLine::GetLineColor ( ) const
inlinevirtualinherited

Return the line color.

Reimplemented in TGraphMultiErrors, and TGWin32VirtualXProxy.

Definition at line 36 of file TAttLine.h.

◆ GetLineStyle()

virtual Style_t TAttLine::GetLineStyle ( ) const
inlinevirtualinherited

Return the line style.

Reimplemented in TGraphMultiErrors, TGWin32, TGWin32VirtualXProxy, and TGX11.

Definition at line 37 of file TAttLine.h.

◆ GetLineWidth()

virtual Width_t TAttLine::GetLineWidth ( ) const
inlinevirtualinherited

Return the line width.

Reimplemented in TGraphMultiErrors, TGWin32, TGWin32VirtualXProxy, and TGX11.

Definition at line 38 of file TAttLine.h.

◆ GetLongitude()

Double_t TView3D::GetLongitude ( )
inlineoverridevirtual

Implements TView.

Definition at line 91 of file TView3D.h.

◆ GetName()

◆ GetObjectInfo()

char * TObject::GetObjectInfo ( Int_t px,
Int_t py ) const
virtualinherited

Returns string containing info about the object at position (px,py).

This method is typically overridden by classes of which the objects can report peculiarities for different positions. Returned string will be re-used (lock in MT environment).

Reimplemented in TGeoNode, TGeoVolume, TGeoTrack, TASImage, TColorWheel, TAxis3D, TNode, TGL5DDataSet, TGLHistPainter, TGLParametricEquation, TGLTH3Composition, TF1, TF2, TGraph, TH1, THistPainter, TPaletteAxis, TFileDrawMap, TParallelCoordVar, and TVirtualHistPainter.

Definition at line 491 of file TObject.cxx.

◆ GetObjectStat()

Bool_t TObject::GetObjectStat ( )
staticinherited

Get status of object stat flag.

Definition at line 1181 of file TObject.cxx.

◆ GetOption()

virtual Option_t * TObject::GetOption ( ) const
inlinevirtualinherited

◆ GetOutline()

TSeqCollection * TView3D::GetOutline ( )
inlineoverridevirtual

Implements TView.

Definition at line 97 of file TView3D.h.

◆ GetPsi()

Double_t TView3D::GetPsi ( )
inlineoverridevirtual

Implements TView.

Definition at line 92 of file TView3D.h.

◆ GetRange() [1/2]

void TView3D::GetRange ( Double_t * min,
Double_t * max )
overridevirtual

Get Range function.

Implements TView.

Definition at line 1036 of file TView3D.cxx.

◆ GetRange() [2/2]

void TView3D::GetRange ( Float_t * min,
Float_t * max )
overridevirtual

Get Range function.

Implements TView.

Definition at line 1028 of file TView3D.cxx.

◆ GetRmax()

Double_t * TView3D::GetRmax ( )
inlineoverridevirtual

Implements TView.

Definition at line 95 of file TView3D.h.

◆ GetRmin()

Double_t * TView3D::GetRmin ( )
inlineoverridevirtual

Implements TView.

Definition at line 96 of file TView3D.h.

◆ GetSystem()

Int_t TView3D::GetSystem ( )
inlineoverridevirtual

Implements TView.

Definition at line 101 of file TView3D.h.

◆ GetTback()

Double_t * TView3D::GetTback ( )
inlineoverridevirtual

Implements TView.

Definition at line 98 of file TView3D.h.

◆ GetTitle()

const char * TObject::GetTitle ( ) const
virtualinherited

Returns title of object.

This default method returns the class title (i.e. description). Classes that give objects a title should override this method.

Reimplemented in TNamed, TQCommand, TPair, TClassMenuItem, TBaseClass, TASImage, TPad, TGaxis, TPaveLabel, TEveGeoNode, TEvePointSet, TGTextButton, TGGroupFrame, TGLabel, TGTextLBEntry, TGLVEntry, TGTextEntry, TRootIconList, TAxis, TKey, TMapFile, TParticle, TPrimary, Axis2, TParallelCoordSelect, and TVirtualPad.

Definition at line 507 of file TObject.cxx.

◆ GetTN()

Double_t * TView3D::GetTN ( )
inlineoverridevirtual

Implements TView.

Definition at line 99 of file TView3D.h.

◆ GetTnorm()

Double_t * TView3D::GetTnorm ( )
inlineoverridevirtual

Implements TView.

Definition at line 100 of file TView3D.h.

◆ GetUniqueID()

UInt_t TObject::GetUniqueID ( ) const
virtualinherited

Return the unique object id.

Definition at line 480 of file TObject.cxx.

◆ GetWindow()

void TView3D::GetWindow ( Double_t & u0,
Double_t & v0,
Double_t & du,
Double_t & dv ) const
overridevirtual

Get current window extent.

Implements TView.

Definition at line 1044 of file TView3D.cxx.

◆ GetWindowHeight()

Double_t TView3D::GetWindowHeight ( ) const
inlineoverridevirtual

Implements TView.

Definition at line 104 of file TView3D.h.

◆ GetWindowWidth()

Double_t TView3D::GetWindowWidth ( ) const
inlineoverridevirtual

Implements TView.

Definition at line 103 of file TView3D.h.

◆ HandleTimer()

Bool_t TObject::HandleTimer ( TTimer * timer)
virtualinherited

Execute action in response of a timer timing out.

This method must be overridden if an object has to react to timers.

Reimplemented in TGWindow, TGuiBldDragManager, TGraphTime, TGLEventHandler, TGCommandPlugin, TGDNDManager, TGFileContainer, TGPopupMenu, TGScrollBar, TGShutter, TGTextEdit, TGTextEditor, TGTextEntry, TGTextView, TGToolTip, TGHtml, and TTreeViewer.

Definition at line 516 of file TObject.cxx.

◆ Hash()

ULong_t TObject::Hash ( ) const
virtualinherited

Return hash value for this object.

Note: If this routine is overloaded in a derived class, this derived class should also add

void CallRecursiveRemoveIfNeeded(TObject &obj)
call RecursiveRemove for obj if gROOT is valid and obj.TestBit(kMustCleanup) is true.
Definition TROOT.h:406

Otherwise, when RecursiveRemove is called (by ~TObject or example) for this type of object, the transversal of THashList and THashTable containers will will have to be done without call Hash (and hence be linear rather than logarithmic complexity). You will also see warnings like

Mother of all ROOT objects.
Definition TObject.h:42
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
Definition TObject.cxx:1098
virtual ULong_t Hash() const
Return hash value for this object.
Definition TObject.cxx:539
void RecursiveRemove(TObject *obj) override
Recursively remove this object from the list of Cleanups.
Definition TROOT.cxx:2651

Reimplemented in TEnvRec, TNamed, TObjString, TParameter< AParamType >, TParameter< Long64_t >, TCollection, TPair, TASImagePlugin, TASPluginGS, TPad, TImagePlugin, TPave, TGObject, TGPicture, TIconBoxThumb, TStatistic, and RooLinkedList.

Definition at line 539 of file TObject.cxx.

◆ HasInconsistentHash()

Bool_t TObject::HasInconsistentHash ( ) const
inlineinherited

Return true is the type of this object is known to have an inconsistent setup for Hash and RecursiveRemove (i.e.

missing call to RecursiveRemove in destructor).

Note: Since the consistency is only tested for during inserts, this routine will return true for object that have never been inserted whether or not they have a consistent setup. This has no negative side-effect as searching for the object with the right or wrong Hash will always yield a not-found answer (Since anyway no hash can be guaranteed unique, there is always a check)

Definition at line 366 of file TObject.h.

◆ Info()

void TObject::Info ( const char * location,
const char * fmt,
... ) const
virtualinherited

Issue info message.

Use "location" to specify the method where the warning occurred. Accepts standard printf formatting arguments.

Definition at line 1072 of file TObject.cxx.

◆ InheritsFrom() [1/2]

Bool_t TObject::InheritsFrom ( const char * classname) const
virtualinherited

Returns kTRUE if object inherits from class "classname".

Reimplemented in TClass.

Definition at line 549 of file TObject.cxx.

◆ InheritsFrom() [2/2]

Bool_t TObject::InheritsFrom ( const TClass * cl) const
virtualinherited

Returns kTRUE if object inherits from TClass cl.

Reimplemented in TClass.

Definition at line 557 of file TObject.cxx.

◆ Inspect()

void TObject::Inspect ( ) const
virtualinherited

Dump contents of this object in a graphics canvas.

Same action as Dump but in a graphical form. In addition pointers to other objects can be followed.

The following picture is the Inspect of a histogram object:

Reimplemented in TSystemFile, TInspectorObject, TGFrame, and ROOT::Experimental::XRooFit::xRooNode.

Definition at line 570 of file TObject.cxx.

◆ InvertBit()

void TObject::InvertBit ( UInt_t f)
inlineinherited

Definition at line 206 of file TObject.h.

◆ IsA()

TClass * TView::IsA ( ) const
inlineoverridevirtualinherited
Returns
TClass describing current object

Reimplemented from TObject.

Definition at line 127 of file TView.h.

◆ IsClippedNDC()

Bool_t TView3D::IsClippedNDC ( Double_t * p) const
overridevirtual

Check if point is clipped in perspective view.

Implements TView.

Definition at line 1055 of file TView3D.cxx.

◆ IsDestructed()

Bool_t TObject::IsDestructed ( ) const
inlineinherited

IsDestructed.

Note
This function must be non-virtual as it can be used on destructed (but not yet modified) memory. This is used for example in TClonesArray to record the element that have been destructed but not deleted and thus are ready for re-use (by operator new with placement).
Returns
true if this object's destructor has been run.

Definition at line 186 of file TObject.h.

◆ IsEqual()

Bool_t TObject::IsEqual ( const TObject * obj) const
virtualinherited

Default equal comparison (objects are equal if they have the same address in memory).

More complicated classes might want to override this function.

Reimplemented in TObjString, TQCommand, TPair, and TGObject.

Definition at line 589 of file TObject.cxx.

◆ IsFolder()

◆ IsOnHeap()

R__ALWAYS_INLINE Bool_t TObject::IsOnHeap ( ) const
inlineinherited

Definition at line 160 of file TObject.h.

◆ IsPerspective()

Bool_t TView3D::IsPerspective ( ) const
inlineoverridevirtual

Implements TView.

Definition at line 109 of file TView3D.h.

◆ IsSortable()

◆ IsViewChanged()

Bool_t TView3D::IsViewChanged ( ) const
inlineoverridevirtual

Implements TView.

Definition at line 110 of file TView3D.h.

◆ IsZombie()

R__ALWAYS_INLINE Bool_t TObject::IsZombie ( ) const
inlineinherited

Definition at line 161 of file TObject.h.

◆ ls()

◆ MakeZombie()

void TObject::MakeZombie ( )
inlineprotectedinherited

Definition at line 55 of file TObject.h.

◆ MayNotUse()

void TObject::MayNotUse ( const char * method) const
inherited

Use this method to signal that a method (defined in a base class) may not be called in a derived class (in principle against good design since a child class should not provide less functionality than its parent, however, sometimes it is necessary).

Definition at line 1160 of file TObject.cxx.

◆ Modify()

void TAttLine::Modify ( )
virtualinherited

Change current line attributes if necessary.

Definition at line 246 of file TAttLine.cxx.

◆ ModifyOn()

void TAttLine::ModifyOn ( TVirtualPad & pad)
virtualinherited

Change current line attributes on specified pad.

Definition at line 255 of file TAttLine.cxx.

◆ MoveFocus()

void TView3D::MoveFocus ( Double_t * cov,
Double_t dx,
Double_t dy,
Double_t dz,
Int_t nsteps = 10,
Double_t dlong = 0,
Double_t dlat = 0,
Double_t dpsi = 0 )
overridevirtual

Move focus to a different box position and extent in nsteps.

Perform rotation with dlat,dlong,dpsi at each step.

Implements TView.

Definition at line 1682 of file TView3D.cxx.

◆ MoveViewCommand()

void TView3D::MoveViewCommand ( Char_t option,
Int_t count = 1 )
overridevirtual
  • 'a' increase scale factor (clip cube borders)
  • 's' decrease scale factor (clip cube borders)

Implements TView.

Definition at line 1738 of file TView3D.cxx.

◆ MoveWindow()

void TView3D::MoveWindow ( Char_t option)
overridevirtual

Move view window :

  • l,L - left
  • h,H - right
  • u,U - down
  • i,I - up

Implements TView.

Definition at line 1786 of file TView3D.cxx.

◆ NDCtoWC() [1/2]

void TView3D::NDCtoWC ( const Double_t * pn,
Double_t * pw )
overridevirtual

Transfer point from normalized to world coordinates.

Input:

  • PN(3) - point in world coordinate system
  • PW(3) - point in normalized coordinate system

Implements TView.

Definition at line 1084 of file TView3D.cxx.

◆ NDCtoWC() [2/2]

void TView3D::NDCtoWC ( const Float_t * pn,
Float_t * pw )
overridevirtual

Transfer point from normalized to world coordinates.

Input:

  • PN(3) - point in world coordinate system
  • PW(3) - point in normalized coordinate system

Implements TView.

Definition at line 1069 of file TView3D.cxx.

◆ NormalWCtoNDC() [1/2]

void TView3D::NormalWCtoNDC ( const Double_t * pw,
Double_t * pn )
overridevirtual

Transfer vector of NORMAL from word to normalized coordinates.

Input:

  • PW(3) - vector of NORMAL in word coordinate system
  • PN(3) - vector of NORMAL in normalized coordinate system

Implements TView.

Definition at line 1127 of file TView3D.cxx.

◆ NormalWCtoNDC() [2/2]

void TView3D::NormalWCtoNDC ( const Float_t * pw,
Float_t * pn )
overridevirtual

Transfer vector of NORMAL from word to normalized coordinates.

Input:

  • PW(3) - vector of NORMAL in word coordinate system
  • PN(3) - vector of NORMAL in normalized coordinate system

Implements TView.

Definition at line 1099 of file TView3D.cxx.

◆ Notify()

Bool_t TObject::Notify ( )
virtualinherited

This method must be overridden to handle object notification (the base implementation is no-op).

Different objects in ROOT use the Notify method for different purposes, in coordination with other objects that call this method at the appropriate time.

For example, TLeaf uses it to load class information; TBranchRef to load contents of referenced branches TBranchRef; most notably, based on Notify, TChain implements a callback mechanism to inform interested parties when it switches to a new sub-tree.

Reimplemented in TMessageHandler, TNotifyLink< Type >, TNotifyLink< RNoCleanupNotifierHelper >, TNotifyLink< ROOT::Detail::TBranchProxy >, TNotifyLink< TTreeReader >, TFileHandler, TSignalHandler, TStdExceptionHandler, TProcessEventTimer, TTimer, TIdleTimer, TSingleShotCleaner, TCollection, TRefTable, TBrowserTimer, TInterruptHandler, TTermInputHandler, TThreadTimer, TGLRedrawTimer, TViewTimer, TGContainerKeyboardTimer, TGContainerScrollTimer, TGInputHandler, TViewUpdateTimer, TPopupDelayTimer, TRepeatTimer, TSBRepeatTimer, TGTextEditHist, TInsCharCom, TDelCharCom, TBreakLineCom, TInsTextCom, TDelTextCom, TBlinkTimer, TTipDelayTimer, TGuiBldDragManagerRepeatTimer, TARInterruptHandler, TASLogHandler, TASInterruptHandler, TASSigPipeHandler, TASInputHandler, TSocketHandler, TTimeOutTimer, TBranchElement, TBranchRef, TLeafObject, TSelector, TTree, TSelectorDraw, TSelectorEntries, TTreeFormula, TTreeFormulaManager, TTreeReader, h1analysis, h1analysisTreeReader, and TSysEvtHandler.

Definition at line 618 of file TObject.cxx.

◆ Obsolete()

void TObject::Obsolete ( const char * method,
const char * asOfVers,
const char * removedFromVers ) const
inherited

Use this method to declare a method obsolete.

Specify as of which version the method is obsolete and as from which version it will be removed.

Definition at line 1169 of file TObject.cxx.

◆ operator delete() [1/3]

void TObject::operator delete ( void * ptr,
size_t size )
inherited

Operator delete for sized deallocation.

Definition at line 1234 of file TObject.cxx.

◆ operator delete() [2/3]

void TObject::operator delete ( void * ptr)
inherited

Operator delete.

Definition at line 1212 of file TObject.cxx.

◆ operator delete() [3/3]

void TObject::operator delete ( void * ptr,
void * vp )
inherited

Only called by placement new when throwing an exception.

Definition at line 1266 of file TObject.cxx.

◆ operator delete[]() [1/3]

void TObject::operator delete[] ( void * ptr,
size_t size )
inherited

Operator delete [] for sized deallocation.

Definition at line 1245 of file TObject.cxx.

◆ operator delete[]() [2/3]

void TObject::operator delete[] ( void * ptr)
inherited

Operator delete [].

Definition at line 1223 of file TObject.cxx.

◆ operator delete[]() [3/3]

void TObject::operator delete[] ( void * ptr,
void * vp )
inherited

Only called by placement new[] when throwing an exception.

Definition at line 1274 of file TObject.cxx.

◆ operator new() [1/2]

void * TObject::operator new ( size_t sz)
inlineinherited

Definition at line 189 of file TObject.h.

◆ operator new() [2/2]

void * TObject::operator new ( size_t sz,
void * vp )
inlineinherited

Definition at line 191 of file TObject.h.

◆ operator new[]() [1/2]

void * TObject::operator new[] ( size_t sz)
inlineinherited

Definition at line 190 of file TObject.h.

◆ operator new[]() [2/2]

void * TObject::operator new[] ( size_t sz,
void * vp )
inlineinherited

Definition at line 192 of file TObject.h.

◆ operator=()

TView3D & TView3D::operator= ( const TView3D & tv)
protected

Assignment operator.

Definition at line 234 of file TView3D.cxx.

◆ PadRange()

void TView3D::PadRange ( Int_t rback)
overridevirtual

Set the correct window size for lego and surface plots.

Set the correct window size for lego and surface plots. And draw the background if necessary.

Input parameters:

  • RBACK : Background colour

Implements TView.

Definition at line 1157 of file TView3D.cxx.

◆ Paint()

void TObject::Paint ( Option_t * option = "")
virtualinherited

This method must be overridden if a class wants to paint itself.

The difference between Paint() and Draw() is that when a object draws itself it is added to the display list of the pad in which it is drawn (and automatically redrawn whenever the pad is redrawn). While paint just draws the object without adding it to the pad display list.

Reimplemented in TPie, TSQLFile, TXMLFile, ROOT::RGeoPainter, TGaxis, TGraph, TGraphTime, THStack, TMultiGraph, TScatter, TScatter2D, TTreePerfStats, ROOT::Experimental::RTreeMapPainter, TEfficiency, TRatioPlot, TGeoBoolNode, TGeoUnion, TGeoIntersection, TGeoSubtraction, TMarker3DBox, TGL5DDataSet, TGLHistPainter, TGLParametricEquation, TGLTH3Composition, TGraph2DPainter, TSpectrum2Painter, TFileDrawMap, TDirectory, TExec, TMacro, TStyle, TBits, TCollection, TGeoNode, TGeoPhysicalNode, TGeoShape, TGeoVolume, TGeoOverlap, TGeoPainter, TGeoTrack, TGeoVGShape, TASImage, TASPaletteEditor::PaintPalette, TASPaletteEditor::LimitLine, TAnnotation, TButton, TCanvas, TClassTree, TColorWheel, TPad, TArrow, TBox, TCrown, TDiamond, TEllipse, TFrame, TLatex, TLegend, TLine, TMarker, TMathText, TPave, TPaveLabel, TPaveStats, TPavesText, TPaveText, TPolyLine, TText, TWbox, TGraphEdge, TGraphNode, TEveArrow, TEveCaloViz, TEveDigitSet, TEveGeoTopNode, TEveGeoShape, TEvePlot3D, TEvePointSet, TEveProjectionAxes, TEveScene, TEveShape, TEveStraightLineSet, TEveText, TEveTriangleSet, TAxis3D, TNode, TNodeDiv, TPolyLine3D, TPolyMarker3D, TShape, TF1, TF2, TF3, TGraph2D, TH1, TPolyMarker, TSpline, THistPainter, TPaletteAxis, TFile, TGenerator, TParticle, TPrimary, TParallelCoordVar, TVirtualPad, TVirtualGeoPainter, TVirtualGeoTrack, TVirtualHistPainter, TParallelCoordRange, TSpider, TGraphPolargram, and TParallelCoord.

Definition at line 631 of file TObject.cxx.

◆ Pop()

void TObject::Pop ( )
virtualinherited

Pop on object drawn in a pad to the top of the display list.

I.e. it will be drawn last and on top of all other primitives.

Reimplemented in TPad, TFrame, and TVirtualPad.

Definition at line 640 of file TObject.cxx.

◆ Print()

void TObject::Print ( Option_t * option = "") const
virtualinherited

This method must be overridden when a class wants to print itself.

Reimplemented in RooCmdArg, TPad, TVirtualPad, RooLinkedList, TObjString, TParameter< AParamType >, TParameter< Long64_t >, TRootBrowserHistoryCursor, TRolke, TSQLFile, TXMLFile, TGTextEdit, TStreamerInfoActions::TActionSequence, TStatistic, TMVA::TNeuron, TBranchSTL, TGraph, TGraph2D, TGraph2DAsymmErrors, TGraph2DErrors, TGraphAsymmErrors, TGraphBentErrors, TGraphErrors, TGraphMultiErrors, THStack, TMultiGraph, TScatter, TScatter2D, TBenchmark, TMatrixTBase< Element >, TMatrixTBase< AReal >, TMatrixTBase< Double_t >, TGeoDecayChannel, TPluginHandler, TPluginManager, TQSlot, TDecompBase, TDecompBK, TDecompChol, TDecompLU, TDecompQRH, TDecompSparse, TDecompSVD, TQpDataDens, TQpDataSparse, TDatabasePDG, TParticleClassPDG, TParticlePDG, ROOT::Experimental::XRooFit::xRooNLLVar::xRooHypoPoint, ROOT::Experimental::XRooFit::xRooNLLVar::xRooHypoSpace, ROOT::Experimental::XRooFit::xRooNode, TPrincipal, TFoamCell, TFoamVect, TMVA::PDEFoamCell, TMVA::PDEFoamVect, TMVA::Event, TMVA::OptionBase, TMVA::Option< T >, TCling, TColor, TDirectory, TEnv, TFileCollection, TInetAddress, TMacro, TMessageHandler, TNamed, TStopwatch, TUri, TUrl, TBits, TClassTable, TCollection, THashTable, TObjectTable, TFunction, TGDMLMatrix, TGeoBranchArray, TGeoElement, TGeoIsotope, TGeoElementRN, TGeoBatemanSol, TGeoElementTable, TGeoMatrix, TGeoOpticalSurface, TGeoSkinSurface, TGeoBorderSurface, TGeoPhysicalNode, TGeoRegion, TGeoTessellated, TGeoVolume, TGeoVoxelFinder, TGeoOverlap, TGeoTrack, TAnnotation, TBox, TEllipse, TLegend, TLegendEntry, TLine, TMarker, TPave, TPaveText, TPolyLine, TText, TEveTrans, ROOT::Experimental::REveTrans, THelix, TPolyLine3D, TPolyMarker3D, TXTRU, TGFont, TGFontPool, TGFrame, TGCompositeFrame, TGGC, TGGCPool, TGLayoutHints, TGFrameElement, TGMimeTypes, TGPicture, TGPicturePool, TGWindow, THbookTree, TF1, TFitResult, TFormula, TH1, THnBase, TPolyMarker, ROOT::v5::TFormula, TSpectrum, TSpectrum2, TSpectrum3, TFile, TFileCacheRead, TFileCacheWrite, TKey, TMapFile, TMemFile, TZIPFile, TZIPMember, TSQLStructure, TVectorT< Element >, TVectorT< Double_t >, TLorentzVector, TQuaternion, TVector2, TVector3, TQpVar, TAttParticle, TParticle, TPrimary, TApplicationRemote, TSQLColumnInfo, TSQLTableInfo, RooStats::ModelConfig, TBranch, TBranchClones, TBranchElement, TBranchObject, TBranchRef, TChain, TEventList, TTree, TTreeCache, TTreeCacheUnzip, TTreeIndex, TTreePerfStats, TParallelCoordVar, TMultiDimFit, TParallelCoordRange, TFileInfo, TFileInfoMeta, Roo1DTable, RooAbsArg, RooAbsBinning, RooAbsCollection, RooAbsData, RooAbsDataStore, RooAbsGenContext, RooCurve, RooEllipse, RooCatType, RooFitResult, RooGenFitStudy, RooHist, RooMsgService, RooNumGenConfig, RooNumIntConfig, RooPlot, RooSharedProperties, and RooWorkspace.

Definition at line 661 of file TObject.cxx.

◆ Read()

Int_t TObject::Read ( const char * name)
virtualinherited

Read contents of object with specified name from the current directory.

First the key with the given name is searched in the current directory, next the key buffer is deserialized into the object. The object must have been created before via the default constructor. See TObject::Write().

Reimplemented in TKeyXML, TBuffer, TKey, and TKeySQL.

Definition at line 673 of file TObject.cxx.

◆ RecursiveRemove()

◆ ResetAttLine()

void TAttLine::ResetAttLine ( Option_t * option = "")
virtualinherited

Reset this line attributes to default values.

Reimplemented in TGWin32VirtualXProxy.

Definition at line 279 of file TAttLine.cxx.

◆ ResetBit()

void TObject::ResetBit ( UInt_t f)
inlineinherited

Definition at line 203 of file TObject.h.

◆ ResetView()

void TView3D::ResetView ( Double_t longitude,
Double_t latitude,
Double_t psi,
Int_t & irep )
protected

Set view direction (in spherical coordinates).

Input

  • PHI - longitude
  • THETA - latitude (angle between +Z and view direction)
  • PSI - rotation in screen plane

Output:

  • IREP - reply (-1 if error in min-max)

Errors: error in min-max scope

Definition at line 1436 of file TView3D.cxx.

◆ ResizePad()

void TView3D::ResizePad ( )
overridevirtual

Recompute window for perspective view.

Implements TView.

Definition at line 1404 of file TView3D.cxx.

◆ RotateView()

void TView3D::RotateView ( Double_t phi,
Double_t theta,
TVirtualPad * pad = nullptr )
overridevirtual

API to rotate view and adjust the pad provided it the current one.

Implements TView.

Definition at line 1554 of file TView3D.cxx.

◆ SaveAs()

void TObject::SaveAs ( const char * filename = "",
Option_t * option = "" ) const
virtualinherited

Save this object in the file specified by filename.

  • if "filename" contains ".root" the object is saved in filename as root binary file.
  • if "filename" contains ".xml" the object is saved in filename as a xml ascii file.
  • if "filename" contains ".cc" the object is saved in filename as C code independent from ROOT. The code is generated via SavePrimitive(). Specific code should be implemented in each object to handle this option. Like in TF1::SavePrimitive().
  • otherwise the object is written to filename as a CINT/C++ script. The C++ code to rebuild this object is generated via SavePrimitive(). The "option" parameter is passed to SavePrimitive. By default it is an empty string. It can be used to specify the Draw option in the code generated by SavePrimitive.

    The function is available via the object context menu.

Reimplemented in TSpline, TFolder, TGeoVolume, TClassTree, TPad, TPaveClass, TGObject, TSpline3, TSpline5, ROOT::Experimental::XRooFit::xRooNode, TTreePerfStats, TVirtualPad, TGraph, and TH1.

Definition at line 708 of file TObject.cxx.

◆ SaveLineAttributes()

void TAttLine::SaveLineAttributes ( std::ostream & out,
const char * name,
Int_t coldef = 1,
Int_t stydef = 1,
Int_t widdef = 1 )
virtualinherited

Save line attributes as C++ statement(s) on output stream out.

Definition at line 289 of file TAttLine.cxx.

◆ SavePrimitive()

void TObject::SavePrimitive ( std::ostream & out,
Option_t * option = "" )
virtualinherited

Save a primitive as a C++ statement(s) on output stream "out".

Reimplemented in TGeoTessellated, TGraphEdge, TGraphNode, TGeoIdentity, TStyle, TCurlyArc, TCurlyLine, TGedMarkerSelect, TGedPatternSelect, TGColorSelect, TGFont, TGVerticalLayout, TGHorizontalLayout, TGRowLayout, TGColumnLayout, TGMatrixLayout, TGTileLayout, TGListLayout, TGListDetailsLayout, TGTextLBEntry, TGNumberEntryField, TGNumberEntry, TGTableLayoutHints, TGTableLayout, TGTextEdit, TGTextView, TGXYLayoutHints, TGXYLayout, TRootContainer, TGHtml, TEfficiency, TExec, TMacro, TGeoArb8, TGeoTrap, TGeoGtra, TGeoBBox, TGeoBoolNode, TGeoUnion, TGeoIntersection, TGeoSubtraction, TGeoCompositeShape, TGeoCone, TGeoConeSeg, TGeoElementRN, TGeoDecayChannel, TGeoEltu, TGeoHalfSpace, TGeoHype, TGeoMaterial, TGeoMixture, TGeoTranslation, TGeoRotation, TGeoCombiTrans, TGeoHMatrix, TGeoMedium, TGeoPara, TGeoParaboloid, TGeoPatternX, TGeoPatternY, TGeoPatternZ, TGeoPatternParaX, TGeoPatternParaY, TGeoPatternParaZ, TGeoPatternTrapZ, TGeoPatternCylR, TGeoPatternCylPhi, TGeoPatternSphR, TGeoPatternSphTheta, TGeoPatternSphPhi, TGeoPcon, TGeoPgon, TGeoScaledShape, TGeoShapeAssembly, TGeoSphere, TGeoTorus, TGeoTrd1, TGeoTrd2, TGeoTube, TGeoTubeSeg, TGeoCtub, TGeoVolume, TGeoXtru, TASImage, TAnnotation, TButton, TCanvas, TGroupButton, TPad, TPaveClass, TSlider, TSliderBox, TArc, TArrow, TBox, TCrown, TCutG, TDiamond, TEllipse, TFrame, TGaxis, TGraphPolar, TGraphPolargram, TLatex, TLegend, TLine, TMarker, TMathText, TPave, TPaveLabel, TPaveStats, TPavesText, TPaveText, TPolyLine, TText, TWbox, TGraphStruct, TAxis3D, THelix, TMarker3DBox, TPolyLine3D, TPolyMarker3D, TGHorizontal3DLine, TGVertical3DLine, TGButton, TGTextButton, TGPictureButton, TGCheckButton, TGRadioButton, TGButtonGroup, TGVButtonGroup, TGHButtonGroup, TGContainer, TGCanvas, TGComboBox, TGLineStyleComboBox, TGLineWidthComboBox, TGDockableFrame, TGDoubleVSlider, TGDoubleHSlider, TGFrame, TGCompositeFrame, TGVerticalFrame, TGHorizontalFrame, TGMainFrame, TGTransientFrame, TGGroupFrame, TGFSComboBox, TGFileContainer, TGGC, TGIcon, TGLabel, TGLayoutHints, TGListBox, TGListTree, TGListView, TGLVContainer, TGMdiFrame, TGMdiMainFrame, TGMdiMenuBar, TGPopupMenu, TGMenuTitle, TGMenuBar, TGProgressBar, TGHProgressBar, TGVProgressBar, TGHScrollBar, TGVScrollBar, TGShapedFrame, TGShutterItem, TGShutter, TGVSlider, TGHSlider, TGSplitFrame, TGVSplitter, TGHSplitter, TGVFileSplitter, TGStatusBar, TGTabLayout, TGTab, TGTextEntry, TGToolBar, TGTripleVSlider, TGTripleHSlider, TRootEmbeddedCanvas, TF1, TF12, TF2, TF3, TGraph, TGraph2D, TGraph2DAsymmErrors, TGraph2DErrors, TGraphAsymmErrors, TGraphBentErrors, TGraphErrors, TGraphMultiErrors, TH1, TH2Poly, THStack, TMultiGraph, TPolyMarker, TProfile, TProfile2D, TProfile3D, TScatter, TScatter2D, TSpline3, TSpline5, TPaletteAxis, TChain, TTreePerfStats, TParallelCoord, TParallelCoordVar, TPie, and TPieSlice.

Definition at line 858 of file TObject.cxx.

◆ SavePrimitiveConstructor()

void TObject::SavePrimitiveConstructor ( std::ostream & out,
TClass * cl,
const char * variable_name,
const char * constructor_agrs = "",
Bool_t empty_line = kTRUE )
staticprotectedinherited

Save object constructor in the output stream "out".

Can be used as first statement when implementing SavePrimitive() method for the object

Definition at line 777 of file TObject.cxx.

◆ SavePrimitiveDraw()

void TObject::SavePrimitiveDraw ( std::ostream & out,
const char * variable_name,
Option_t * option = nullptr )
staticprotectedinherited

Save invocation of primitive Draw() method Skipped if option contains "nodraw" string.

Definition at line 845 of file TObject.cxx.

◆ SavePrimitiveVector()

TString TObject::SavePrimitiveVector ( std::ostream & out,
const char * prefix,
Int_t len,
Double_t * arr,
Int_t flag = 0 )
staticprotectedinherited

Save array in the output stream "out" as vector.

Create unique variable name based on prefix value Returns name of vector which can be used in constructor or in other places of C++ code If flag === kTRUE, just add empty line If flag === 111, check if array is empty and return nullptr or <vectorname>.data()

Definition at line 796 of file TObject.cxx.

◆ SetAutoRange()

void TView3D::SetAutoRange ( Bool_t autorange = kTRUE)
inlineoverridevirtual

Implements TView.

Definition at line 117 of file TView3D.h.

◆ SetAxisNDC()

void TView3D::SetAxisNDC ( const Double_t * x1,
const Double_t * x2,
const Double_t * y1,
const Double_t * y2,
const Double_t * z1,
const Double_t * z2 )
overridevirtual

Store axis coordinates in the NDC system.

Implements TView.

Definition at line 1236 of file TView3D.cxx.

◆ SetBit() [1/2]

void TObject::SetBit ( UInt_t f)
inlineinherited

Definition at line 202 of file TObject.h.

◆ SetBit() [2/2]

void TObject::SetBit ( UInt_t f,
Bool_t set )
inherited

Set or unset the user status bits as specified in f.

Definition at line 888 of file TObject.cxx.

◆ SetDefaultWindow()

void TView3D::SetDefaultWindow ( )
overridevirtual

Set default viewing window.

Implements TView.

Definition at line 1251 of file TView3D.cxx.

◆ SetDproj()

void TView3D::SetDproj ( Double_t dproj)
inlineoverridevirtual

Implements TView.

Definition at line 121 of file TView3D.h.

◆ SetDrawOption()

void TObject::SetDrawOption ( Option_t * option = "")
virtualinherited

Set drawing option for object.

This option only affects the drawing style and is stored in the option field of the TObjOptLink supporting a TPad's primitive list (TList). Note that it does not make sense to call object.SetDrawOption(option) before having called object.Draw().

Reimplemented in TSystemDirectory, TSystemFile, TPad, TGFrame, TAxis, TBrowser, TPaveStats, TGedFrame, TRootBrowserLite, and RooPlot.

Definition at line 871 of file TObject.cxx.

◆ SetDtorOnly()

void TObject::SetDtorOnly ( void * obj)
staticinherited

Set destructor only flag.

Definition at line 1204 of file TObject.cxx.

◆ SetDview()

void TView3D::SetDview ( Double_t dview)
inlineoverridevirtual

Implements TView.

Definition at line 120 of file TView3D.h.

◆ SetLatitude()

void TView3D::SetLatitude ( Double_t latitude)
inlineoverridevirtual

Implements TView.

Definition at line 122 of file TView3D.h.

◆ SetLineAttributes()

void TAttLine::SetLineAttributes ( )
virtualinherited

Invoke the DialogCanvas Line attributes.

Reimplemented in TGWin32VirtualXProxy.

Definition at line 306 of file TAttLine.cxx.

◆ SetLineColor() [1/2]

◆ SetLineColor() [2/2]

void TAttLine::SetLineColor ( TColorNumber lcolor)
inherited

Definition at line 322 of file TAttLine.cxx.

◆ SetLineColorAlpha()

void TAttLine::SetLineColorAlpha ( Color_t lcolor,
Float_t lalpha )
virtualinherited

Set a transparent line color.

Parameters
lcolordefines the line color
lalphadefines the percentage of opacity from 0. (fully transparent) to 1. (fully opaque).
Note
lalpha is ignored (treated as 1) if the TCanvas has no GL support activated.

Reimplemented in TGraphMultiErrors.

Definition at line 317 of file TAttLine.cxx.

◆ SetLineStyle()

virtual void TAttLine::SetLineStyle ( Style_t lstyle)
inlinevirtualinherited

◆ SetLineWidth()

◆ SetLongitude()

void TView3D::SetLongitude ( Double_t longitude)
inlineoverridevirtual

Implements TView.

Definition at line 123 of file TView3D.h.

◆ SetObjectStat()

void TObject::SetObjectStat ( Bool_t stat)
staticinherited

Turn on/off tracking of objects in the TObjectTable.

Definition at line 1188 of file TObject.cxx.

◆ SetOutlineToCube()

void TView3D::SetOutlineToCube ( )
overridevirtual

This is a function which creates default outline.

x = fRmin[0] X = fRmax[0]
y = fRmin[1] Y = fRmax[1]
z = fRmin[2] Z = fRmax[2]
(x,Y,Z) +---------+ (X,Y,Z)
/ /|
/ / |
/ / |
(x,y,Z) +---------+ |
| | + (X,Y,z)
| | /
| | /
| |/
+---------+
(x,y,z) (X,y,z)
Double_t fRmin[3]
Definition TView3D.h:42
Double_t fRmax[3]
Definition TView3D.h:41

Implements TView.

Definition at line 1291 of file TView3D.cxx.

◆ SetParallel()

void TView3D::SetParallel ( )
overridevirtual

Set the parallel option (default).

Implements TView.

Definition at line 1303 of file TView3D.cxx.

◆ SetPerspective()

void TView3D::SetPerspective ( )
overridevirtual

Set perspective option.

Implements TView.

Definition at line 1314 of file TView3D.cxx.

◆ SetPsi()

void TView3D::SetPsi ( Double_t psi)
inlineoverridevirtual

Implements TView.

Definition at line 124 of file TView3D.h.

◆ SetRange() [1/2]

void TView3D::SetRange ( const Double_t * min,
const Double_t * max )
overridevirtual

Set Range function.

Implements TView.

Definition at line 1326 of file TView3D.cxx.

◆ SetRange() [2/2]

void TView3D::SetRange ( Double_t x0,
Double_t y0,
Double_t z0,
Double_t x1,
Double_t y1,
Double_t z1,
Int_t flag = 0 )
overridevirtual

Set 3-D View range.

Input:

  • x0, y0, z0 are minimum coordinates
  • x1, y1, z1 are maximum coordinates
  • flag values are:
    • 0 (set always) <- default
    • 1 (shrink view)
    • 2 (expand view)

Implements TView.

Definition at line 1349 of file TView3D.cxx.

◆ SetSystem()

void TView3D::SetSystem ( Int_t system)
inlineoverridevirtual

Implements TView.

Definition at line 130 of file TView3D.h.

◆ SetUniqueID()

void TObject::SetUniqueID ( UInt_t uid)
virtualinherited

Set the unique object id.

Definition at line 899 of file TObject.cxx.

◆ SetView()

void TView3D::SetView ( Double_t longitude,
Double_t latitude,
Double_t psi,
Int_t & irep )
overridevirtual

Set view parameters.

Implements TView.

Definition at line 1396 of file TView3D.cxx.

◆ SetViewChanged()

void TView3D::SetViewChanged ( Bool_t flag = kTRUE)
inlineoverridevirtual

Implements TView.

Definition at line 132 of file TView3D.h.

◆ SetWindow()

void TView3D::SetWindow ( Double_t u0,
Double_t v0,
Double_t du,
Double_t dv )
overridevirtual

Set viewing window.

Implements TView.

Definition at line 1385 of file TView3D.cxx.

◆ ShowAxis()

void TView3D::ShowAxis ( )
overridevirtual

Implements TView.

Definition at line 1931 of file TView3D.cxx.

◆ Side()

void TView3D::Side ( )
overridevirtual

Implements TView.

Definition at line 1932 of file TView3D.cxx.

◆ SideView()

void TView3D::SideView ( TVirtualPad * pad = nullptr)
overridevirtual

Set to side view.

Implements TView.

Definition at line 1575 of file TView3D.cxx.

◆ Streamer()

void TView::Streamer ( TBuffer & R__b)
overridevirtualinherited

Stream an object of class TObject.

Reimplemented from TObject.

◆ StreamerNVirtual()

void TView::StreamerNVirtual ( TBuffer & ClassDef_StreamerNVirtual_b)
inlineinherited

Definition at line 127 of file TView.h.

◆ SysError()

void TObject::SysError ( const char * location,
const char * fmt,
... ) const
virtualinherited

Issue system error message.

Use "location" to specify the method where the system error occurred. Accepts standard printf formatting arguments.

Definition at line 1112 of file TObject.cxx.

◆ TestBit()

R__ALWAYS_INLINE Bool_t TObject::TestBit ( UInt_t f) const
inlineinherited

Definition at line 204 of file TObject.h.

◆ TestBits()

Int_t TObject::TestBits ( UInt_t f) const
inlineinherited

Definition at line 205 of file TObject.h.

◆ ToggleRulers()

void TView3D::ToggleRulers ( TVirtualPad * pad = nullptr)
overridevirtual

Turn on /off 3D axis.

Implements TView.

Definition at line 1599 of file TView3D.cxx.

◆ ToggleZoom()

void TView3D::ToggleZoom ( TVirtualPad * pad = nullptr)
overridevirtual

Turn on /off the interactive option to Zoom / Move / Change attributes of 3D axis correspond this view.

Implements TView.

Definition at line 1608 of file TView3D.cxx.

◆ Top()

void TView3D::Top ( )
overridevirtual

Implements TView.

Definition at line 1933 of file TView3D.cxx.

◆ TopView()

void TView3D::TopView ( TVirtualPad * pad = nullptr)
overridevirtual

Set to top view.

Implements TView.

Definition at line 1591 of file TView3D.cxx.

◆ UnZoom()

void TView3D::UnZoom ( )
overridevirtual

Implements TView.

Definition at line 1936 of file TView3D.cxx.

◆ UnzoomView()

void TView3D::UnzoomView ( TVirtualPad * pad = nullptr,
Double_t unZoomFactor = 1.25 )
overridevirtual

unZOOM this view.

Implements TView.

Definition at line 1650 of file TView3D.cxx.

◆ UseCurrentStyle()

void TObject::UseCurrentStyle ( )
virtualinherited

Set current style settings in this object This function is called when either TCanvas::UseCurrentStyle or TROOT::ForceStyle have been invoked.

Reimplemented in TCanvas, TPad, TFrame, TPaveStats, TPaveText, TAxis3D, TGraph, TH1, and TTree.

Definition at line 909 of file TObject.cxx.

◆ Warning()

void TObject::Warning ( const char * location,
const char * fmt,
... ) const
virtualinherited

Issue warning message.

Use "location" to specify the method where the warning occurred. Accepts standard printf formatting arguments.

Definition at line 1084 of file TObject.cxx.

◆ WCtoNDC() [1/2]

void TView3D::WCtoNDC ( const Double_t * pw,
Double_t * pn )
overridevirtual

Transfer point from world to normalized coordinates.

Input:

  • PW(3) - point in world coordinate system
  • PN(3) - point in normalized coordinate system

Implements TView.

Definition at line 1510 of file TView3D.cxx.

◆ WCtoNDC() [2/2]

void TView3D::WCtoNDC ( const Float_t * pw,
Float_t * pn )
overridevirtual

Transfer point from world to normalized coordinates.

Input:

  • PW(3) - point in world coordinate system
  • PN(3) - point in normalized coordinate system

Implements TView.

Definition at line 1478 of file TView3D.cxx.

◆ Write() [1/2]

Int_t TObject::Write ( const char * name = nullptr,
Int_t option = 0,
Int_t bufsize = 0 )
virtualinherited

Write this object to the current directory.

For more see the const version of this method.

Reimplemented in TSQLFile, TXMLFile, TDirectory, TBuffer, ROOT::TBufferMergerFile, TDirectoryFile, TFile, TParallelMergingFile, TCollection, TMap, and TTree.

Definition at line 989 of file TObject.cxx.

◆ Write() [2/2]

Int_t TObject::Write ( const char * name = nullptr,
Int_t option = 0,
Int_t bufsize = 0 ) const
virtualinherited

Write this object to the current directory.

The data structure corresponding to this object is serialized. The corresponding buffer is written to the current directory with an associated key with name "name".

Writing an object to a file involves the following steps:

  • Creation of a support TKey object in the current directory. The TKey object creates a TBuffer object.
  • The TBuffer object is filled via the class::Streamer function.
  • If the file is compressed (default) a second buffer is created to hold the compressed buffer.
  • Reservation of the corresponding space in the file by looking in the TFree list of free blocks of the file.
  • The buffer is written to the file.

Bufsize can be given to force a given buffer size to write this object. By default, the buffersize will be taken from the average buffer size of all objects written to the current file so far.

If a name is specified, it will be the name of the key. If name is not given, the name of the key will be the name as returned by GetName().

The option can be a combination of: kSingleKey, kOverwrite or kWriteDelete Using the kOverwrite option a previous key with the same name is overwritten. The previous key is deleted before writing the new object. Using the kWriteDelete option a previous key with the same name is deleted only after the new object has been written. This option is safer than kOverwrite but it is slower. NOTE: Neither kOverwrite nor kWriteDelete reduces the size of a TFile– the space is simply freed up to be overwritten; in the case of a TTree, it is more complicated. If one opens a TTree, appends some entries, then writes it out, the behaviour is effectively the same. If, however, one creates a new TTree and writes it out in this way, only the metadata is replaced, effectively making the old data invisible without deleting it. TTree::Delete() can be used to mark all disk space occupied by a TTree as free before overwriting its metadata this way. The kSingleKey option is only used by TCollection::Write() to write a container with a single key instead of each object in the container with its own key.

An object is read from the file into memory via TKey::Read() or via TObject::Read().

The function returns the total number of bytes written to the file. It returns 0 if the object cannot be written.

Reimplemented in TSQLFile, TXMLFile, TDirectory, TBuffer, TDirectoryFile, TFile, TParallelMergingFile, TCollection, TMap, and TTree.

Definition at line 964 of file TObject.cxx.

◆ Zoom()

void TView3D::Zoom ( )
overridevirtual

Implements TView.

Definition at line 1935 of file TView3D.cxx.

◆ ZoomIn()

void TView3D::ZoomIn ( )
overridevirtual

Zoom in.

Implements TView.

Definition at line 1821 of file TView3D.cxx.

◆ ZoomMove()

void TView3D::ZoomMove ( )
overridevirtual

Implements TView.

Definition at line 1934 of file TView3D.cxx.

◆ ZoomOut()

void TView3D::ZoomOut ( )
overridevirtual

Zoom out.

Implements TView.

Definition at line 1841 of file TView3D.cxx.

◆ ZoomView()

void TView3D::ZoomView ( TVirtualPad * pad = nullptr,
Double_t zoomFactor = 1.25 )
overridevirtual

ZOOM this view.

Implements TView.

Definition at line 1659 of file TView3D.cxx.

Member Data Documentation

◆ fAutoRange

Bool_t TView3D::fAutoRange
protected

Definition at line 55 of file TView3D.h.

◆ fBits

UInt_t TObject::fBits
privateinherited

bit field status word

Definition at line 47 of file TObject.h.

◆ fChanged

Bool_t TView3D::fChanged
protected

! Set to TRUE after ExecuteRotateView

Definition at line 56 of file TView3D.h.

◆ fDefaultOutline

Bool_t TView3D::fDefaultOutline
protected

Definition at line 54 of file TView3D.h.

◆ fDproj

Double_t TView3D::fDproj
protected

Definition at line 36 of file TView3D.h.

◆ fDview

Double_t TView3D::fDview
protected

Definition at line 35 of file TView3D.h.

◆ fgDtorOnly

Longptr_t TObject::fgDtorOnly = 0
staticprivateinherited

object for which to call dtor only (i.e. no delete)

Definition at line 49 of file TObject.h.

◆ fgObjectStat

Bool_t TObject::fgObjectStat = kTRUE
staticprivateinherited

if true keep track of objects in TObjectTable

Definition at line 50 of file TObject.h.

◆ fLatitude

Double_t TView3D::fLatitude
protected

Definition at line 32 of file TView3D.h.

◆ fLineColor

Color_t TAttLine::fLineColor
protectedinherited

Line color.

Definition at line 24 of file TAttLine.h.

◆ fLineStyle

Style_t TAttLine::fLineStyle
protectedinherited

Line style.

Definition at line 25 of file TAttLine.h.

◆ fLineWidth

Width_t TAttLine::fLineWidth
protectedinherited

Line width.

Definition at line 26 of file TAttLine.h.

◆ fLongitude

Double_t TView3D::fLongitude
protected

Definition at line 33 of file TView3D.h.

◆ fOutline

TSeqCollection* TView3D::fOutline
protected

Definition at line 53 of file TView3D.h.

◆ fPsi

Double_t TView3D::fPsi
protected

Definition at line 34 of file TView3D.h.

◆ fRmax

Double_t TView3D::fRmax[3]
protected

Definition at line 41 of file TView3D.h.

◆ fRmin

Double_t TView3D::fRmin[3]
protected

Definition at line 42 of file TView3D.h.

◆ fSystem

Int_t TView3D::fSystem
protected

Definition at line 52 of file TView3D.h.

◆ fTB

Double_t TView3D::fTB[16]
protected

Definition at line 40 of file TView3D.h.

◆ fTback

Double_t TView3D::fTback[16]
protected

Definition at line 45 of file TView3D.h.

◆ fTN

Double_t TView3D::fTN[16]
protected

Definition at line 39 of file TView3D.h.

◆ fTnorm

Double_t TView3D::fTnorm[16]
protected

Definition at line 44 of file TView3D.h.

◆ fUniqueID

UInt_t TObject::fUniqueID
privateinherited

object unique identifier

Definition at line 46 of file TObject.h.

◆ fUpix

Double_t TView3D::fUpix
protected

Definition at line 37 of file TView3D.h.

◆ fUVcoord

Double_t TView3D::fUVcoord[4]
protected

Definition at line 43 of file TView3D.h.

◆ fVpix

Double_t TView3D::fVpix
protected

Definition at line 38 of file TView3D.h.

◆ fX1

Double_t TView3D::fX1[3]
protected

Definition at line 46 of file TView3D.h.

◆ fX2

Double_t TView3D::fX2[3]
protected

Definition at line 47 of file TView3D.h.

◆ fY1

Double_t TView3D::fY1[3]
protected

Definition at line 48 of file TView3D.h.

◆ fY2

Double_t TView3D::fY2[3]
protected

Definition at line 49 of file TView3D.h.

◆ fZ1

Double_t TView3D::fZ1[3]
protected

Definition at line 50 of file TView3D.h.

◆ fZ2

Double_t TView3D::fZ2[3]
protected

Definition at line 51 of file TView3D.h.


The documentation for this class was generated from the following files: