HighMap library (C++)
Loading...
Searching...
No Matches
hmap::OpenCVWriter Class Reference

#include <opencv_writer.hpp>

Inheritance diagram for hmap::OpenCVWriter:
Collaboration diagram for hmap::OpenCVWriter:

Classes

struct  Impl

Public Member Functions

 OpenCVWriter ()
 OpenCVWriter (const std::string &filepath, const ImageWriterConfig &config)
 ~OpenCVWriter () override
bool open (const std::string &filepath, const ImageWriterConfig &config) override
void close () override
bool is_open () const override
bool write_chunk (int offset_x, int offset_y, const Array &data) override
bool write_chunk (int offset_x, int offset_y, const std::vector< Array > &channels) override
bool write_tile (const UvTile &region, const Array &data) override
bool write_tile (const UvTile &region, const std::vector< Array > &channels) override
const ImageWriterConfig & config () const override
const std::string & filepath () const override
Public Member Functions inherited from hmap::ImageWriter
virtual ~ImageWriter ()=default

Additional Inherited Members

Static Public Member Functions inherited from hmap::ImageWriter
static std::unique_ptr< ImageWriter > create (const std::string &filepath, const ImageWriterConfig &config)

Constructor & Destructor Documentation

◆ OpenCVWriter() [1/2]

hmap::OpenCVWriter::OpenCVWriter ( )

◆ OpenCVWriter() [2/2]

hmap::OpenCVWriter::OpenCVWriter ( const std::string & filepath,
const ImageWriterConfig & config )
explicit

◆ ~OpenCVWriter()

hmap::OpenCVWriter::~OpenCVWriter ( )
override

Member Function Documentation

◆ open()

bool hmap::OpenCVWriter::open ( const std::string & filepath,
const ImageWriterConfig & config )
overridevirtual

Implements hmap::ImageWriter.

◆ close()

void hmap::OpenCVWriter::close ( )
overridevirtual

Implements hmap::ImageWriter.

◆ is_open()

bool hmap::OpenCVWriter::is_open ( ) const
overridevirtual

Implements hmap::ImageWriter.

◆ write_chunk() [1/2]

bool hmap::OpenCVWriter::write_chunk ( int offset_x,
int offset_y,
const Array & data )
overridevirtual

Implements hmap::ImageWriter.

◆ write_chunk() [2/2]

bool hmap::OpenCVWriter::write_chunk ( int offset_x,
int offset_y,
const std::vector< Array > & channels )
overridevirtual

Reimplemented from hmap::ImageWriter.

◆ write_tile() [1/2]

bool hmap::OpenCVWriter::write_tile ( const UvTile & region,
const Array & data )
overridevirtual

Reimplemented from hmap::ImageWriter.

◆ write_tile() [2/2]

bool hmap::OpenCVWriter::write_tile ( const UvTile & region,
const std::vector< Array > & channels )
overridevirtual

Reimplemented from hmap::ImageWriter.

◆ config()

const ImageWriterConfig & hmap::OpenCVWriter::config ( ) const
overridevirtual

Implements hmap::ImageWriter.

◆ filepath()

const std::string & hmap::OpenCVWriter::filepath ( ) const
overridevirtual

Implements hmap::ImageWriter.


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