8#ifndef META_OCEAN_RENDERING_UNDISTORTED_BACKGROUND_H
9#define META_OCEAN_RENDERING_UNDISTORTED_BACKGROUND_H
27class UndistortedBackground;
141 bool cameraChanged_ =
false;
This class is the base class for all backgrounds.
Definition rendering/Background.h:37
This class is the base class for all dynamic scene graph objects.
Definition DynamicObject.h:40
ObjectType
Definition of different object type.
Definition Object.h:63
This class implements a smart rendering object reference.
Definition rendering/ObjectRef.h:34
This class is the base class for all undistorted backgrounds.
Definition UndistortedBackground.h:46
virtual bool setDisplayType(const DisplayType type)
Sets the display type of this background object.
UndistortedBackground()
Creates an undistorted background object.
virtual void onMediumCameraChanged(const Timestamp timestamp)=0
Event function if the camera of the used medium has changed.
virtual void setMedium(const Media::FrameMediumRef &medium)
Sets the image source for the undistorted background.
virtual const Media::FrameMediumRef & medium() const
Returns the image source used as background image.
PinholeCamera mediumCamera_
The camera profile of the medium for the last update timestamp.
Definition UndistortedBackground.h:138
virtual DisplayType displayType() const
Returns the display type of this background object.
DisplayType
Definition of different distortion display types.
Definition UndistortedBackground.h:53
@ DT_FASTEST
Fastest display type.
Definition UndistortedBackground.h:55
MediaTexture2DRef texture_
2D texture object holding the background image.
Definition UndistortedBackground.h:144
Media::FrameMediumRef medium_
Frame medium object providing the image data for the background.
Definition UndistortedBackground.h:135
~UndistortedBackground() override
Destructs an undistorted background object.
ObjectType type() const override
Returns the type of this object.
virtual const PinholeCamera & camera() const
Returns the camera object related to the background image.
void onDynamicUpdate(const ViewRef &view, const Timestamp timestamp) override
Update function called by the framebuffer.
bool setDistance(const Scalar distance) override
Sets the distance between viewer and background.
This class implements a timestamp.
Definition Timestamp.h:36
float Scalar
Definition of a scalar type.
Definition Math.h:129
SmartObjectRef< UndistortedBackground > UndistortedBackgroundRef
Definition of a smart object reference holding an undistorted background node.
Definition UndistortedBackground.h:34
The namespace covering the entire Ocean framework.
Definition Accessor.h:15