MEPP2 Project
Public Member Functions | Private Attributes | List of all members
FEVV::Header_handler Class Reference

#include <Header_handler.h>

Collaboration diagram for FEVV::Header_handler:
Collaboration graph

Public Member Functions

 Header_handler (const std::vector< double > &dimension, const std::vector< double > &init_coord, FEVV::Filters::VKEPT_POSITION vkept, FEVV::Filters::PREDICTION_TYPE pred, int bit_quantization)
 
 Header_handler ()
 
 ~Header_handler ()
 
void encode_text_header (std::ofstream &file_encode)
 
void decode_text_header (std::ifstream &file_decode)
 
size_t encode_binary_header (draco::EncoderBuffer &buffer)
 
bool getUseTexture () const
 
void decode_binary_header (draco::DecoderBuffer &buffer)
 
FEVV::Filters::VKEPT_POSITION get_vkept () const
 
FEVV::Filters::PREDICTION_TYPE get_pred () const
 
int get_quantization () const
 
const std::vector< double > & get_dimension () const
 
const std::vector< double > & get_init_coord () const
 

Private Attributes

std::vector< double > _dimension
 
std::vector< double > _init_coord
 
FEVV::Filters::VKEPT_POSITION _vkept
 
FEVV::Filters::PREDICTION_TYPE _pred
 
int _bit_quantization
 

Detailed Description

Definition at line 34 of file Header_handler.h.

Constructor & Destructor Documentation

◆ Header_handler() [1/2]

FEVV::Header_handler::Header_handler ( const std::vector< double > &  dimension,
const std::vector< double > &  init_coord,
FEVV::Filters::VKEPT_POSITION  vkept,
FEVV::Filters::PREDICTION_TYPE  pred,
int  bit_quantization 
)
inline

Definition at line 37 of file Header_handler.h.

◆ Header_handler() [2/2]

FEVV::Header_handler::Header_handler ( )
inline

Definition at line 50 of file Header_handler.h.

◆ ~Header_handler()

FEVV::Header_handler::~Header_handler ( )
inline

Definition at line 56 of file Header_handler.h.

Member Function Documentation

◆ decode_binary_header()

void FEVV::Header_handler::decode_binary_header ( draco::DecoderBuffer &  buffer)
inline

Decodes a header from a draco buffer. This function implements line 2 of Algorithm 2.

Definition at line 133 of file Header_handler.h.

Here is the caller graph for this function:

◆ decode_text_header()

void FEVV::Header_handler::decode_text_header ( std::ifstream &  file_decode)
inline

Definition at line 77 of file Header_handler.h.

◆ encode_binary_header()

size_t FEVV::Header_handler::encode_binary_header ( draco::EncoderBuffer &  buffer)
inline

Encodes header info into a draco buffer. Returns the size of the header in bits

Definition at line 105 of file Header_handler.h.

Here is the caller graph for this function:

◆ encode_text_header()

void FEVV::Header_handler::encode_text_header ( std::ofstream &  file_encode)
inline

Definition at line 58 of file Header_handler.h.

◆ get_dimension()

const std::vector< double >& FEVV::Header_handler::get_dimension ( ) const
inline

Definition at line 160 of file Header_handler.h.

Here is the caller graph for this function:

◆ get_init_coord()

const std::vector< double >& FEVV::Header_handler::get_init_coord ( ) const
inline

Definition at line 161 of file Header_handler.h.

Here is the caller graph for this function:

◆ get_pred()

FEVV::Filters::PREDICTION_TYPE FEVV::Header_handler::get_pred ( ) const
inline

Definition at line 158 of file Header_handler.h.

Here is the caller graph for this function:

◆ get_quantization()

int FEVV::Header_handler::get_quantization ( ) const
inline

Definition at line 159 of file Header_handler.h.

Here is the caller graph for this function:

◆ get_vkept()

FEVV::Filters::VKEPT_POSITION FEVV::Header_handler::get_vkept ( ) const
inline

Definition at line 157 of file Header_handler.h.

Here is the caller graph for this function:

◆ getUseTexture()

bool FEVV::Header_handler::getUseTexture ( ) const
inline

Definition at line 128 of file Header_handler.h.

Member Data Documentation

◆ _bit_quantization

int FEVV::Header_handler::_bit_quantization
private

Definition at line 168 of file Header_handler.h.

◆ _dimension

std::vector< double > FEVV::Header_handler::_dimension
private

Definition at line 164 of file Header_handler.h.

◆ _init_coord

std::vector< double > FEVV::Header_handler::_init_coord
private

Definition at line 165 of file Header_handler.h.

◆ _pred

FEVV::Filters::PREDICTION_TYPE FEVV::Header_handler::_pred
private

Definition at line 167 of file Header_handler.h.

◆ _vkept

FEVV::Filters::VKEPT_POSITION FEVV::Header_handler::_vkept
private

Definition at line 166 of file Header_handler.h.


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