152 delete []
fP;
fP = 0;
175 Int_t new_size = old_size + n_points;
245 static const TEveException eh(
"TEvePointSet::SetMarkerStyle ");
266 static const TEveException eh(
"TEvePointSet::SetMarkerSize ");
319 throw(eh +
"selector is <null>.");
333 p[0] = *vx; p[1] = *vy; p[2] = *vz;
346 throw(eh +
"unknown tree variable type.");
354 throw(eh +
"sub-id array not available.");
408 Emit(
"PointSelected(Int_t)",
id);
442 fBins(0), fDefPointSetCapacity(128), fNBins(0), fLastBin(-1),
443 fMin(0), fCurMin(0), fMax(0), fCurMax(0),
467 if (
fBins[i] == el) {
487 static const TEveException eh(
"TEvePointSetArray::SetMarkerColor ");
502 static const TEveException eh(
"TEvePointSetArray::SetMarkerStyle ");
517 static const TEveException eh(
"TEvePointSetArray::SetMarkerSize ");
534 static const TEveException eh(
"TEvePointSetArray::TakeAction ");
537 throw eh +
"selector is <null>.";
547 throw eh +
"requires 4-d varexp.";
555 Fill(*vx, *vy, *vz, *qq);
556 ++vx; ++vy; ++vz; ++qq;
565 ++vx; ++vy; ++vz; ++qq;
571 throw eh +
"unknown tree variable type.";
584 const Int_t min = under ? 0 : 1;
586 for (
Int_t i = min; i < max; ++i)
602 static const TEveException eh(
"TEvePointSetArray::InitBins ");
604 if (nbins < 1)
throw eh +
"nbins < 1.";
605 if (min > max)
throw eh +
"min > max.";
712 using namespace TMath;
760 for (
Int_t i = 0; i <
n; ++i, p+=3)
778 for (
Int_t i = 0; i <
n; ++i, o+=3, p+=3)
TEveTrans is a 4x4 transformation matrix for homogeneous coordinates stored internally in a column-ma...
Abstract base class for classes that hold results of a non-linear projection transformation.
virtual const TGPicture * GetListTreeIcon(Bool_t open=kFALSE)
Return pointset icon.
void SetRange(Double_t min, Double_t max)
Set active range of the separating quantity.
Int_t fDefPointSetCapacity
virtual Double_t * GetVal(Int_t i) const
Return the last values corresponding to the i-th component of the formula being processed (where the ...
virtual Double_t * GetV2() const
virtual void SetName(const char *name)
Change (i.e.
static const TGPicture * fgListTreeIcons[9]
This is the ROOT implementation of the Qt object communication mechanism (see also http://www...
Size_t fMarkerSize
Marker size.
void ClearIds()
Clears the id-array. If ids are owned the TObjects are deleted.
virtual void PaintStandard(TObject *id)
Paint object – a generic implementation for EVE elements.
virtual void CopyVizParams(const TEveElement *el)
Copy visualization parameters from element el.
virtual Int_t Size(Bool_t under=kFALSE, Bool_t over=kFALSE) const
Get the total number of filled points.
TEvePointSetProjected()
Default contructor.
virtual void ClonePoints(const TEvePointSet &e)
Clone points and all point-related information from point-set 'e'.
Short_t Min(Short_t a, Short_t b)
virtual void SetMarkerStyle(Style_t mstyle=1)
Set marker style, propagate to projecteds.
virtual void SetProjection(TEveProjectionManager *mng, TEveProjectable *model)
Sets projection manager and reference in the projectable object.
virtual void UpdateProjection()
Re-apply the projection.
Int_t FloorNint(Double_t x)
virtual void RemoveElementsLocal()
Virtual from TEveElement, provide bin management.
virtual Int_t GetDimension() const
virtual void SetTitle(const char *t)
An array of point-sets with each point-set playing a role of a bin in a histogram.
virtual void SetMarkerColor(Color_t tcolor=1)
Set marker color, propagate to children.
Array of integers (32 bits per element).
virtual Double_t * GetV4() const
void SetMainColorPtr(Color_t *color)
virtual Style_t GetMarkerStyle() const
Return the marker style.
virtual TClass * ProjectedClass(const TEveProjection *p) const
Virtual from TEveProjectable, returns TEvePointSetProjected class.
virtual Double_t * GetV3() const
Projected copy of a TEvePointSet.
TEvePointSetArray(const TEvePointSetArray &)
void SetPointId(TObject *id)
Set id of last point.
The TNamed class is the base class for all named ROOT classes.
virtual ~TEvePointSet()
Destructor.
virtual void SetMarkerColor(Color_t mcolor=1)
Set the marker color.
virtual Size_t GetMarkerSize() const
Return the marker size.
const Int_t * GetArray() const
virtual void SetMarkerColor(Color_t col)
Set the marker color.
virtual void SaveMarkerAttributes(std::ostream &out, const char *name, Int_t coldef=1, Int_t stydef=1, Int_t sizdef=1)
Save line attributes as C++ statement(s) on output stream out.
Base-class for non-linear projections.
void Set(Int_t n)
Set size of this array to n ints.
virtual void SetMarkerSize(Size_t msize=1)
Set marker size, propagate to projecteds.
Manager class for steering of projections and managing projected objects.
TEvePointSelectorConsumer is a virtual base for classes that can be filled from TTree data via the TE...
virtual void PointSelected(Int_t id)
Virtual method of base class TPointSet3D.
Style_t fMarkerStyle
Marker style.
virtual void CopyVizParams(const TEveElement *el)
Copy visualization parameters from element el.
Abstract base-class for non-linear projectable objects.
virtual void PointSelected(Int_t n)
This virtual method is called from TPointSet3DGL when a point is selected.
virtual Double_t * GetV1() const
void SetOwnIds(Bool_t o)
Propagate id-object ownership to children.
Bool_t Fill(Double_t x, Double_t y, Double_t z, Double_t quant)
Add a new point.
TEveProjectable * fProjectable
virtual void SetDepthLocal(Float_t d)
Set depth (z-coordinate) of the projected points.
TEveProjectionManager * fManager
char * Form(const char *fmt,...)
TEvePointSet is a render-element holding a collection of 3D points with optional per-point TRef and a...
virtual Bool_t SetRnrSelf(Bool_t rnr)
Set render state of this element, i.e.
void CloseBins()
Call this after all the points have been filled.
The ROOT global object gROOT contains a list of all defined classes.
virtual void SetMarkerStyle(Style_t mstyle=1)
Set the marker style.
virtual void ComputeBBox()
Compute the bounding box of this points set.
virtual void AddElement(TEveElement *el)
Add el to the list of children.
virtual void Paint(Option_t *option="")
Paint point-set.
virtual void RemoveElementLocal(TEveElement *el)
Virtual from TEveElement, provide bin management.
virtual void TakeAction(TEvePointSelector *)
Called from TEvePointSelector when internal arrays of the tree-selector are filled up and need to be ...
virtual void SetProjection(TEveProjectionManager *proj, TEveProjectable *model)
Set projection manager and projection model.
void CopyIds(const TPointSet3D &t)
Copy id objects from point-set 't'.
void AssertIntIdsSize()
Assert that size of IntId array is compatible with the size of the point array.
virtual void SetMarkerSize(Size_t msize=1)
Set the marker size.
virtual void PointSelected(Int_t id)
Virtual method of base class TPointSet3D.
void ProjectPointfv(Float_t *v, Float_t d)
Project float array.
TEveProjection * GetProjection()
void SetPoint(Int_t n, Double_t x, Double_t y, Double_t z)
Set point n to x, y, z.
virtual Int_t SetNextPoint(Double_t x, Double_t y, Double_t z)
Set point following LastPoint to x, y, z.
virtual void InitFill(Int_t subIdNum)
Initialize point-set for new filling.
Int_t GrowFor(Int_t n_points)
Resizes internal array to allow additional n_points to be stored.
Int_t GetPointIntId(Int_t p, Int_t i) const
Return i-th integer id of point with index p.
virtual void WriteVizParams(std::ostream &out, const TString &var)
Write visualization parameters.
virtual Int_t GetNfill() const
you should not use this method at all Int_t Int_t Double_t Double_t Double_t e
void SetPointIntIds(Int_t *ids)
Set integer ids for the last point that was registered (most probably via TPolyMarker3D::SetNextPoint...
virtual void SetMarkerSize(Size_t msize=1)
Set marker size, propagate to children.
virtual void TakeAction(TEvePointSelector *)
Called from TEvePointSelector when internal arrays of the tree-selector are filled up and need to be ...
void Reset(Int_t n_points=0, Int_t n_int_ids=0)
Drop all data and set-up the data structures to recive new data.
Binding & operator=(OUT(*fun)(void))
Mother of all ROOT objects.
you should not use this method at all Int_t Int_t z
ProjList_t fProjectedList
void SetDepthCommon(Float_t d, TEveElement *el, Float_t *bbox)
Utility function to update the z-values of the bounding-box.
virtual void RemoveElements()
Remove all elements.
virtual Int_t GetN() const
Short_t Max(Short_t a, Short_t b)
virtual void WriteVizParams(std::ostream &out, const TString &var)
Write-out visual parameters for this object.
virtual Float_t * GetP() const
Exception class thrown by TEve classes and macros.
void SetPointId(TObject *id)
Set external object id of the last added point.
void Emit(const char *signal, const T &arg)
Activate signal with single parameter.
TEvePointSet(Int_t n_points=0, ETreeVarType_e tv_type=kTVT_XYZ)
Constructor.
Int_t * GetPointIntIds(Int_t p) const
Return a pointer to integer ids of point with index p.
virtual ~TEvePointSetArray()
Destructor: deletes the fBins array.
virtual Color_t GetMarkerColor() const
Return the marker color.
virtual TEveTrans * PtrMainTrans(Bool_t create=kTRUE)
Return pointer to main transformation.
TPolyMarker3D using TPointSet3DGL for direct OpenGL rendering.
Color_t fMarkerColor
Marker color.
virtual void SetMarkerStyle(Style_t mstyle=1)
Set marker style, propagate to children.
Base class for TEveUtil visualization elements, providing hierarchy management, rendering control and...
void InitBins(const char *quant_name, Int_t nbins, Double_t min, Double_t max)
Initialize internal point-sets with given binning parameters.
Int_t CeilNint(Double_t x)
virtual Int_t Size() const
TEvePointSelector is a sub-class of TSelectorDraw for direct extraction of point-like data from a Tre...
Double_t fMin
Index of the last filled TEvePointSet.