73 char*
l = (
char*) dynamic_cast<TAttLine*>(node->
GetVolume());
123 while ((dnode = (
TGeoNode*) next()) != 0)
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 ");
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);
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 const char * GetName() const
Return name, taken from geo-node. Used via TObject.
virtual const char * GetName() const
Returns name of object.
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 ExpandIntoListTrees()
Expand children into all list-trees.
void VolumeColChanged(TGeoVolume *volume)
Callback for propagating volume parameter changes.
virtual void Info(const char *method, const char *msgfmt,...) const
Issue info message.
The manager class for any TGeo geometry.
virtual void ExpandIntoListTree(TGListTree *ltree, TGListTreeItem *parent)
Checks if child-nodes have been imported ...
TList * GetListOfPrimitives() const
static TGeoHMatrix * GetGeoHMatrixIdentity()
Return static identity matrix in homogeneous representation.
TGeoNode * GetNode() const
virtual void SetMainTransparency(Char_t t)
Set transparency, propagate to volume's transparency.
virtual Bool_t HasMainTrans() const
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.
Geometrical transformation package.
virtual Bool_t CanEditMainColor() const
Can edit main-color – 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.
Bool_t HasChildren() const
TGeoVolume, TGeoVolumeMulti, TGeoVolumeAssembly are the volume classes.
virtual void Paint(Option_t *option="")
Paint the enclosed TGeo hierarchy with visibility level and option given in data-members.
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.
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
Matrix class used for computing global transformations Should NOT be used for node definition...
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.
virtual Bool_t GetRnrSelf() const
void UseNodeTrans()
Use transformation matrix from the TGeoNode.
void VisibleDaughters(Bool_t vis=kTRUE)
Set visibility of the daughters (obsolete).
virtual const char * GetElementTitle() const
Return title, taken from geo-node. Used via TEveElement.
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.
Int_t GetNdaughters() const
Exception safe wrapper for setting gPad.
virtual TGLLogicalShape * FindLogical(TObject *logid) const
Find and return logical shape identified by unique logid.
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.
virtual const char * GetElementName() const
Return name, taken from geo-node. Used via TEveElement.
virtual Bool_t IsVisible() 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.
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.
virtual Bool_t CanEditMainTransparency() const
Can edit main transparency – not available for assemblies.
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...
Class handling Boolean composition of shapes.
Char_t GetTransparency() const
virtual void InitMainTrans(Bool_t can_edit=kTRUE)
Initialize the main transformation to identity matrix.
Base abstract class for all shapes.
Exception safe wrapper for setting gGeoManager.
void SetFromFaceSet(TGLFaceSet *fs)
Set data-members from a face-set.
virtual Bool_t IsComposite() const
void SetTransparency(Char_t transparency=0)
void VolumeVisChanged(TGeoVolume *volume)
Callback for propagating volume visibility changes.
virtual Char_t GetMainTransparency() const
Get transparency – it is taken from the geo node.
virtual Bool_t GetRnrChildren() const
Bool_t IsVisDaughters() const
Implements VirtualViewer3D interface and fills the base-class visualization structures from pad conte...
virtual void SetViewer3D(TVirtualViewer3D *viewer3d)
virtual void AddElement(TEveElement *el)
Add el to the list of children.
virtual void BeginScene()
Start building of the scene.
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 Color_t GetLineColor() const
Return the line color.
virtual void SetVisOption(Int_t option=0)=0
R__EXTERN TGeoManager * gGeoManager
virtual const char * GetTitle() const
Return title, taken from geo-node. Used via TObject.
void SetPaintVolume(TGeoVolume *vol)
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.
This was intended as a TPad wrapper to allow smart updates of groups of pads.
Abstract class for geometry painters.
A node represent a volume positioned inside another.They store links to both volumes and to the TGeoM...
void SetVisLevel(Int_t level=3)
set default level down to which visualization is performed
Bool_t IsVisDaughters() const
virtual void EndScene()
End building of the scene.
virtual void Add(TObject *obj)
virtual TEveTrans & RefMainTrans()
Return reference to main transformation.
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.
Exception class thrown by TEve classes and macros.
TGeoManager * GetGeoManager() const
void SetVisibility(Bool_t vis=kTRUE)
Set visibility of the node (obsolete).
TGeoVolume * GetTopVolume() const
TGeoShape * GetShape() 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.
TGeoVolume * GetVolume() const
void UpdateVolume(TGeoVolume *volume)
Updates all reve-browsers having the volume in their contents.
virtual void Warning(const char *method, const char *msgfmt,...) const
Issue warning message.
virtual void SetVisOnly(Bool_t flag=kTRUE)
Set visibility for leaves.
virtual const char * GetTitle() const
Returns title of object.
virtual void Close(Option_t *option="")
Close a file.
const char * Data() const
virtual Bool_t IsAssembly() const
Returns true if the volume is an assembly or a scaled assembly.