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[0] .L iterplugin.cxx+
root[1] .x runplugin.C
...
iterplugin *plugin = 0;
void runplugin()
{
gROOT->ProcessLine(
".x " + tutdir +
"/geom/rootgeom.C");
plugin = new iterplugin();
}
{
plugin->Select(replica, color);
}
R__EXTERN TGeoManager * gGeoManager
TVirtualGeoPainter * GetGeomPainter()
Make a default painter if none present. Returns pointer to it.
virtual void ModifiedPad(Bool_t update=kFALSE) const =0
virtual void SetIteratorPlugin(TGeoIteratorPlugin *plugin)=0
- Author
- Andrei Gheata
Definition in file runplugin.C.