fast::SliceRenderer class

Renders a 2D image slice extracted from a 3D image.

This renderer uses the ImageSlicer to extract a 2D image slice from a 3D image, and extends ImageRenderer to render the image slice.

Base classes

class ImageRenderer
Renders 2D Image data objects, both in 2D and 3D.

Public functions

auto create(PlaneType orthogonalSlicePlane, int sliceNr) FAST_CONSTRUCTOR(SliceRenderer -> std::shared_ptr<SliceRenderer>
auto addInputConnection(DataChannel::pointer port) -> uint override
auto addInputConnection(DataChannel::pointer port, PlaneType orthogonalSlicePlane, int sliceNr = -1) -> uint
auto addInputConnection(DataChannel::pointer port, Plane slicePlane) -> uint
auto addInputConnection(DataChannel::pointer port, std::shared_ptr<ImageSlicer> slicer) -> uint
void setOrthogonalSlicePlane(uint portID, PlaneType orthogonalSlicePlane, int sliceNr = -1)
void setArbitrarySlicePlane(uint portID, Plane slicePlane)

Public variables

Plane
arbitrarySlicePlane

Private functions

void execute() override

Function documentation

uint fast::SliceRenderer::addInputConnection(DataChannel::pointer port) override

Parameters
port
Returns the input nr of the new connection

Adds a new input connection

uint fast::SliceRenderer::addInputConnection(DataChannel::pointer port, PlaneType orthogonalSlicePlane, int sliceNr = -1)

Parameters
port
orthogonalSlicePlane
sliceNr
Returns port id of new port

Orthogonal slicing using the specified orthogonal plane.

uint fast::SliceRenderer::addInputConnection(DataChannel::pointer port, Plane slicePlane)

Parameters
port
slicePlane
Returns port id of new port

Arbitrary slicing using the supplied plane.

uint fast::SliceRenderer::addInputConnection(DataChannel::pointer port, std::shared_ptr<ImageSlicer> slicer)

Parameters
port
slicer
Returns port id of new port

Add new input connection using supplied slicer