74 init(_object.widget());
94 std::vector< BaseNode*> children;
96 children.push_back( (*cIt) );
99 for (
unsigned int i = 0 ; i < children.size(); ++i )
100 children[i]->set_parent(
parent);
145 std::string nodename = std::string(
"Qt WidgetNode " + _name.toUtf8() );
180 output +=
"========================================================================\n";
184 output +=
"Qt Accessible Name: ";
188 output +=
"!!Unable to access data type DATA_QT_WIDGET ";
190 output +=
"========================================================================\n";
DLLEXPORT void setTypeIcon(DataType _id, const QString &_icon)
Set an Icon for a given DataType.
ChildIter childrenBegin()
Returns: begin-iterator of children.
ChildIter childrenEnd()
Returns: end-iterator of children.
void enablePicking(bool _enable)
std::vector< BaseNode * >::iterator ChildIter
allows to iterate over children
std::string name() const
Returns: name of node (needs not be unique)
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 void setName(QString _name) override
path to the file from which the object is loaded ( defaults to "." )
MaterialNode * materialNode()
get a pointer to the materialnode
virtual void cleanup() override
virtual bool hasNode(BaseNode *_node)
Check if the given node is owned by this object.
virtual QString getObjectinfo()
Get all Info for the Object as a string.
QString name() const
return the name of the object. The name defaults to NONAME if unset.
BaseObject * parent()
Get the parent item ( 0 if rootitem )
void setDataType(DataType _type)
void visibilityChanged(int _objectId)
virtual void update(UpdateType _type=UPDATE_ALL)
This function is called to update the object.
void deleteData()
Delete all data attached to this object ( calls delete on each object )
DataType dataType() const