51 mgr->SetNameTitle(
"TEveGeoShape::fgGeoMangeur",
52 "Static geo manager used for wrapped TGeoShapes.");
110 fCompositeShape (nullptr)
242 gPad->GetViewer3D()->CloseComposite();
265 Warning(
eh,
"Core section required again for shape='%s'. This shouldn't happen.",
GetName());
282 Warning(
"Save()",
"This function is deprecated, use SaveExtract() instead.");
294 TFile f(file,
"RECREATE");
315 she->SetTrans(
gsre->RefMainTrans().Array());
322 rgba[0] =
c->GetRed();
323 rgba[1] =
c->GetGreen();
324 rgba[2] =
c->GetBlue();
334 rgba[0] =
c->GetRed();
335 rgba[1] =
c->GetGreen();
336 rgba[2] =
c->GetBlue();
340 she->SetRnrSelf(
gsre->GetRnrSelf());
341 she->SetRnrElements(
gsre->GetRnrChildren());
342 she->SetRnrFrame(
gsre->GetDrawFrame());
343 she->SetMiniFrame(
gsre->GetMiniFrame());
344 she->SetShape(
gsre->GetShape());
345 if (
gsre->HasChildren())
349 she->GetElements()->SetOwner(
true);
351 while (i !=
gsre->EndChildren()) {
372 gsre->ElementChanged();
383 gsre->RefMainTrans().SetFromArray(
gse->GetTrans());
389 gsre->SetRnrSelf(
gse->GetRnrSelf());
390 gsre->SetRnrChildren(
gse->GetRnrElements());
391 gsre->SetDrawFrame(
gse->GetRnrFrame());
392 gsre->SetMiniFrame(
gse->GetMiniFrame());
393 gsre->SetShape(
gse->GetShape());
398 if (
gse->HasElements())
429 if (
fShape ==
nullptr)
return nullptr;
440 if (
mx.GetUseTrans())
444 for(
Int_t k = 0; k <
n; ++k)
446 mx.MultiplyIP(&
pnts[3*k]);
484 Warning(
"SetDepthLocal",
"This function only exists to fulfill an abstract interface.");
517 prj->ProjectPointdv(
p, 0);
float Float_t
Float 4 bytes (float)
const char Option_t
Option string (const char)
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
R__EXTERN TEveManager * gEve
winID h TVirtualViewer3D TVirtualGLPainter p
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char mx
R__EXTERN TGeoManager * gGeoManager
R__EXTERN TGeoIdentity * gGeoIdentity
void BBoxCheckPoint(Float_t x, Float_t y, Float_t z)
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).
void BBoxInit(Float_t infinity=1e6)
Dynamic Float_t[6] X(min,max), Y(min,max), Z(min,max)
Generic 3D primitive description class.
static UInt_t DecCSLevel()
Decrement CS level.
static UInt_t GetCSLevel()
Return CS level.
void SetSectionsValid(UInt_t mask)
static void IncCSLevel()
Increment CS level.
TClass instances represent classes, structs and namespaces in the ROOT type system.
The color creation and management class.
static Int_t GetColor(const char *hexcolor)
Static method returning color number for color specified by hex color string of form: "#rrggbb",...
Base class for TEveUtil visualization elements, providing hierarchy management, rendering control and...
virtual void InitMainTrans(Bool_t can_edit=kTRUE)
Initialize the main transformation to identity matrix.
virtual void AddElement(TEveElement *el)
Add el to the list of children.
virtual TEveTrans & RefMainTrans()
Return reference to main transformation.
virtual Color_t GetMainColor() const
virtual Char_t GetMainTransparency() const
Exception class thrown by TEve classes and macros.
Exception safe wrapper for setting gGeoManager.
static TEveGeoPolyShape * Construct(TGeoCompositeShape *cshp, Int_t n_seg)
Static constructor from a composite shape.
void UpdateProjection() override
This is virtual method from base-class TEveProjected.
TEveGeoShapeProjected()
Constructor.
void SetDepthLocal(Float_t d) override
This should never be called as this class is only used for 3D projections.
void ComputeBBox() override
Override of virtual method from TAttBBox.
~TEveGeoShapeProjected() override
Destructor.
void SetProjection(TEveProjectionManager *proj, TEveProjectable *model) override
This is virtual method from base-class TEveProjected.
Wrapper for TGeoShape with absolute positioning and color attributes allowing display of extracted TG...
TEveGeoShape(const TEveGeoShape &)
virtual TBuffer3D * MakeBuffer3D()
Create a TBuffer3D suitable for presentation of the shape.
void SetShape(TGeoShape *s)
Set TGeoShape shown by this object.
void SetNSegments(Int_t s)
Set number of segments.
void Save(const char *file, const char *name="Extract")
Save the shape tree as TEveGeoShapeExtract.
static TGeoManager * GetGeoMangeur()
Return static geo-manager that is used internally to make shapes lead a happy life.
TGeoCompositeShape * fCompositeShape
void SaveExtract(const char *file, const char *name)
Save the shape tree as TEveGeoShapeExtract.
TClass * ProjectedClass(const TEveProjection *p) const override
Return class for projected objects:
static TGeoHMatrix * GetGeoHMatrixIdentity()
Return static identity matrix in homogeneous representation.
static TEveGeoShape * ImportShapeExtract(TEveGeoShapeExtract *gse, TEveElement *parent=nullptr)
Import a shape extract 'gse' under element 'parent'.
static TEveGeoShape * SubImportShapeExtract(TEveGeoShapeExtract *gse, TEveElement *parent)
Recursive version for importing a shape extract tree.
static TGeoManager * fgGeoMangeur
Temporary holder (if passed shape is composite shape).
~TEveGeoShape() override
Destructor.
void ComputeBBox() override
Compute bounding-box.
void Paint(Option_t *option="") override
Paint object.
TGeoShape * MakePolyShape()
Create derived TEveGeoShape form a TGeoCompositeShape.
TEveGeoShapeExtract * DumpShapeTree(TEveGeoShape *geon, TEveGeoShapeExtract *parent=nullptr)
Export this shape and its descendants into a geoshape-extract.
void WriteExtract(const char *name)
Write the shape tree as TEveGeoShapeExtract to current directory.
Abstract base-class for non-linear projectable objects.
TEveProjectable * fProjectable
TEveProjectionManager * fManager
virtual void SetProjection(TEveProjectionManager *mng, TEveProjectable *model)
Sets projection manager and reference in the projectable object.
Manager class for steering of projections and managing projected objects.
TEveProjection * GetProjection()
Base-class for non-linear projections.
Abstract base-class for 2D/3D shapes.
void CopyVizParams(const TEveElement *el) override
Copy visualization parameters from element el.
TEveTrans is a 4x4 transformation matrix for homogeneous coordinates stored internally in a column-ma...
A ROOT file is an on-disk file, usually with extension .root, that stores objects in a file-system-li...
virtual const Double_t * GetOrigin() const
virtual Double_t GetDX() const
virtual Double_t GetDZ() const
virtual Double_t GetDY() const
void Paint(Option_t *option) override
Special schema for feeding the 3D buffers to the painter client.
Composite shapes are Boolean combinations of two or more shape components.
TGeoBoolNode * GetBoolNode() const
Matrix class used for computing global transformations Should NOT be used for node definition.
An identity transformation.
The manager class for any TGeo geometry.
Geometrical transformation package.
The shape encapsulating an assembly (union) of volumes.
Base abstract class for all shapes.
virtual const TBuffer3D & GetBuffer3D(Int_t reqSections, Bool_t localFrame) const
Stub implementation to avoid forcing implementation at this stage.
static void SetTransform(TGeoMatrix *matrix)
Set current transformation matrix that applies to shape.
static TGeoMatrix * GetTransform()
Returns current transformation matrix that applies to shape.
virtual TBuffer3D * MakeBuffer3D() const
void Add(TObject *obj) override
const char * GetName() const override
Returns name of object.
virtual UInt_t GetUniqueID() const
Return the unique object id.
virtual void Warning(const char *method, const char *msgfmt,...) const
Issue warning message.
virtual void SetUniqueID(UInt_t uid)
Set the unique object id.