123 while ((dnode = (
TGeoNode*) next()) != 0)
274 Warning(
"Save()",
"This function is deprecated, use SaveExtract() instead.");
316 static const TEveException eh(
"TEveGeoNode::DumpShapeTree ");
325 Info(eh,
"Null TGeoNode for TEveGeoNode '%s': assuming it's a holder and descending.", geon->
GetName());
331 Warning(eh,
"Null TGeoVolume for TEveGeoNode '%s'; skipping its sub-tree.\n", geon->
GetName());
361 Warning(eh,
"Failed extracting CSG tesselation TEveGeoNode '%s'; skipping its sub-tree.\n", geon->
GetName());
382 t(1,1) = rm[0]; t(1,2) = rm[1]; t(1,3) = rm[2];
383 t(2,1) = rm[3]; t(2,2) = rm[4]; t(2,3) = rm[5];
384 t(3,1) = rm[6]; t(3,2) = rm[7]; t(3,3) = rm[8];
385 t(1,4) = tv[0]; t(2,4) = tv[1]; t(3,4) = tv[2];
398 Float_t rgba[4] = {1, 0, 0, 1.0f - transp/100.0f};
400 rgba[0] =
c->GetRed();
401 rgba[1] =
c->GetGreen();
402 rgba[2] =
c->GetBlue();
408 rgba[0] =
c->GetRed();
409 rgba[1] =
c->GetGreen();
410 rgba[2] =
c->GetBlue();
472 fMaxVisNodes (maxvisnds)
554 static const TEveException eh(
"TEveGeoTopNode::VolumeVisChanged ");
555 printf(
"%s volume %s %p\n", eh.
Data(), volume->
GetName(), (
void*)volume);
564 static const TEveException eh(
"TEveGeoTopNode::VolumeColChanged ");
565 printf(
"%s volume %s %p\n", eh.
Data(), volume->
GetName(), (
void*)volume);
574 static const TEveException eh(
"TEveGeoTopNode::NodeVisChanged ");
575 printf(
"%s node %s %p\n", eh.
Data(), node->
GetName(), (
void*)node);
R__EXTERN TGeoManager * gGeoManager
virtual Color_t GetLineColor() const
Return the line color.
virtual void SetOwner(Bool_t enable=kTRUE)
Set whether this collection is the owner (enable==true) of its content.
The color creation and management class.
static Int_t GetColorDark(Int_t color)
Static function: Returns the dark color number corresponding to n If the TColor object does not exist...
Base class for TEveUtil visualization elements, providing hierarchy management, rendering control and...
virtual void AddStamp(UChar_t bits)
Add (bitwise or) given stamps to fChangeBits.
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 Bool_t SetRnrSelfChildren(Bool_t rnr_self, Bool_t rnr_children)
Set state for rendering of this element and its children.
virtual void SetMainTransparency(Char_t t)
Set main-transparency.
void StampColorSelection()
virtual TEveTrans & RefMainTrans()
Return reference to main transformation.
Bool_t HasChildren() const
virtual void ExpandIntoListTree(TGListTree *ltree, TGListTreeItem *parent)
Populates parent with elements.
virtual void SetMainColor(Color_t color)
Set main color of the element.
void SetMainColorPtr(Color_t *color)
virtual Bool_t GetRnrChildren() const
virtual Bool_t GetRnrSelf() const
virtual Bool_t HasMainTrans() const
Exception class thrown by TEve classes and macros.
Exception safe wrapper for setting gGeoManager.
Wrapper for TGeoNode that allows it to be shown in GUI and controlled as a TEveElement.
virtual Char_t GetMainTransparency() const
Get transparency – it is taken from the geo node.
TEveGeoShapeExtract * DumpShapeTree(TEveGeoNode *geon, TEveGeoShapeExtract *parent=0, Bool_t leafs_only=kFALSE)
Export the node hierarchy into tree of TEveGeoShapeExtract objects.
virtual Bool_t CanEditMainTransparency() const
Can edit main transparency – not available for assemblies.
static std::list< TGeoShape * > fgTemporaryStore
virtual void ExpandIntoListTree(TGListTree *ltree, TGListTreeItem *parent)
Checks if child-nodes have been imported ... imports them if not.
TGeoNode * GetNode() const
virtual void Draw(Option_t *option="")
Draw the object.
void UpdateVolume(TGeoVolume *volume)
Updates all reve-browsers having the volume in their contents.
virtual void AddStamp(UChar_t bits)
Override from TEveElement.
static Int_t fgCSGExportNSeg
virtual void SetMainTransparency(Char_t t)
Set transparency, propagate to volume's transparency.
virtual const char * GetName() const
Return name, taken from geo-node. Used via TObject.
virtual const char * GetTitle() const
Return title, taken from geo-node. Used via TObject.
void SaveExtract(const char *file, const char *name, Bool_t leafs_only)
Save the shape tree as TEveGeoShapeExtract.
virtual Bool_t CanEditMainColor() const
Can edit main-color – not available for assemblies.
virtual void ExpandIntoListTrees()
Expand children into all list-trees.
TEveGeoNode(const TEveGeoNode &)
void WriteExtract(const char *name, Bool_t leafs_only)
Write the shape tree as TEveGeoShapeExtract to current directory.
static Int_t GetCSGExportNSeg()
Returns number of segments used for CSG export.
void Save(const char *file, const char *name="Extract", Bool_t leafs_only=kFALSE)
Save TEveGeoShapeExtract tree starting at this node.
virtual void SetMainColor(Color_t color)
Set color, propagate to volume's line color.
virtual void ExpandIntoListTreesRecursively()
Expand children into all list-trees recursively.
virtual const char * GetElementTitle() const
Return title, taken from geo-node. Used via TEveElement.
void UpdateNode(TGeoNode *node)
Updates all reve-browsers having the node in their contents.
virtual const char * GetElementName() const
Return name, taken from geo-node. Used via TEveElement.
static void SetCSGExportNSeg(Int_t nseg)
Sets number of segments used for CSG export.
Description of TEveGeoPolyShape.
void SetFromFaceSet(TGLFaceSet *fs)
Set data-members from a face-set.
static TGeoHMatrix * GetGeoHMatrixIdentity()
Return static identity matrix in homogeneous representation.
A wrapper over a TGeoNode, possibly displaced with a global trasformation stored in TEveElement.
virtual void Paint(Option_t *option="")
Paint the enclosed TGeo hierarchy with visibility level and option given in data-members.
void VolumeColChanged(TGeoVolume *volume)
Callback for propagating volume parameter changes.
void UseNodeTrans()
Use transformation matrix from the TGeoNode.
TEveGeoTopNode(const TEveGeoTopNode &)
void NodeVisChanged(TGeoNode *node)
Callback for propagating node visibility changes.
virtual void Draw(Option_t *option="")
Draw the top-node.
void VolumeVisChanged(TGeoVolume *volume)
Callback for propagating volume visibility changes.
virtual void AddStamp(UChar_t bits)
Revert from TEveGeoNode back to standard behaviour, that is, do not pass visibility changes to fNode ...
Exception safe wrapper for setting gPad.
This was intended as a TPad wrapper to allow smart updates of groups of pads.
TEveTrans is a 4x4 transformation matrix for homogeneous coordinates stored internally in a column-ma...
void SetGeoHMatrix(TGeoHMatrix &mat)
Set TGeoHMatrix mat.
void SetFromArray(const Double_t arr[16])
Set matrix from Double_t array.
void SetFrom(Double_t *carr)
A ROOT file is a suite of consecutive data records (TKey instances) with a well defined format.
Implements a native ROOT-GL representation of an arbitrary set of polygons.
Implements VirtualViewer3D interface and fills the base-class visualization structures from pad conte...
virtual void BeginScene()
Start building of the scene.
virtual void EndScene()
End building of the scene.
virtual TGLLogicalShape * FindLogical(TObject *logid) const
Find and return logical shape identified by unique logid.
Bool_t IsVisDaughters() const
Class handling Boolean composition of shapes.
Matrix class used for computing global transformations Should NOT be used for node definition.
The manager class for any TGeo geometry.
TVirtualGeoPainter * GetGeomPainter()
Make a default painter if none present. Returns pointer to it.
void SetVisLevel(Int_t level=3)
set default level down to which visualization is performed
void SetTopVolume(TGeoVolume *vol)
Set the top volume and corresponding node as starting point of the geometry.
void SetPaintVolume(TGeoVolume *vol)
TGeoVolume * GetTopVolume() const
void SetTopVisible(Bool_t vis=kTRUE)
make top volume visible on screen
void SetMaxVisNodes(Int_t maxnodes=10000)
set the maximum number of visible nodes.
Geometrical transformation package.
virtual const Double_t * GetTranslation() const =0
virtual const Double_t * GetRotationMatrix() const =0
A node represent a volume positioned inside another.They store links to both volumes and to the TGeoM...
Bool_t IsVisDaughters() const
TGeoVolume * GetVolume() const
virtual TGeoMatrix * GetMatrix() const =0
void SetVisibility(Bool_t vis=kTRUE)
Set visibility of the node (obsolete).
void VisibleDaughters(Bool_t vis=kTRUE)
Set visibility of the daughters (obsolete).
Base abstract class for all shapes.
static void SetTransform(TGeoMatrix *matrix)
Set current transformation matrix that applies to shape.
virtual Bool_t IsComposite() const
static TGeoMatrix * GetTransform()
Returns current transformation matrix that applies to shape.
TGeoVolume, TGeoVolumeMulti, TGeoVolumeAssembly are the volume classes.
TGeoManager * GetGeoManager() const
virtual void SetVisLeaves(Bool_t flag=kTRUE)
Set visibility for leaves.
Int_t GetNdaughters() const
void SetTransparency(Char_t transparency=0)
TGeoShape * GetShape() const
virtual void Draw(Option_t *option="")
draw top volume according to option
virtual void SetVisOnly(Bool_t flag=kTRUE)
Set visibility for leaves.
virtual void SetVisContainers(Bool_t flag=kTRUE)
Set visibility for containers.
virtual void SetLineColor(Color_t lcolor)
Set the line color.
virtual Bool_t IsAssembly() const
Returns true if the volume is an assembly or a scaled assembly.
Char_t GetTransparency() const
virtual Bool_t IsVisible() const
virtual void Add(TObject *obj)
virtual const char * GetTitle() const
Returns title of object.
virtual const char * GetName() const
Returns name of object.
Mother of all ROOT objects.
virtual Int_t Write(const char *name=0, Int_t option=0, Int_t bufsize=0)
Write this object to the current directory.
virtual void Warning(const char *method, const char *msgfmt,...) const
Issue warning message.
virtual void AppendPad(Option_t *option="")
Append graphics object to current pad.
virtual void Info(const char *method, const char *msgfmt,...) const
Issue info message.
virtual void SetViewer3D(TVirtualViewer3D *viewer3d)
TList * GetListOfPrimitives() const
const char * Data() const
Abstract class for geometry painters.
virtual void SetVisOption(Int_t option=0)=0
virtual void PaintNode(TGeoNode *node, Option_t *option="", TGeoMatrix *global=nullptr)=0
TVirtualPad is an abstract base class for the Pad and Canvas classes.