![]() |
ARX
1.0
The next-generation open source augmented reality toolkit.
|
ARVideoView draws the output of an ARVideoSource to a rendering context, usually for the purposes of video see-through augmented reality. More...
#include <ARVideoView.h>
Classes | |
| struct | Size |
Public Types | |
| enum class | HorizontalAlignment { H_ALIGN_LEFT , H_ALIGN_CENTRE , H_ALIGN_RIGHT } |
| enum class | VerticalAlignment { V_ALIGN_TOP , V_ALIGN_CENTRE , V_ALIGN_BOTTOM } |
| enum class | ScalingMode { SCALE_MODE_FIT , SCALE_MODE_FILL , SCALE_MODE_STRETCH , SCALE_MODE_1_TO_1 } |
Public Member Functions | |
| ARVideoView () | |
| bool | initWithVideoSource (const ARVideoSource &vs, const int contextWidth, const int contextHeight) |
| void | getViewport (int32_t viewport[4]) const |
| void | draw (ARVideoSource *vs) |
| void | drawDebugImage (const uint8_t *image, int pyramidLevel) |
| ~ARVideoView () | |
| HorizontalAlignment | horizontalAlignment () const |
| void | setHorizontalAlignment (const HorizontalAlignment hAlign) |
| VerticalAlignment | verticalAlignment () const |
More... | |
| void | setVerticalAlignment (const VerticalAlignment vAlign) |
| ScalingMode | scalingMode () const |
More... | |
| void | setScalingMode (const ScalingMode scaling) |
| bool | distortionCompensation () const |
More... | |
| void | setDistortionCompensation (const bool distortionCompensation) |
| bool | rotate90 () const |
More... | |
| void | setRotate90 (const bool rotate90) |
| bool | flipH () const |
More... | |
| void | setFlipH (const bool flipH) |
| bool | flipV () const |
More... | |
| void | setFlipV (const bool flipV) |
| Size | contextSize () const |
More... | |
| void | setContextSize (const Size size) |
ARVideoView draws the output of an ARVideoSource to a rendering context, usually for the purposes of video see-through augmented reality.
A rendering context supported by libARG must be active when calling any non-const function in this class. For example, on platforms supporting OpenGL, a valid OpenGL context must be initialised and active at the time of the call. For most OpenGL implementations, such a call can only be made from a rendering thread.
|
strong |
|
strong |
|
strong |
| ARVideoView::ARVideoView | ( | ) |
| ARVideoView::~ARVideoView | ( | ) |
| ARVideoView::Size ARVideoView::contextSize | ( | ) | const |
Defaults to false.
| bool ARVideoView::distortionCompensation | ( | ) | const |
Defaults to SCALE_MODE_FIT.
| void ARVideoView::draw | ( | ARVideoSource * | vs | ) |
| void ARVideoView::drawDebugImage | ( | const uint8_t * | image, |
| int | pyramidLevel | ||
| ) |
| bool ARVideoView::flipH | ( | ) | const |
Defaults to false.
| bool ARVideoView::flipV | ( | ) | const |
Defaults to false.
| void ARVideoView::getViewport | ( | int32_t | viewport[4] | ) | const |
| ARVideoView::HorizontalAlignment ARVideoView::horizontalAlignment | ( | ) | const |
| bool ARVideoView::initWithVideoSource | ( | const ARVideoSource & | vs, |
| const int | contextWidth, | ||
| const int | contextHeight | ||
| ) |
| bool ARVideoView::rotate90 | ( | ) | const |
Defaults to true.
| ARVideoView::ScalingMode ARVideoView::scalingMode | ( | ) | const |
Defaults to V_ALIGN_CENTRE.
| void ARVideoView::setContextSize | ( | const Size | size | ) |
| void ARVideoView::setDistortionCompensation | ( | const bool | distortionCompensation | ) |
| void ARVideoView::setFlipH | ( | const bool | flipH | ) |
| void ARVideoView::setFlipV | ( | const bool | flipV | ) |
| void ARVideoView::setHorizontalAlignment | ( | const HorizontalAlignment | hAlign | ) |
| void ARVideoView::setRotate90 | ( | const bool | rotate90 | ) |
| void ARVideoView::setScalingMode | ( | const ScalingMode | scaling | ) |
| void ARVideoView::setVerticalAlignment | ( | const VerticalAlignment | vAlign | ) |
| ARVideoView::VerticalAlignment ARVideoView::verticalAlignment | ( | ) | const |
Defaults to H_ALIGN_CENTRE.
1.9.5