Fraxinus  16.5.0-fx-rc3
An IGT application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 62 of file cxVideoGraphics.h.

Constructor & Destructor Documentation

cx::VideoGraphics::VideoGraphics ( )

Definition at line 59 of file cxVideoGraphics.cpp.

cx::VideoGraphics::~VideoGraphics ( )
virtual

Definition at line 99 of file cxVideoGraphics.cpp.

Member Function Documentation

vtkActorPtr cx::VideoGraphics::getActor ( )

Definition at line 113 of file cxVideoGraphics.cpp.

bool cx::VideoGraphics::getFlipVertical ( )

Definition at line 108 of file cxVideoGraphics.cpp.

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

Definition at line 188 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 171 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 103 of file cxVideoGraphics.cpp.

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

Set the imagedata pointing to the video.

Definition at line 180 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 162 of file cxVideoGraphics.cpp.

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

Definition at line 193 of file cxVideoGraphics.cpp.

void cx::VideoGraphics::update ( )

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

Definition at line 199 of file cxVideoGraphics.cpp.


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