Public Member Functions | |
VideoFeed (osgVideo::VideoSource *) | |
Constructor that sets which VideoSource to use. | |
virtual void | operator() (osgProducer::OsgSceneHandler &, Producer::Camera &) |
texture maps the video feed onto the background. | |
void | setSceneView (osgUtil::SceneView *sceneView) |
store a reference to the SceneView. | |
void | setVideoSource (osgVideo::VideoSource *videoSource) |
sets which VideoSource to use. | |
osgVideo::VideoSource * | getVideoSource (void) |
return the VideoSource in use. | |
Protected Member Functions | |
bool | createTexture () |
allocates memory for the texture. | |
bool | updateTexture () |
gets a new frame and updates the texture. |
|
Callback class to update the background texture with the frame from a video camera.
|
|
Loads a file and uses it as a texture for the background This texture will be updated by the camera new version creates a texture and allocates memory for it.
|
|
Texture maps the camera input onto a polygon on the background calls updateTexture to obtain a new camera frame.
|
|
Obtain a new reading from the camera. Called by updateBackground.
|