C4 Engine
C4 Engine API Documentation

class CameraWidget

Defined in:  C4Panels.h
The CameraWidget class represents an interface widget that displays a remote camera view.
Definition

class CameraWidget final : public QuadWidget

Member Functions
CameraWidget::GetCameraConnectorKey Returns the connector key that identifies the camera node.
CameraWidget::SetCameraConnectorKey Sets the connector key that identifies the camera node.
CameraWidget::GetMinGeometryDetailLevel Returns the minimum geometry detail level rendered through a camera widget.
CameraWidget::SetMinGeometryDetailLevel Sets the minimum geometry detail level rendered through a camera widget.
CameraWidget::GetGeometryDetailLevelBias Returns the geometry detail level bias applied to a camera widget.
CameraWidget::SetGeometryDetailLevelBias Sets the geometry detail level bias applied to a camera widget.
Constructor

CameraWidget(const Vector2D& size);

Parameters
size The size of the camera widget, in pixels.
Description
The CameraWidget class is used to display a remote camera view inside a panel effect. The camera used to render the source image is determined by a connector key stored in the camera widget. This key identifies a connector belonging to the panel effect that node, and it should be connected to a FrustumCamera node. The key can be specified by calling the CameraWidget::SetCameraConnectorKey function.
Base Classes
QuadWidget A camera widget is a specific type of QuadWidget.