15#ifndef AODHANDLEBASE_H
16#define AODHANDLEBASE_H
21#include <QTreeWidgetItem>
78 virtual QStringList
baseInfo()
const;
93 static double unknown() {
return -999.0; }
95 virtual QString
shortInfo()
const {
return QString(
"Not yet implemented"); }
96 virtual QString
type()
const {
return QString(
"Not yet implemented"); }
Base class for all AOD object collections This class primarily handles setting up the interface,...
void updateObjectBrowser()
Update object browser QTreeWidgetItem.
virtual QString type() const
return very short word with type (maybe link with collection type?)
AODHandleBase(const AODHandleBase &)
override if need to take action in this case.
virtual void currentMaterialChanged()
AODHandleBase & operator=(const AODHandleBase &)
friend class AssocObjAttachmentHandle
const AODCollHandleBase * collHandle() const
SoMaterial * currentMaterial() const
Returns the current material of the handle.
void updateMaterial()
Called after some configuration related to material changes.
virtual void rebuild3DObjects()
SoMaterial * m_currentmaterial
virtual void update3DObjects()
Called after some configuration changes, or when the object is first created. Must be overloaded by c...
void setVisible(bool)
use by the collection handle.
virtual SoNode * nodes()=0
Returns the 3Dobjects.
virtual QStringList baseInfo() const
virtual void clear3DObjects()=0
Delete objects.
QTreeWidgetItem * browserTreeItem() const
Return the QTreeWidgetItem;.
virtual bool has3DObjects()
Returns true if the 3D objects have been created.
virtual QString shortInfo() const
returns mom and hit information about track
virtual void fillObjectBrowser(QList< QTreeWidgetItem * > &list)
Create and fill the object browser QTreeWidgetItem.
virtual void visibleStateChanged()
Dummy implementation does nothing.
static int numberOfInstances()
virtual void dumpToJSON(std::ofstream &) const
const AODSysCommonData * common() const
virtual void detach3DObjects()
Remove from the scene graph.
AODHandleBase(AODCollHandleBase *)
virtual SoMaterial * determineMaterial()=0
Should be implemented by children, in order to change the material depending on the interface etc.
virtual void attach3DObjects()
Connect to the scene graph.
virtual QStringList clicked() const =0
Called when user selects the node (stringlist is displayed in messagebox).
AODCollHandleBase * m_collhandle
Class providing the definition of the 4-vector interface.
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.