Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TEveProjectionAxes.cxx
Go to the documentation of this file.
1// @(#)root/eve:$Id$
2// Author: Matevz Tadel 2007
3
4/*************************************************************************
5* Copyright (C) 1995-2007, Rene Brun and Fons Rademakers. *
6* All rights reserved. *
7* *
8* For the licensing terms see $ROOTSYS/LICENSE. *
9* For the list of contributors see $ROOTSYS/README/CREDITS. *
10*************************************************************************/
11
12#include "TEveProjectionAxes.h"
14
15
16/** \class TEveProjectionAxes
17\ingroup TEve
18Axes for non-linear projections. Show scale of TEveProjectionManager
19children. With different step mode tick-marks can positioned
20equidistant or placed with value monotonically increasing from lower left corner
21of bounding box.
22*/
23
25
26////////////////////////////////////////////////////////////////////////////////
27/// Constructor.
28
31 TNamed("TEveProjectionAxes", ""),
32 fManager(m),
33
34 fUseColorSet(useCS),
35
36 fLabMode(kValue),
37 fAxesMode(kAll),
38
39 fDrawCenter(kFALSE),
40 fDrawOrigin(kFALSE)
41{
44
45 // Axis attributes.
46 fNdivisions = 1010;
47 fLabelSize = 0.015;
49 fAxisColor = kGray+1;
50 fTickLength = 0.015;
51 fLabelOffset = 0.01;
52}
53
54////////////////////////////////////////////////////////////////////////////////
55/// Destructor.
56
58{
60}
61
62////////////////////////////////////////////////////////////////////////////////
63/// Paint this object. Only direct rendering is supported.
64
66{
67 PaintStandard(this);
68}
69
70////////////////////////////////////////////////////////////////////////////////
71/// Virtual from TAttBBox; fill bounding-box information.
72
74{
75 static const TEveException eH("TEveProjectionManager::ComputeBBox ");
76
77 BBoxZero();
78 if(fManager == 0 || fManager->GetBBox() == 0)
79 return;
80
81 for (Int_t i=0; i<6; ++i)
82 fBBox[i] = fManager->GetBBox()[i];
83
85}
86
87////////////////////////////////////////////////////////////////////////////////
88/// Return TEveProjectionAxes icon.
89
91{
93}
const Bool_t kFALSE
Definition RtypesCore.h:101
const char Option_t
Definition RtypesCore.h:66
#define ClassImp(name)
Definition Rtypes.h:364
@ kGray
Definition Rtypes.h:65
Color_t fAxisColor
Color of the line axis.
Definition TAttAxis.h:21
Int_t fNdivisions
Number of divisions(10000*n3 + 100*n2 + n1)
Definition TAttAxis.h:20
Float_t fTickLength
Length of tick marks.
Definition TAttAxis.h:26
Float_t fLabelSize
Size of labels.
Definition TAttAxis.h:25
Color_t fLabelColor
Color of labels.
Definition TAttAxis.h:22
Float_t fLabelOffset
Offset of labels.
Definition TAttAxis.h:24
void BBoxZero(Float_t epsilon=0, Float_t x=0, Float_t y=0, Float_t z=0)
Create cube of volume (2*epsilon)^3 at (x,y,z).
Definition TAttBBox.cxx:42
void AssertBBoxExtents(Float_t epsilon=0.005)
Assert extents of all sides of the bounding-box are at least epsilon.
Definition TAttBBox.cxx:62
Float_t * GetBBox()
Definition TAttBBox.h:44
Float_t * fBBox
Definition TAttBBox.h:20
Base class for TEveUtil visualization elements, providing hierarchy management, rendering control and...
Definition TEveElement.h:36
static const TGPicture * fgListTreeIcons[9]
Definition TEveElement.h:65
Bool_t fCanEditMainTrans
Definition TEveElement.h:96
virtual void PaintStandard(TObject *id)
Paint object – a generic implementation for EVE elements.
Exception class thrown by TEve classes and macros.
Definition TEveUtil.h:102
Axes for non-linear projections.
TEveProjectionAxes(const TEveProjectionAxes &)
virtual const TGPicture * GetListTreeIcon(Bool_t open=kFALSE)
Return TEveProjectionAxes icon.
virtual ~TEveProjectionAxes()
Destructor.
virtual void ComputeBBox()
Virtual from TAttBBox; fill bounding-box information.
TEveProjectionManager * fManager
virtual void Paint(Option_t *option="")
Paint this object. Only direct rendering is supported.
Manager class for steering of projections and managing projected objects.
void RemoveDependent(TEveElement *el)
Remove el as dependent element.
void AddDependent(TEveElement *el)
Add el as dependent element.
The TGPicture class implements pictures and icons used in the different GUI elements and widgets.
Definition TGPicture.h:25
The TNamed class is the base class for all named ROOT classes.
Definition TNamed.h:29
auto * m
Definition textangle.C:8