ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
cloudViewer::io::WritePointCloudOption Struct Reference

Optional parameters to WritePointCloud. More...

#include <FileIO.h>

Collaboration diagram for cloudViewer::io::WritePointCloudOption:

Public Types

enum class  IsAscii : bool { Binary = false , Ascii = true }
 
enum class  Compressed : bool { Uncompressed = false , Compressed = true }
 

Public Member Functions

 WritePointCloudOption (std::string format="auto", IsAscii write_ascii=IsAscii::Binary, Compressed compressed=Compressed::Uncompressed, bool print_progress=false, std::function< bool(double)> update_progress={})
 
 WritePointCloudOption (bool write_ascii, bool compressed=false, bool print_progress=false, std::function< bool(double)> update_progress={})
 
 WritePointCloudOption (std::string format, bool write_ascii, bool compressed=false, bool print_progress=false, std::function< bool(double)> update_progress={})
 
 WritePointCloudOption (std::function< bool(double)> up)
 

Public Attributes

std::string format
 
IsAscii write_ascii
 
Compressed compressed
 
bool print_progress
 
std::function< bool(double)> update_progress
 

Detailed Description

Optional parameters to WritePointCloud.

Definition at line 77 of file FileIO.h.

Member Enumeration Documentation

◆ Compressed

Enumerator
Uncompressed 
Compressed 

Definition at line 79 of file FileIO.h.

◆ IsAscii

Enumerator
Binary 
Ascii 

Definition at line 78 of file FileIO.h.

Constructor & Destructor Documentation

◆ WritePointCloudOption() [1/4]

cloudViewer::io::WritePointCloudOption::WritePointCloudOption ( std::string  format = "auto",
IsAscii  write_ascii = IsAscii::Binary,
Compressed  compressed = Compressed::Uncompressed,
bool  print_progress = false,
std::function< bool(double)>  update_progress = {} 
)
inline

Definition at line 80 of file FileIO.h.

◆ WritePointCloudOption() [2/4]

cloudViewer::io::WritePointCloudOption::WritePointCloudOption ( bool  write_ascii,
bool  compressed = false,
bool  print_progress = false,
std::function< bool(double)>  update_progress = {} 
)
inline

Definition at line 94 of file FileIO.h.

◆ WritePointCloudOption() [3/4]

cloudViewer::io::WritePointCloudOption::WritePointCloudOption ( std::string  format,
bool  write_ascii,
bool  compressed = false,
bool  print_progress = false,
std::function< bool(double)>  update_progress = {} 
)
inline

Definition at line 103 of file FileIO.h.

◆ WritePointCloudOption() [4/4]

cloudViewer::io::WritePointCloudOption::WritePointCloudOption ( std::function< bool(double)>  up)
inline

Definition at line 113 of file FileIO.h.

Member Data Documentation

◆ compressed

Compressed cloudViewer::io::WritePointCloudOption::compressed

Whether to save Compressed or Uncompressed. Currently, only PCD is capable of compressing, and only if using IsAscii::Binary, all other formats ignore this.

Definition at line 127 of file FileIO.h.

◆ format

std::string cloudViewer::io::WritePointCloudOption::format

Specifies what format the contents of the file are (and what writer to use), default "auto" means to go off of file extension. Note: "auto" is incompatible when reading directly from memory.

Definition at line 120 of file FileIO.h.

◆ print_progress

bool cloudViewer::io::WritePointCloudOption::print_progress

Print progress to stdout about loading progress. Also see update_progress if you want to have your own progress indicators or to be able to cancel loading.

Definition at line 131 of file FileIO.h.

◆ update_progress

std::function<bool(double)> cloudViewer::io::WritePointCloudOption::update_progress

Callback to invoke as reading is progressing, parameter is percentage completion (0.-100.) return true indicates to continue loading, false means to try to stop loading and cleanup

Definition at line 135 of file FileIO.h.

◆ write_ascii

IsAscii cloudViewer::io::WritePointCloudOption::write_ascii

Whether to save in Ascii or Binary. Some savers are capable of doing either, other ignore this.

Definition at line 123 of file FileIO.h.


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