$darkmode
cloe::Frustum Struct Reference

#include <frustum.hpp>

Inheritance diagram for cloe::Frustum:
Collaboration diagram for cloe::Frustum:

Public Member Functions

void to_json (fable::Json &j) const override
 
void from_conf (const fable::Conf &c) override
 
- Public Member Functions inherited from fable::Confable
 Confable (const Confable &) noexcept
 
 Confable (Confable &&) noexcept=default
 
Confableoperator= (const Confable &other) noexcept
 
Confableoperator= (Confable &&other) noexcept
 
virtual void reset_schema ()
 
Schemaschema ()
 
const Schemaschema () const
 
virtual void validate_or_throw (const Conf &c) const
 
virtual bool validate (const Conf &c, std::optional< SchemaError > &err) const
 
Json to_json () const
 

Public Attributes

double fov_h {M_2X_PI}
 
double offset_h {0.0}
 
double fov_v {M_2X_PI}
 
double offset_v {0.0}
 
double clip_near {0.0}
 
double clip_far {480.0}
 

Protected Member Functions

fable::Schema schema_impl () override
 

Detailed Description

This class describes the frustum of a sensor.

Member Function Documentation

◆ from_conf()

void cloe::Frustum::from_conf ( const fable::Conf c)
inlineoverridevirtual

Deserialize a Confable from a Conf.

Unless you have special needs, it is recommended to implement

Schema schema_impl()

and use the default implementation of this.

Reimplemented from fable::Confable.

Here is the call graph for this function:

◆ schema_impl()

fable::Schema cloe::Frustum::schema_impl ( )
inlineoverrideprotectedvirtual

Return a new instance of the schema for this object.

This schema is then stored in schema_. This is called every time the object is created or moved, since Schema contains references to fields that (should be) in the object.

Reimplemented from fable::Confable.

◆ to_json()

void cloe::Frustum::to_json ( fable::Json j) const
inlineoverridevirtual

Serialize a Confable to Json.

Note: If you implement this type, make sure to either use CONFABLE_FRIENDS or a using Confable::to_json statement in your derived type.

Reimplemented from fable::Confable.


The documentation for this struct was generated from the following file: