Skip to content
Snippets Groups Projects
Verified Commit 31ede1a8 authored by Kevin Griffin's avatar Kevin Griffin Committed by Sankhesh Jhaveri
Browse files

ANARI: Exposed factory for external apps

parent 6bf4f034
No related branches found
No related tags found
No related merge requests found
......@@ -261,6 +261,12 @@ vtkAnariRenderer* vtkAnariPass::GetAnariRenderer()
return this->Internal->Renderer;
}
// ----------------------------------------------------------------------------
vtkViewNodeFactory* vtkAnariPass::GetViewNodeFactory()
{
return this->Internal->Factory;
}
// ----------------------------------------------------------------------------
vtkAnariPass::vtkAnariPass()
{
......
......@@ -34,6 +34,7 @@ VTK_ABI_NAMESPACE_BEGIN
class vtkAnariPassInternals;
class vtkAnariSceneGraph;
class vtkCameraPass;
class vtkViewNodeFactory;
class VTKRENDERINGANARI_EXPORT vtkAnariPass : public vtkRenderPass
{
......@@ -66,6 +67,12 @@ public:
*/
vtkAnariRenderer* GetAnariRenderer();
/**
* Make the factory available to apps that need to replace object(s) in VTK with
* their own at runtime (e.g. VisIt).
*/
virtual vtkViewNodeFactory* GetViewNodeFactory();
private:
/**
* Default constructor.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment