CustusX
18.04-rc1
An IGT application
|
Wrap vtkActor displaying a video image, possibly clipped by a sector. More...
#include <cxVideoGraphics.h>
Public Member Functions | |
VideoGraphics () | |
virtual | ~VideoGraphics () |
vtkActorPtr | getActor () |
void | setActorUserMatrix (vtkMatrix4x4Ptr rMu) |
void | setVisibility (bool visible) |
void | setFlipVertical (bool on) |
bool | getFlipVertical () |
void | setMask (vtkImageDataPtr mask) |
void | setClip (vtkPolyDataPtr sector) |
void | setInputVideo (vtkImageDataPtr video) |
void | update () |
Wrap vtkActor displaying a video image, possibly clipped by a sector.
Create a pipeline from a video vtkImageData to a vtkActor. Clip using the mask or clip methods. Can be used directly in 2D, or in 3D by setting the actor user matrix.
Definition at line 41 of file cxVideoGraphics.h.
cx::VideoGraphics::VideoGraphics | ( | ) |
Definition at line 38 of file cxVideoGraphics.cpp.
|
virtual |
Definition at line 78 of file cxVideoGraphics.cpp.
vtkActorPtr cx::VideoGraphics::getActor | ( | ) |
Definition at line 92 of file cxVideoGraphics.cpp.
bool cx::VideoGraphics::getFlipVertical | ( | ) |
Definition at line 87 of file cxVideoGraphics.cpp.
void cx::VideoGraphics::setActorUserMatrix | ( | vtkMatrix4x4Ptr | rMu | ) |
Definition at line 167 of file cxVideoGraphics.cpp.
void cx::VideoGraphics::setClip | ( | vtkPolyDataPtr | sector | ) |
Set a clip polygon for the video image. Only one of clear and clip can be active at a time. The mask must be of the same size as the video. Zeros in the mask will be set to transparent.
Definition at line 150 of file cxVideoGraphics.cpp.
void cx::VideoGraphics::setFlipVertical | ( | bool | on | ) |
Set flag to flip the output in the vertical direction, default = true Legacy function supporting old functionality.
Definition at line 82 of file cxVideoGraphics.cpp.
void cx::VideoGraphics::setInputVideo | ( | vtkImageDataPtr | video | ) |
Set the imagedata pointing to the video.
Definition at line 159 of file cxVideoGraphics.cpp.
void cx::VideoGraphics::setMask | ( | vtkImageDataPtr | mask | ) |
Set a mask for the video image. Only one of clear and clip can be active at a time. The mask must be of the same size as the video. Zeros in the mask will be set to transparent.
Definition at line 141 of file cxVideoGraphics.cpp.
void cx::VideoGraphics::setVisibility | ( | bool | visible | ) |
Definition at line 172 of file cxVideoGraphics.cpp.
void cx::VideoGraphics::update | ( | ) |
One of the previously set inputs have been modified. Update the pipeline.
Definition at line 178 of file cxVideoGraphics.cpp.