80 init(_object.widget());
100 std::vector< BaseNode*> children;
102 children.push_back( (*cIt) );
105 for (
unsigned int i = 0 ; i < children.size(); ++i )
106 children[i]->set_parent(parent);
151 std::string nodename = std::string(
"Qt WidgetNode " + _name.toUtf8() );
186 output +=
"========================================================================\n";
190 output +=
"Qt Accessible Name: ";
194 output +=
"!!Unable to access data type DATA_QT_WIDGET ";
196 output +=
"========================================================================\n";
bool picked(uint _node_idx)
detect if the node has been picked
std::vector< BaseNode * >::iterator ChildIter
allows to iterate over children
virtual void hide()
Sets the whole Scenegraph subtree of this node to invisible.
void setDataType(DataType _type)
QString getObjectinfo()
Get all Info for the Object as a string.
void setName(QString _name)
Set the name of the Object.
virtual void hide()
Hide Node.
virtual void show()
Sets the whole Scenegraph subtree of this node to visible.
ACG::SceneGraph::QtWidgetNode QtWidgetNode
Simple Name for QtWidgetNode.
virtual void show()
Show Node.
BaseObject * parent()
Get the parent item ( 0 if rootitem )
QtWidgetObject()
constructor
MaterialNode * materialNode()
get a pointer to the materialnode
QtWidgetNode * widgetNode_
Get the scenegraph Node.
void enablePicking(bool _enable)
Enable or disable picking for this Object.
void enablePicking(bool _enable)
ChildIter childrenEnd()
Returns: end-iterator of children.
virtual void setName(QString _name)
path to the file from which the object is loaded ( defaults to "." )
virtual bool hasNode(BaseNode *_node)
Check if the given node is owned by this object.
void deleteData()
Delete all data attached to this object ( calls delete on each object )
ChildIter childrenBegin()
Returns: begin-iterator of children.
virtual void cleanup()
Reset current object, including all related nodes.
void update(UpdateType _type=UPDATE_ALL)
This function is called to update the object.
void visibilityChanged(int _objectId)
ACG::SceneGraph::QtWidgetNode * qtWidgetNode()
Get the scenegraph Node.
std::string name() const
Returns: name of node (needs not be unique)
DLLEXPORT void setTypeIcon(DataType _id, QString _icon)
Set an Icon for a given DataType.
virtual void update(UpdateType _type=UPDATE_ALL)
This function is called to update the object.
virtual ~QtWidgetObject()
destructor
virtual bool visible()
Show Node.
QString name() const
return the name of the object. The name defaults to NONAME if unset.
bool pickingEnabled()
Check if picking is enabled for this Object.
virtual QString getObjectinfo()
Get all Info for the Object as a string.
virtual bool hasNode(BaseNode *_node)
Get the scenegraph Node.
DataType dataType() const
virtual void init(QWidget *_widget)
Initialize current object, including all related nodes.