added clone functions for nodes
Since nodes are are extremely derivative types, we use a clone/copy function to produce new types of the derived class easily.
This commit is contained in:
@@ -35,6 +35,11 @@ ViewerOutput::ViewerOutput()
|
||||
AddParameter(length_input_);
|
||||
}
|
||||
|
||||
Node *ViewerOutput::copy()
|
||||
{
|
||||
return new ViewerOutput();
|
||||
}
|
||||
|
||||
QString ViewerOutput::Name()
|
||||
{
|
||||
return tr("Viewer");
|
||||
|
||||
Reference in New Issue
Block a user