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>
Create instance.
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

std::shared_ptr<SliceRenderer> fast::SliceRenderer::create(PlaneType orthogonalSlicePlane, int sliceNr) FAST_CONSTRUCTOR(SliceRenderer

Create instance.

Parameters
orthogonalSlicePlane Which orthogonal slice plane to use X/Y/Z
sliceNr Which slice nr to extract, must be smaller than size of the slicing dimension. If negative center slice will be used
Returns instance

Slice a 3D image with an orthogonal slice plane. Default slice nr is the center slice.

Create instance

Slice a volume with an arbitrary slice plane defined by Plane.

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