60 Info(eh.
Data(),
"has already been run.");
114 gClient->GetMimeTypeList()->AddType(
"root/tmacro",
"TEveMacro",
115 "tmacro_s.xpm",
"tmacro_t.xpm",
"");
125 void ChompTailAndDir(
TString&
s,
char c=
'.')
148 TString foo(mac); ChompTailAndDir(foo);
171 gROOT->LoadMacro(mac);
173 TString foo(mac); ChompTailAndDir(foo); foo +=
"()";
183 gROOT->LoadMacro(mac);
200 if (alpha) col[3] = 255;
205 col[0] = 255; col[1] = 0; col[2] = 255;
206 if (alpha) col[3] = 255;
217 UChar_t alpha = (255*(100 - transparency))/100;
230 col[0] = 255; col[1] = 0; col[2] = 255; col[3] = alpha;
249 if (alpha) col[3] = 255;
265 Int_t off = obj->IsA()->GetDataMemberOffset(varname);
267 throw(eh +
"could not find member '" + varname +
"' in class " + obj->IsA()->
GetName() +
".");
268 return (
Color_t*) (((
char*)obj) + off);
282 if (value < -2.5 || value > 2.5)
284 Error(
"TEveUtil::SetColorBrightness",
"value '%f' out of range [-0.5, 0.5].", value);
294 for (
Int_t i = 0; i < n_col; ++i)
303 for (
Int_t i = 0; i < n_col; ++i)
311 croot =
new TColor(*cdef);
312 colors->
AddAt(croot, i);
337 if (full_redraw &&
gEve != 0)
349 using namespace TMath;
355 else if (minQ > maxM)
359 return minQ >= minM && maxQ <= maxM;
370 using namespace TMath;
376 else if (minQ > maxM)
380 return maxQ >= minM && minQ <= maxM;
388 if (minQ>=minM && maxQ<=maxM)
391 else if (minQ<minM && maxQ>maxM)
392 return (maxM-minM)/(maxQ-minQ);
394 else if (minQ>=minM && maxQ>maxM)
395 return (maxM-minQ)/(maxQ-minQ);
397 else if (minQ<minM && maxQ<=maxM)
398 return (maxQ-minM)/(maxQ-minQ);
414 {
return (s == t.Data()); }
417 {
return (s == t.Data()); }
451 fModifyUpdateP (modify_update_p)
592 static const TEveException eh(
"TEveRefBackPtr::DecRefCount ");
596 if (--(i->second) <= 0)
600 Warning(eh,
"render element '%s' not found in back-refs.",
613 i->first->AddStamp(stamps);
static TObjArray * fgDefaultColors
The manager class for any TGeo geometry.
friend TString operator+(const TString &s1, const TString &s2)
Use the special concatenation constructor.
Standard utility functions for Eve.
static const TGPicture * fgRnrIcons[4]
Base-class for reference-counted objects with reverse references to TEveElement objects.
constexpr Double_t TwoPi()
static void LoadMacro(const char *mac)
Makes sure that macro 'mac' is loaded, but do not reload it.
An identity transformation.
static const TGPicture * fgListTreeIcons[9]
static Bool_t IsU1IntervalOverlappingByMinMax(Float_t minM, Float_t maxM, Float_t minQ, Float_t maxQ)
Return true if interval Q is overlapping within interval M for U1 variables.
virtual ~TEveGeoManagerHolder()
Destructor.
Short_t Min(Short_t a, Short_t b)
TObject * At(Int_t idx) const
TEveRefBackPtr & operator=(const TEveRefBackPtr &)
Assignment operator.
virtual void GetRGB(Float_t &r, Float_t &g, Float_t &b) const
virtual TVirtualPad * cd(Int_t subpadnumber=0)=0
LongDouble_t Power(LongDouble_t x, LongDouble_t y)
static void AssertMacro(const char *mac)
Load and execute macro 'mac' if it has not been loaded yet.
bool operator==(const TString &t, const std::string &s)
Exception safe wrapper for setting gPad.
static Float_t GetFraction(Float_t minM, Float_t maxM, Float_t minQ, Float_t maxQ)
Get fraction of interval [minQ, maxQ] in [minM, maxM].
TEveGeoManagerHolder(const TEveGeoManagerHolder &)
void Info(const char *location, const char *msgfmt,...)
static void SetupEnvironment()
Setup Include and Macro paths.
TVirtualPad is an abstract base class for the Pad and Canvas classes.
void Error(const char *location, const char *msgfmt,...)
void Copy(TObject &color) const
Copy this color to obj.
Int_t GetNsegments() const
Get number of segments approximating circles.
R__EXTERN TEveManager * gEve
Exception safe wrapper for setting gGeoManager.
virtual TObject * RemoveAt(Int_t idx)
Remove object at index idx.
Int_t GetEntriesFast() const
Base-class for reference-counted objects.
void Warning(const char *location, const char *msgfmt,...)
virtual void AddAt(TObject *obj, Int_t idx)
Add object at position ids.
TObjArray * GetListOfMatrices() const
virtual ~TEvePadHolder()
Destructor.
TString & Remove(Ssiz_t pos)
TEveRefBackPtr()
Default constructor.
R__EXTERN TGeoManager * gGeoManager
void FullRedraw3D(Bool_t resetCameras=kFALSE, Bool_t dropLogicals=kFALSE)
Perform 3D redraw of all scenes and viewers.
Ssiz_t Last(char c) const
Find last occurrence of a character c.
static void Macro(const char *mac)
Execute macro 'mac'. Do not reload the macro.
virtual void SetRGB(Float_t r, Float_t g, Float_t b)
Initialize this color and its associated colors.
static Bool_t IsU1IntervalContainedByMinMax(Float_t minM, Float_t maxM, Float_t minQ, Float_t maxQ)
Return true if interval Q is contained within interval M for U1 variables.
static constexpr double s
The color creation and management class.
virtual TObject * GetObject(const TEveException &eh) const
Get a TObject associated with this render-element.
virtual ~TEveRefBackPtr()
Destructor. Noop, should complain if back-ref list is not empty.
Mother of all ROOT objects.
void SetNsegments(Int_t nseg)
Set number of segments for approximating circles in drawing.
R__EXTERN TGeoIdentity * gGeoIdentity
static void ColorFromIdx(Color_t ci, UChar_t col[4], Bool_t alpha=kTRUE)
Fill col with RGBA values corresponding to index ci.
you should not use this method at all Int_t Int_t Double_t Double_t Double_t Int_t Double_t Double_t Double_t Double_t b
static void SetColorBrightness(Float_t value, Bool_t full_redraw=kFALSE)
Tweak all ROOT colors to become brighter (if value > 0) or darker (value < 0).
Exception class thrown by TEve classes and macros.
TString()
TString default ctor.
virtual void StampBackPtrElements(UChar_t stamps)
Add given stamps to elements in the list of reverse references.
virtual const char * GetName() const
Returns name of object.
static Bool_t CheckMacro(const char *mac)
Checks if macro 'mac' is loaded.
RefMap_t::iterator RefMap_i
Base class for TEveUtil visualization elements, providing hierarchy management, rendering control and...
static Color_t * FindColorVar(TObject *obj, const char *varname)
Find address of Color_t data-member with name varname in object obj.
TEvePadHolder(const TEvePadHolder &)
static void SetupGUI()
Setup icon pictures and mime-types.
const char * Data() const
static constexpr double g