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