Class CameraSubject

Inheritance Relationships

Base Type

Class Documentation

class CameraSubject : public O3DS::Subject

Moving Camera, e.g. VCam.

Representation of a 3d camera including some lens and filmback information Likely only has one transform but more than one are supported

Public Functions

EIGEN_MAKE_ALIGNED_OPERATOR_NEW CameraSubject(void *ref = nullptr)
CameraSubject(const std::string &name, const std::string &uuid, void *ref = nullptr)
flatbuffers::Offset<O3DS::Data::Camera> serialize(flatbuffers::FlatBufferBuilder &builder)

Convert to flatbuffers using the given builder.

void parse(const O3DS::Data::Camera *data, CameraBuilder *camera = nullptr)

Parse the given flatbuffer data to populate this camera, no null checking.

void parseUpdate(const O3DS::Data::CameraUpdate*)

Parse the given flatbuffer data to populate this camera, no null checking.

flatbuffers::Offset<O3DS::Data::CameraUpdate> serializeUpdate(flatbuffers::FlatBufferBuilder &builder, size_t &count, double deltaThreshold)

Flatbuffers serialization of updates only.

Public Members

float filmBackWidth

Film back width in mm.

float filmBackHeight

Film back height in mm.

float focalLength

Lens focal length in mm.

float aspect

Aspect Ratio (crop?).

float focusDistance

Focus distance in mm.

float aperture

Aperture in f-stops.