53 mgr->SetNameTitle(
"REveGeoShape::fgGeoManager",
54 "Static geo manager used for wrapped TGeoShapes.");
149 fRenderData = std::make_unique<REveRenderData>(
"makeEveGeoShape");
157 std::unique_ptr<REveGeoPolyShape>
tmp_egps = std::make_unique<REveGeoPolyShape>();
237 TFile f(file,
"RECREATE");
260 she->SetTrans(
gsre->RefMainTrans().Array());
267 rgba[0] =
c->GetRed();
268 rgba[1] =
c->GetGreen();
269 rgba[2] =
c->GetBlue();
279 rgba[0] =
c->GetRed();
280 rgba[1] =
c->GetGreen();
281 rgba[2] =
c->GetBlue();
285 she->SetRnrSelf(
gsre->GetRnrSelf());
286 she->SetRnrElements(
gsre->GetRnrChildren());
287 she->SetRnrFrame(
gsre->GetDrawFrame());
288 she->SetMiniFrame(
gsre->GetMiniFrame());
289 she->SetShape(
gsre->GetShape());
290 if (
gsre->HasChildren())
294 she->GetElements()->SetOwner(
true);
296 for (
auto &
c:
gsre->RefChildren())
313 gsre->StampObjProps();
324 gsre->RefMainTrans().SetFromArray(
gse->GetTrans());
330 gsre->SetRnrSelf(
gse->GetRnrSelf());
331 gsre->SetRnrChildren(
gse->GetRnrElements());
332 gsre->SetDrawFrame(
gse->GetRnrFrame());
333 gsre->SetMiniFrame(
gse->GetMiniFrame());
334 gsre->SetShape(
gse->GetShape());
339 if (
gse->HasElements())
359 return TClass::GetClass<REvePolygonSetProjected>();
361 return TClass::GetClass<REveGeoShapeProjected>();
370 std::unique_ptr<TBuffer3D>
buff;
383 if (
mx.GetUseTrans()) {
386 for(
Int_t k = 0; k <
n; ++k) {
387 mx.MultiplyIP(&
pnts[3*k]);
429 Warning(
"SetDepthLocal",
"This function only exists to fulfill an abstract interface.");
461 prj->ProjectPointdv(
p, 0);
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
void Warning(const char *location, const char *msgfmt,...)
Use this function in warning situations.
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
virtual REveTrans & RefMainTrans()
Return reference to main transformation.
virtual void AddElement(REveElement *el)
Add el to the list of children.
virtual void InitMainTrans(Bool_t can_edit=kTRUE)
Initialize the main transformation to identity matrix.
std::unique_ptr< REveRenderData > fRenderData
Externally assigned and controlled user data.
virtual void BuildRenderData()
Write transformation Matrix to render data.
REveGeoManagerHolder Exception-safe global variable holders.
void ComputeBBox() override
Override of virtual method from TAttBBox.
std::unique_ptr< TBuffer3D > fBuff
void SetProjection(REveProjectionManager *proj, REveProjectable *model) override
This is virtual method from base-class REveProjected.
void UpdateProjection() override
This is virtual method from base-class REveProjected.
~REveGeoShapeProjected() override
Destructor.
REveGeoShapeProjected()
Constructor.
void SetDepthLocal(Float_t d) override
3d buffer
static REveGeoShape * ImportShapeExtract(REveGeoShapeExtract *gse, REveElement *parent=nullptr)
Import a shape extract 'gse' under element 'parent'.
TGeoShape * MakePolyShape()
Create derived REveGeoShape form a TGeoCompositeShape.
~REveGeoShape() override
Destructor.
static TGeoManager * fgGeoManager
Temporary holder (if passed shape is composite shape).
void SetNSegments(Int_t s)
Set number of segments.
void SaveExtract(const char *file, const char *name)
Save the shape tree as REveGeoShapeExtract.
TClass * ProjectedClass(const REveProjection *p) const override
Return class for projected objects:
static REveGeoShape * SubImportShapeExtract(REveGeoShapeExtract *gse, REveElement *parent)
Recursive version for importing a shape extract tree.
Int_t WriteCoreJson(nlohmann::json &j, Int_t rnr_offset) override
Fill core part of JSON representation.
void ComputeBBox() override
Compute bounding-box.
void WriteExtract(const char *name)
Write the shape tree as REveGeoShapeExtract to current directory.
void SetShape(TGeoShape *s)
Set TGeoShape shown by this object.
virtual std::unique_ptr< TBuffer3D > MakeBuffer3D()
Create a TBuffer3D suitable for presentation of the shape.
void BuildRenderData() override
Crates 3D point array for rendering.
static TGeoHMatrix * GetGeoHMatrixIdentity()
Return static identity matrix in homogeneous representation.
REveGeoShape(const REveGeoShape &)=delete
TGeoCompositeShape * fCompositeShape
REveGeoShapeExtract * DumpShapeTree(REveGeoShape *geon, REveGeoShapeExtract *parent=nullptr)
Export this shape and its descendants into a geoshape-extract.
virtual void SetProjection(REveProjectionManager *mng, REveProjectable *model)
Sets projection manager and reference in the projectable object.
REveProjectable * fProjectable
REveProjectionManager * fManager
REveProjectionManager Manager class for steering of projections and managing projected objects.
REveProjection * GetProjection()
REveProjection Base for specific classes that implement non-linear projections.
void CopyVizParams(const REveElement *el) override
Copy visualization parameters from element el.
Int_t WriteCoreJson(nlohmann::json &j, Int_t rnr_offset) override
Fill core part of JSON representation.
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)
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",...
A ROOT file is an on-disk file, usually with extension .root, that stores objects in a file-system-li...
Composite shapes are Boolean combinations of two or more shape components.
Matrix class used for computing global transformations Should NOT be used for node definition.
An identity transformation.
The manager class for any TGeo geometry.
The shape encapsulating an assembly (union) of volumes.
Base abstract class for all shapes.
virtual TBuffer3D * MakeBuffer3D() const
void Add(TObject *obj) override
virtual UInt_t GetUniqueID() const
Return the unique object id.
virtual void SetUniqueID(UInt_t uid)
Set the unique object id.