81 bool initWithVideoSource(
const ARVideoSource& vs,
const int contextWidth,
const int contextHeight);
82 void getViewport(int32_t viewport[4])
const;
84 void drawDebugImage(
const uint8_t *image,
int pyramidLevel);
87 HorizontalAlignment horizontalAlignment()
const;
88 void setHorizontalAlignment(
const HorizontalAlignment hAlign);
89 VerticalAlignment verticalAlignment()
const;
90 void setVerticalAlignment(
const VerticalAlignment vAlign);
91 ScalingMode scalingMode()
const;
92 void setScalingMode(
const ScalingMode scaling);
93 bool distortionCompensation()
const;
94 void setDistortionCompensation(
const bool distortionCompensation);
95 bool rotate90()
const;
96 void setRotate90(
const bool rotate90);
98 void setFlipH(
const bool flipH);
100 void setFlipV(
const bool flipV);
101 Size contextSize()
const;
102 void setContextSize(
const Size size);
107 enum class DrawType {None, Main, Debug};
108 DrawType m_drawTypeSet;
114 int32_t m_viewport[4];
115 HorizontalAlignment m_hAlign;
116 VerticalAlignment m_vAlign;
117 ScalingMode m_scalingMode;
118 bool m_distortionCompensation;
artoolkitX core routines.
A collection of useful graphics routines for artoolkitX.
A video source provides video frames to the artoolkitX tracking module.
Definition: ARVideoSource.h:53
ARVideoView draws the output of an ARVideoSource to a rendering context, usually for the purposes of ...
Definition: ARVideoView.h:55
HorizontalAlignment
Definition: ARVideoView.h:63
ScalingMode
Definition: ARVideoView.h:73
VerticalAlignment
Definition: ARVideoView.h:68
Definition: arg_private.h:48
A structure to hold a timestamp in seconds and microseconds, with arbitrary epoch.
Definition: ar.h:139
Definition: ARVideoView.h:59
int width
Definition: ARVideoView.h:60
int height
Definition: ARVideoView.h:61