$darkmode
cloe::Frustum Struct Reference

#include <frustum.hpp>

Inheritance diagram for cloe::Frustum:
[legend]
Collaboration diagram for cloe::Frustum:
[legend]

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
 
Confableoperator= (const Confable &other) noexcept
 
Confableoperator= (Confable &&other) noexcept
 
virtual void reset_schema ()
 
Schemaschema ()
 
const Schemaschema () 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
 

Detailed Description

This class describes the frustum of a sensor.

Member Function Documentation

◆ from_conf()

void cloe::Frustum::from_conf ( const 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()

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.

Here is the call graph for this function:

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