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
24
25////////////////////////////////////////////////////////////////////////////////
26/// Constructor.
27
30 TNamed("TEveProjectionAxes", ""),
31 fManager(m),
32
33 fUseColorSet(useCS),
34
37
40{
42 fManager->AddDependent(this);
43
44 // Axis attributes.
45 fNdivisions = 1010;
46 fLabelSize = 0.015;
48 fAxisColor = kGray+1;
49 fTickLength = 0.015;
50 fLabelOffset = 0.01;
51}
52
53////////////////////////////////////////////////////////////////////////////////
54/// Destructor.
55
57{
58 fManager->RemoveDependent(this);
59}
60
61////////////////////////////////////////////////////////////////////////////////
62/// Paint this object. Only direct rendering is supported.
63
68
69////////////////////////////////////////////////////////////////////////////////
70/// Virtual from TAttBBox; fill bounding-box information.
71
73{
74 static const TEveException eH("TEveProjectionManager::ComputeBBox ");
75
76 BBoxZero();
77 if(fManager == nullptr || fManager->GetBBox() == nullptr)
78 return;
79
80 for (Int_t i=0; i<6; ++i)
81 fBBox[i] = fManager->GetBBox()[i];
82
84}
85
86////////////////////////////////////////////////////////////////////////////////
87/// Return TEveProjectionAxes icon.
88
int Int_t
Signed integer 4 bytes (int).
Definition RtypesCore.h:59
bool Bool_t
Boolean (0=false, 1=true) (bool).
Definition RtypesCore.h:77
constexpr Bool_t kFALSE
Definition RtypesCore.h:108
const char Option_t
Option string (const char).
Definition RtypesCore.h:80
@ kGray
Definition Rtypes.h:66
Color_t fAxisColor
Color of the line axis.
Definition TAttAxis.h:22
Int_t fNdivisions
Number of divisions(10000*n3 + 100*n2 + n1).
Definition TAttAxis.h:21
Float_t fTickLength
Length of tick marks.
Definition TAttAxis.h:27
Float_t fLabelSize
Size of labels.
Definition TAttAxis.h:26
Color_t fLabelColor
Color of labels.
Definition TAttAxis.h:23
Float_t fLabelOffset
Offset of labels.
Definition TAttAxis.h:25
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:41
void AssertBBoxExtents(Float_t epsilon=0.005)
Assert extents of all sides of the bounding-box are at least epsilon.
Definition TAttBBox.cxx:61
Float_t * fBBox
! Dynamic Float_t[6] X(min,max), Y(min,max), Z(min,max)
Definition TAttBBox.h:20
TEveElement()
Default constructor.
static const TGPicture * fgListTreeIcons[9]
Definition TEveElement.h:54
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
TEveProjectionAxes(const TEveProjectionAxes &)
void Paint(Option_t *option="") override
Paint this object. Only direct rendering is supported.
void ComputeBBox() override
Virtual from TAttBBox; fill bounding-box information.
TEveProjectionManager * fManager
const TGPicture * GetListTreeIcon(Bool_t open=kFALSE) override
Return TEveProjectionAxes icon.
~TEveProjectionAxes() override
Destructor.
Manager class for steering of projections and managing projected objects.
The TGPicture class implements pictures and icons used in the different GUI elements and widgets.
Definition TGPicture.h:25
TNamed()
Definition TNamed.h:38
TMarker m
Definition textangle.C:8