finished prototype of nodes providing a texture to a viewer
This commit is contained in:
@@ -24,3 +24,48 @@ Node::Node(QObject *parent) :
|
||||
QObject(parent)
|
||||
{
|
||||
}
|
||||
|
||||
QString Node::Category()
|
||||
{
|
||||
// Return an empty category for any nodes that don't use one
|
||||
return QString();
|
||||
}
|
||||
|
||||
QString Node::Description()
|
||||
{
|
||||
// Return an empty string by default
|
||||
return QString();
|
||||
}
|
||||
|
||||
void Node::InvalidateCache(const rational &start_range, const rational &end_range)
|
||||
{
|
||||
Q_UNUSED(start_range)
|
||||
Q_UNUSED(end_range)
|
||||
|
||||
/*
|
||||
ParamList params = Parameters();
|
||||
|
||||
for (int i=0;i<params.size();i++) {
|
||||
NodeParam* param = params.at(i);
|
||||
|
||||
if (param->type() == NodeParam::kOutput
|
||||
&& param->) {
|
||||
|
||||
}
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
||||
Node::ParamList Node::Parameters()
|
||||
{
|
||||
const QObjectList& child_list = children();
|
||||
|
||||
ParamList params;
|
||||
params.reserve(child_list.size());
|
||||
|
||||
for (int i=0;i<child_list.size();i++) {
|
||||
params[i] = static_cast<NodeParam*>(child_list.at(i));
|
||||
}
|
||||
|
||||
return params;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user