62 #ifndef QT_WIDGET_OBJECT_HH
63 #define QT_WIDGET_OBJECT_HH
106 virtual void init(QWidget* _widget);
125 QWidget* widget()
const{
return widgetNode_->widget();}
127 void setWidget(QWidget* _widget){widgetNode_->setWidget(_widget);}
164 bool picked( uint _node_idx );
173 void mouseEvent(QMouseEvent* _event){widgetNode_->mouseEvent(_event);}
180 virtual void visible(
bool _visible);
216 #endif // QT_WIDGET_OBJECT_HH defined
virtual QString getObjectinfo()
Get all Info for the Object as a string.
const UpdateType UPDATE_ALL(UpdateTypeSet(1))
Identifier for all updates.
virtual void setName(QString _name)
path to the file from which the object is loaded ( defaults to "." )
virtual bool pickingEnabled()
void mouseEvent(QMouseEvent *_event)
send a special Mouse event to the widget
virtual void show()
Sets the whole Scenegraph subtree of this node to visible.
virtual void hide()
Sets the whole Scenegraph subtree of this node to invisible.
virtual bool hasNode(BaseNode *_node)
Check if the given node is owned by this object.
QtWidgetNode * widgetNode_
Get the scenegraph Node.
virtual void enablePicking(bool _enable)
virtual void update(UpdateType _type=UPDATE_ALL)
This function is called to update the object.
virtual BaseObject * copy()
Returns a full copy of the object.
virtual bool visible()
return visiblity
virtual bool picked(uint _node_idx)
detect if the node has been picked