iMSTK
Interactive Medical Simulation Toolkit
imstkVTKSphereRenderDelegate.h
1 /*
2 ** This file is part of the Interactive Medical Simulation Toolkit (iMSTK)
3 ** iMSTK is distributed under the Apache License, Version 2.0.
4 ** See accompanying NOTICE for details.
5 */
6 
7 #pragma once
8 
9 #include "imstkVTKPolyDataRenderDelegate.h"
10 
11 class vtkSphereSource;
12 
13 namespace imstk
14 {
21 {
22 public:
24  ~VTKSphereRenderDelegate() override = default;
25 
29  void processEvents() override;
30 
31 protected:
32  void init() override;
33 
34  vtkSmartPointer<vtkSphereSource> m_sphereSource;
35 };
36 } // namespace imstk
Compound Geometry.
Delegates rendering of Sphere to VTK from VisualModel.
void processEvents() override
Update sphere source based on the sphere geometry.
Abstract base class for PolyData-based RenderDelegates.