Demonstrates usage of simple configuration via TEveParamList class.
class TParamFollower
{
public:
TParamFollower()
{
"TParamFollower", this, "OnParamChanged(char*)");
}
virtual ~TParamFollower()
{
this, "OnParamChanged(char*)");
}
void OnParamChanged(const char* parameter)
{
auto pl =
dynamic_cast<TEveParamList*
> (
reinterpret_cast<TQObject*
>(
gTQSender));
printf("Change in param-list '%s', parameter '%s'.\n", pl->GetElementName(), parameter);
}
};
void paramlist()
{
gEve->AddToListTree(
x,
false);
gEve->AddToListTree(
x,
false);
new TParamFollower;
}
#define ClassDef(name, id)
R__EXTERN TEveManager * gEve
R__EXTERN void * gTQSender
static TEveManager * Create(Bool_t map_window=kTRUE, Option_t *opt="FIV")
If global TEveManager* gEve is not set initialize it.
Collection of named parameters.
Bool_t Connect(const char *signal, const char *receiver_class, void *receiver, const char *slot)
Non-static method is used to connect from the signal of this object to the receiver slot.
Bool_t Disconnect(const char *signal=nullptr, void *receiver=nullptr, const char *slot=nullptr)
Disconnects signal of this object from slot of receiver.
- Author
- Matevz Tadel
Definition in file paramlist.C.