52 "Static geo manager used for wrapped TGeoShapes.");
101 return &localGeoHMatrixIdentity;
232 paintComponents =
gPad->GetViewer3D()->OpenComposite(buff);
243 gPad->GetViewer3D()->CloseComposite();
261 Int_t reqSec =
gPad->GetViewer3D()->AddObject(buff);
266 Warning(eh,
"Core section required again for shape='%s'. This shouldn't happen.",
GetName());
268 reqSec =
gPad->GetViewer3D()->AddObject(buff);
272 Warning(eh,
"Extra section required: reqSec=%d, shape=%s.", reqSec,
GetName());
283 Warning(
"Save()",
"This function is deprecated, use SaveExtract() instead.");
295 TFile f(file,
"RECREATE");
332 Float_t rgba[4] = { 1, 0, 0, 1 };
430 if (
fShape == 0)
return 0;
432 if (dynamic_cast<TGeoShapeAssembly*>(
fShape)) {
445 for(
Int_t k = 0; k <
n; ++k)
478 Warning(
"SetDepthLocal",
"This function only exists to fulfill an abstract interface.");
TEveTrans is a 4x4 transformation matrix for homogeneous coordinates stored internally in a column-ma...
virtual const char * GetName() const
Returns name of object.
virtual Int_t Write(const char *name=0, Int_t option=0, Int_t bufsize=0)
Write this object to the current directory.
Abstract base-class for 2D/3D shapes.
virtual UInt_t GetUniqueID() const
Return the unique object id.
virtual void SetMiniFrame(Bool_t r)
virtual void ComputeBBox()
Override of virtual method from TAttBBox.
The manager class for any TGeo geometry.
static TGeoHMatrix * GetGeoHMatrixIdentity()
Return static identity matrix in homogeneous representation.
virtual Char_t GetMainTransparency() const
virtual Double_t GetDX() const
Geometrical transformation package.
virtual void SetOwner(Bool_t enable=kTRUE)
Set whether this collection is the owner (enable==true) of its content.
Bool_t HasChildren() const
An identity transformation.
virtual Bool_t Is2D() const =0
A ROOT file is a suite of consecutive data records (TKey instances) with a well defined format...
void ProjectPointdv(Double_t *v, Float_t d)
Project double array.
virtual void SetLineColor(Color_t c)
virtual Bool_t GetDrawFrame() const
void Save(const char *file, const char *name="Extract")
Save the shape tree as TEveGeoShapeExtract.
Matrix class used for computing global transformations Should NOT be used for node definition...
A 3D projected TEveGeoShape.
virtual void UpdateProjection()
This is virtual method from base-class TEveProjected.
virtual void SetProjection(TEveProjectionManager *mng, TEveProjectable *model)
Sets projection manager and reference in the projectable object.
void MultiplyIP(TVector3 &v, Double_t w=1) const
Multiply vector in-place.
virtual void Paint(Option_t *option="")
Paint object.
TGeoCompositeShape * fCompositeShape
virtual Bool_t GetRnrSelf() const
static UInt_t GetCSLevel()
Return CS level.
virtual Color_t GetLineColor() const
virtual void SetNameTitle(const char *name, const char *title)
Set all the TNamed parameters (name and title).
virtual ~TEveGeoShape()
Destructor.
virtual void SetDepthLocal(Float_t d)
This should never be called as this class is only used for 3D projections.
void SetNSegments(Int_t s)
Set number of segments.
void BBoxCheckPoint(Float_t x, Float_t y, Float_t z)
static TGeoManager * GetGeoMangeur()
Return static geo-manager that is used internally to make shapes lead a happy life.
virtual void Paint(Option_t *option)
Special schema for feeding the 3D buffers to the painter client.
virtual void ElementChanged(Bool_t update_scenes=kTRUE, Bool_t redraw=kFALSE)
Call this after an element has been changed so that the state can be propagated around the framework...
Bool_t GetUseTrans() const
virtual void SetDrawFrame(Bool_t f)
void SetShape(TGeoShape *s)
Set TGeoShape shown by this object.
static void IncCSLevel()
Increment CS level.
Base-class for non-linear projections.
static void SetTransform(TGeoMatrix *matrix)
Set current transformation matrix that applies to shape.
static TEveGeoShape * SubImportShapeExtract(TEveGeoShapeExtract *gse, TEveElement *parent)
Recursive version for importing a shape extract tree.
Manager class for steering of projections and managing projected objects.
void SetSectionsValid(UInt_t mask)
virtual void ComputeBBox()
Compute bounding-box.
virtual TBuffer3D * MakeBuffer3D() const
virtual void SetUniqueID(UInt_t uid)
Set the unique object id.
Class handling Boolean composition of shapes.
Abstract base-class for non-linear projectable objects.
void WriteExtract(const char *name)
Write the shape tree as TEveGeoShapeExtract to current directory.
virtual void InitMainTrans(Bool_t can_edit=kTRUE)
Initialize the main transformation to identity matrix.
virtual Color_t GetMainColor() const
Base abstract class for all shapes.
void SetAABoundingBox(const Double_t origin[3], const Double_t halfLengths[3])
Set fBBVertex in kBoundingBox section to a axis aligned (local) BB using supplied origin and box half...
R__EXTERN TEveManager * gEve
Exception safe wrapper for setting gGeoManager.
TEveProjectable * fProjectable
virtual const TBuffer3D & GetBuffer3D(Int_t reqSections, Bool_t localFrame) const
Stub implementation to avoid forcing implementation at this stage.
TEveProjectionManager * fManager
void SetMainColorRGB(UChar_t r, UChar_t g, UChar_t b)
Convert RGB values to Color_t and call SetMainColor.
void SetMainAlpha(Float_t alpha)
Set main-transparency via float alpha variable.
virtual Bool_t GetRnrChildren() const
void SetBuffer3D(TBuffer3D &buff)
Fill transformation part TBuffer3D core section.
void SaveExtract(const char *file, const char *name)
Save the shape tree as TEveGeoShapeExtract.
virtual const Double_t * GetOrigin() const
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).
virtual Bool_t SetRnrSelf(Bool_t rnr)
Set render state of this element, i.e.
TGeoShape * MakePolyShape()
Create derived TEveGeoShape form a TGeoCompositeShape.
virtual TClass * ProjectedClass(const TEveProjection *p) const
Return class for projected objects:
Generic 3D primitive description class.
static Int_t GetColor(const char *hexcolor)
Static method returning color number for color specified by hex color string of form: "#rrggbb"...
The ROOT global object gROOT contains a list of all defined classes.
virtual void AddElement(TEveElement *el)
Add el to the list of children.
virtual Double_t GetDY() const
virtual Color_t GetFillColor() const
static UInt_t DecCSLevel()
Decrement CS level.
TEveProjection * GetProjection()
R__EXTERN TGeoManager * gGeoManager
virtual Bool_t GetMiniFrame() const
virtual void CopyVizParams(const TEveElement *el)
Copy visualization parameters from element el.
virtual Bool_t SetRnrChildren(Bool_t rnr)
Set render state of this element's children, i.e.
static constexpr double s
The color creation and management class.
static TGeoMatrix * GetTransform()
Returns current transformation matrix that applies to shape.
R__EXTERN TGeoIdentity * gGeoIdentity
virtual void Add(TObject *obj)
Wrapper for TGeoShape with absolute positioning and color attributes allowing display of extracted TG...
TEveGeoShapeProjected()
Constructor.
virtual TEveTrans & RefMainTrans()
Return reference to main transformation.
Exception class thrown by TEve classes and macros.
virtual TBuffer3D * MakeBuffer3D()
Create a TBuffer3D suitable for presentation of the shape.
virtual void SetProjection(TEveProjectionManager *proj, TEveProjectable *model)
This is virtual method from base-class TEveProjected.
static TEveGeoPolyShape * Construct(TGeoCompositeShape *cshp, Int_t n_seg)
Static constructor from a composite shape.
void SetFromArray(const Double_t arr[16])
Set matrix from Double_t array.
static TGeoManager * fgGeoMangeur
Temporary holder (if passed shape is composite shape).
static TEveGeoShape * ImportShapeExtract(TEveGeoShapeExtract *gse, TEveElement *parent=0)
Import a shape extract 'gse' under element 'parent'.
TEveGeoShapeExtract * DumpShapeTree(TEveGeoShape *geon, TEveGeoShapeExtract *parent=0)
Export this shape and its descendants into a geoshape-extract.
TGeoBoolNode * GetBoolNode() const
Base class for TEveUtil visualization elements, providing hierarchy management, rendering control and...
TEveGeoShape(const TEveGeoShape &)
void BBoxInit(Float_t infinity=1e6)
Dynamic Float_t[6] X(min,max), Y(min,max), Z(min,max)
virtual void Warning(const char *method, const char *msgfmt,...) const
Issue warning message.
virtual const char * GetTitle() const
Returns title of object.
virtual void Close(Option_t *option="")
Close a file.
virtual Double_t GetDZ() const
TGeoShape * GetShape() const