$darkmode
#include <frustum.hpp>
Public Member Functions | |
| void | to_json (Json &j) const override |
| void | from_conf (const Conf &c) override |
Public Member Functions inherited from fable::Confable | |
| Confable (const Confable &) noexcept | |
| Confable (Confable &&) noexcept | |
| Confable & | operator= (const Confable &other) noexcept |
| Confable & | operator= (Confable &&other) noexcept |
| virtual void | reset_schema () |
| Schema & | schema () |
| const Schema & | schema () const |
| virtual void | validate (const Conf &c) const |
| virtual void | to_json (Json &j) 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 | |
| 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.