8#ifndef META_OCEAN_RENDERING_UNDISTORTED_BACKGROUND_H
9#define META_OCEAN_RENDERING_UNDISTORTED_BACKGROUND_H
virtual Scalar distance() const
Returns the distance between the world coordinate system and the background object.
Background()
Creates a new background object.
DynamicObject()
Creates a new dynamic object.
ObjectType
Definition of different object type.
Definition Object.h:62
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.
SharedAnyCamera mediumCamera_
The camera profile of the medium for the last update timestamp.
Definition UndistortedBackground.h:138
virtual void setMedium(const Media::FrameMediumRef &medium)
Sets the image source for the undistorted background.
bool cameraChanged_
True, if the camera has changed since the last update.
Definition UndistortedBackground.h:141
virtual const Media::FrameMediumRef & medium() const
Returns the image source used as background image.
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
@ DT_UNDISTORTED
Undistorted display type.
Definition UndistortedBackground.h:57
MediaTexture2DRef texture_
2D texture object holding the background image.
Definition UndistortedBackground.h:144
virtual const SharedAnyCamera & camera() const
Returns the camera object related to the background image.
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.
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:64
std::shared_ptr< AnyCamera > SharedAnyCamera
Definition of a shared pointer holding an AnyCamera object with Scalar precision.
Definition AnyCamera.h:61
float Scalar
Definition of a scalar type.
Definition Math.h:129
SmartObjectRef< MediaTexture2D > MediaTexture2DRef
Definition of a smart object reference holding a 2D texture.
Definition MediaTexture2D.h:30
SmartObjectRef< View > ViewRef
Definition of a smart object reference holding a view node.
Definition View.h:39
SmartObjectRef< UndistortedBackground > UndistortedBackgroundRef
Definition of a smart object reference holding an undistorted background node.
Definition UndistortedBackground.h:34
Namespace of the Rendering library.
Definition AbsoluteTransform.h:18
The namespace covering the entire Ocean framework.
Definition Accessor.h:15