LOST  0.0.1
LOST: Open-source Star Tracker
lost::PngPipelineInput Class Reference

A pipeline input created by reading a PNG from a file on disk. More...

#include <io.hpp>

Inheritance diagram for lost::PngPipelineInput:
Collaboration diagram for lost::PngPipelineInput:

Public Member Functions

 PngPipelineInput (cairo_surface_t *, Camera, const Catalog &)
 A pipeline input coming from an image with no extra metadata. More...
 
 ~PngPipelineInput ()
 
const ImageInputImage () const override
 
const CameraInputCamera () const override
 
const CatalogGetCatalog () const override
 The catalog to which catalog indexes returned from other methods refer. More...
 
- Public Member Functions inherited from lost::PipelineInput
virtual ~PipelineInput ()
 
virtual const StarsInputStars () const
 
virtual const StarIdentifiersInputStarIds () const
 The centroid indices in the StarIdentifiers returned from InputStarIds should be indices into InputStars(), not ExpectedStars(), when present, because otherwise it's useless. More...
 
virtual const AttitudeInputAttitude () const
 Only used in tracking mode, in which case it is an estimate of the current attitude based on the last attitude, IMU info, etc. More...
 
cairo_surface_t * InputImageSurface () const
 Convert the InputImage() output into a cairo surface. More...
 
virtual const StarsExpectedStars () const
 
virtual const StarIdentifiersExpectedStarIds () const
 Centroid indices in the StarIdentifiers returned from ExpectedStarIds should be indices into ExpectedStars(), /not/ InputStars(). More...
 
virtual const AttitudeExpectedAttitude () const
 

Detailed Description

A pipeline input created by reading a PNG from a file on disk.

Definition at line 167 of file io.hpp.

Constructor & Destructor Documentation

◆ PngPipelineInput()

lost::PngPipelineInput::PngPipelineInput ( cairo_surface_t *  cairoSurface,
Camera  camera,
const Catalog catalog 
)

A pipeline input coming from an image with no extra metadata.

Only InputImage will be available. No references to the surface are kept in the class and it may be freed after construction.

Parameters
cairoSurfaceA cairo surface from the image file.
Todo:
should rename, not specific to PNG.

Definition at line 366 of file io.cpp.

Here is the call graph for this function:

◆ ~PngPipelineInput()

lost::PngPipelineInput::~PngPipelineInput ( )

Definition at line 374 of file io.cpp.

Member Function Documentation

◆ GetCatalog()

const Catalog& lost::PngPipelineInput::GetCatalog ( ) const
inlineoverridevirtual

The catalog to which catalog indexes returned from other methods refer.

Implements lost::PipelineInput.

Definition at line 174 of file io.hpp.

◆ InputCamera()

const Camera* lost::PngPipelineInput::InputCamera ( ) const
inlineoverridevirtual

Reimplemented from lost::PipelineInput.

Definition at line 173 of file io.hpp.

◆ InputImage()

const Image* lost::PngPipelineInput::InputImage ( ) const
inlineoverridevirtual

Reimplemented from lost::PipelineInput.

Definition at line 172 of file io.hpp.


The documentation for this class was generated from the following files: