20,741
edits
m (→CanvasPDF) |
|||
| Line 212: | Line 212: | ||
Next, we need to edit the constructor accordingly, and make sure that the osg::Node is added to the _transform member of the CanvasElement we are creating. | Next, we need to edit the constructor accordingly, and make sure that the osg::Node is added to the _transform member of the CanvasElement we are creating. | ||
To see how the file name can be changed/updated using properties, it makes sense to open CanvasImage.cxx and check how it is working there, so that we can copy/paste and adapt the code accordingly. | |||
To turn this into a proper element, we can next open the header itself and check what methods are available, so that these can be exposed via Canvas properties | To turn this into a proper element, we can next open the header itself and check what methods are available, so that these can be exposed via Canvas properties | ||