$darkmode
#include <frustum.hpp>
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 | |
| Confable & | operator= (const Confable &other) noexcept |
| Confable & | operator= (Confable &&other) noexcept |
| virtual void | reset_schema () |
| Schema & | schema () |
| const Schema & | schema () 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 |
This class describes the frustum of a sensor.
|
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.
|
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.
|
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.