NorMIT-nav  2023.01.05-dev+develop.0da12
An IGT application
cx::VideoGraphics Class Reference

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 ()
 

Detailed Description

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.

Date
april 26, 2013
Author
christiana

Definition at line 41 of file cxVideoGraphics.h.

Constructor & Destructor Documentation

◆ VideoGraphics()

cx::VideoGraphics::VideoGraphics ( )

Definition at line 38 of file cxVideoGraphics.cpp.

◆ ~VideoGraphics()

cx::VideoGraphics::~VideoGraphics ( )
virtual

Definition at line 78 of file cxVideoGraphics.cpp.

Member Function Documentation

◆ getActor()

vtkActorPtr cx::VideoGraphics::getActor ( )

Definition at line 92 of file cxVideoGraphics.cpp.

◆ getFlipVertical()

bool cx::VideoGraphics::getFlipVertical ( )

Definition at line 87 of file cxVideoGraphics.cpp.

◆ setActorUserMatrix()

void cx::VideoGraphics::setActorUserMatrix ( vtkMatrix4x4Ptr  rMu)

Definition at line 167 of file cxVideoGraphics.cpp.

◆ setClip()

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.

◆ setFlipVertical()

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.

◆ setInputVideo()

void cx::VideoGraphics::setInputVideo ( vtkImageDataPtr  video)

Set the imagedata pointing to the video.

Definition at line 159 of file cxVideoGraphics.cpp.

◆ setMask()

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.

◆ setVisibility()

void cx::VideoGraphics::setVisibility ( bool  visible)

Definition at line 172 of file cxVideoGraphics.cpp.

◆ update()

void cx::VideoGraphics::update ( )

One of the previously set inputs have been modified. Update the pipeline.

Definition at line 178 of file cxVideoGraphics.cpp.


The documentation for this class was generated from the following files: