7 #include "visuVTKAdaptor/SCube.hpp" 9 #include <fwServices/macros.hpp> 12 #include <vtkCubeSource.h> 13 #include <vtkPolyDataMapper.h> 14 #include <vtkRenderer.h> 23 SCube::SCube() noexcept
30 SCube::~SCube() noexcept
48 vtkCubeSource* cube = vtkCubeSource::New();
49 vtkPolyDataMapper* mapper = vtkPolyDataMapper::New();
50 mapper->SetInputConnection(cube->GetOutputPort());
51 vtkActor* actor = vtkActor::New();
52 actor->SetMapper(mapper);
FWRENDERVTK_API void addToRenderer(vtkProp *prop)
Adds the vtkProp to the renderer.
The namespace visuVTKAdaptor contains the list of adaptors available for the generic scene...
FWRENDERVTK_API void configureParams()
Parse the xml configuration for renderer, picker and transform.
FWRENDERVTK_API void requestRender()
notify a render request iff vtkPipeline is modified
FWRENDERVTK_API void setVtkPipelineModified()
End-user have to call this method when a vtk structure has been modified, thus a render request will ...
FWRENDERVTK_API void removeAllPropFromRenderer()
Removes all the vtkProp from the renderer.
Render a cube on the generic scene.
VISUVTKADAPTOR_API void starting() override
Initialize the service activity.
VISUVTKADAPTOR_API void stopping() override
Uninitialize the service activity. The stop() method is always invoked before destroying a service...
VISUVTKADAPTOR_API void configuring() override
Configure the service before starting. Apply the configuration to service.
FWRENDERVTK_API void initialize()
Initialize the adaptor with the associated render service. (must be call in starting).
VISUVTKADAPTOR_API void updating() override
Perform some computations according to object (this service is attached to) attribute values and its ...
Base class for VTK adaptors.