Generic API for any new VTK based graphical components. @param The concrete type of the graphical component that will contains the vtkRenderWindow. @author Sebastien Jourdain - sebastien.jourdain@kitware.com, Kitware Inc 2012 @thanks This work was supported by CEA/C
| 22 | */ |
| 23 | |
| 24 | public interface vtkComponent<T> { |
| 25 | |
| 26 | /** |
| 27 | * @return the lock that is used to prevent concurrency inside this |
| 28 | * rendering component. This lock can also be used outside to make |
| 29 | * sure any VTK processing happen in a save manner. |
| 30 | */ |
| 31 | ReentrantLock getVTKLock(); |
| 32 | |
| 33 | /** |
| 34 | * Adjust the camera position so any object in the scene will be fully seen. |
| 35 | */ |
| 36 | void resetCamera(); |
| 37 | |
| 38 | /** |
| 39 | * Update the clipping range of the camera |
| 40 | */ |
| 41 | void resetCameraClippingRange(); |
| 42 | |
| 43 | /** |
| 44 | * @return the active camera of the renderer |
| 45 | */ |
| 46 | vtkCamera getActiveCamera(); |
| 47 | |
| 48 | /** |
| 49 | * @return a reference to the Renderer used internally |
| 50 | */ |
| 51 | vtkRenderer getRenderer(); |
| 52 | |
| 53 | /** |
| 54 | * Useful for screen capture or exporter. |
| 55 | * |
| 56 | * @return a reference to the RenderWindow used internally |
| 57 | */ |
| 58 | vtkRenderWindow getRenderWindow(); |
| 59 | |
| 60 | /** |
| 61 | * vtkWindowInteractor is useful if you want to attach 3DWidget into your |
| 62 | * view. |
| 63 | * |
| 64 | * @return a reference to the vtkWindowInteractor used internally |
| 65 | */ |
| 66 | vtkGenericRenderWindowInteractor getRenderWindowInteractor(); |
| 67 | |
| 68 | /** |
| 69 | * Shortcut method to bind an vtkInteractorStyle to our interactor. |
| 70 | * |
| 71 | * @param style |
| 72 | */ |
| 73 | void setInteractorStyle(vtkInteractorStyle style); |
| 74 | |
| 75 | /** |
| 76 | * Update width and height of the given component |
| 77 | * |
| 78 | * @param w |
| 79 | * @param h |
| 80 | */ |
| 81 | void setSize(int w, int h); |
no outgoing calls
no test coverage detected