Creates and runs a simple iterator plugin connected to TGeoPainter iterator.
It demonstrates the possibility to dynamically change the color of drawn volumes according some arbitrary criteria WITHOUT changing the color of the same volume drawn on branches that do not match the criteria.
To run:
root[1] .x runplugin.C
...
void runplugin()
{
gROOT->ProcessLine(
".x " + tutdir +
"/visualisation/geom/rootgeom.C");
gGeoManager->GetGeomPainter()->SetIteratorPlugin(plugin);
}
{
plugin->
Select(replica, color);
}
int Int_t
Signed integer 4 bytes (int).
externTGeoManager * gGeoManager
void Select(Int_t replica, Int_t color)
- Author
- Andrei Gheata
Definition in file runplugin.C.