51 mgr->SetNameTitle(
"TEveGeoShape::fgGeoMangeur",
52 "Static geo manager used for wrapped TGeoShapes.");
111 fCompositeShape (nullptr)
243 gPad->GetViewer3D()->CloseComposite();
266 Warning(
eh,
"Core section required again for shape='%s'. This shouldn't happen.",
GetName());
283 Warning(
"Save()",
"This function is deprecated, use SaveExtract() instead.");
295 TFile f(file,
"RECREATE");
316 she->SetTrans(
gsre->RefMainTrans().Array());
323 rgba[0] =
c->GetRed();
324 rgba[1] =
c->GetGreen();
325 rgba[2] =
c->GetBlue();
335 rgba[0] =
c->GetRed();
336 rgba[1] =
c->GetGreen();
337 rgba[2] =
c->GetBlue();
341 she->SetRnrSelf(
gsre->GetRnrSelf());
342 she->SetRnrElements(
gsre->GetRnrChildren());
343 she->SetRnrFrame(
gsre->GetDrawFrame());
344 she->SetMiniFrame(
gsre->GetMiniFrame());
345 she->SetShape(
gsre->GetShape());
346 if (
gsre->HasChildren())
350 she->GetElements()->SetOwner(
true);
352 while (i !=
gsre->EndChildren()) {
373 gsre->ElementChanged();
384 gsre->RefMainTrans().SetFromArray(
gse->GetTrans());
390 gsre->SetRnrSelf(
gse->GetRnrSelf());
391 gsre->SetRnrChildren(
gse->GetRnrElements());
392 gsre->SetDrawFrame(
gse->GetRnrFrame());
393 gsre->SetMiniFrame(
gse->GetMiniFrame());
394 gsre->SetShape(
gse->GetShape());
399 if (
gse->HasElements())
430 if (
fShape ==
nullptr)
return nullptr;
441 if (
mx.GetUseTrans())
445 for(
Int_t k = 0; k <
n; ++k)
447 mx.MultiplyIP(&
pnts[3*k]);
486 Warning(
"SetDepthLocal",
"This function only exists to fulfill an abstract interface.");
519 prj->ProjectPointdv(
p, 0);
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.
A 3D projected TEveGeoShape.
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.