Class AnyTrxFile
Defined in File trx.h
Class Documentation
-
class AnyTrxFile
Public Types
-
using PositionsChunkCallback = std::function<void(TrxScalarType dtype, const void *data, size_t point_offset, size_t point_count)>
-
using PositionsChunkMutableCallback = std::function<void(TrxScalarType dtype, void *data, size_t point_offset, size_t point_count)>
Public Functions
-
AnyTrxFile() = default
-
~AnyTrxFile()
-
AnyTrxFile(const AnyTrxFile&) = delete
-
AnyTrxFile &operator=(const AnyTrxFile&) = delete
-
AnyTrxFile(AnyTrxFile&&) noexcept = default
-
AnyTrxFile &operator=(AnyTrxFile&&) noexcept = default
-
size_t num_vertices() const
-
size_t num_streamlines() const
-
void close()
-
void save(const std::string &filename, TrxCompression compression = TrxCompression::None)
-
void save(const std::string &filename, const TrxSaveOptions &options)
-
const TypedArray *get_dps(const std::string &name) const
-
const TypedArray *get_dpv(const std::string &name) const
-
std::vector<std::array<double, 3>> get_streamline(size_t streamline_index) const
-
void for_each_positions_chunk(size_t chunk_bytes, const PositionsChunkCallback &fn) const
-
void for_each_positions_chunk_mutable(size_t chunk_bytes, const PositionsChunkMutableCallback &fn)
-
inline const std::string &backing_directory() const
Access the backing directory path.
-
inline std::string &backing_directory()
-
inline const std::string &uncompressed_folder_handle() const
Access the uncompressed folder handle.
-
inline std::string &uncompressed_folder_handle()
Public Members
-
TypedArray positions
-
TypedArray offsets
-
std::vector<uint64_t> offsets_u64
-
std::vector<uint32_t> lengths
-
std::map<std::string, TypedArray> groups
-
std::map<std::string, TypedArray> data_per_streamline
-
std::map<std::string, TypedArray> data_per_vertex
-
std::map<std::string, std::map<std::string, TypedArray>> data_per_group
Public Static Functions
-
static AnyTrxFile load(const std::string &path)
-
static AnyTrxFile load_from_zip(const std::string &path)
-
static AnyTrxFile load_from_directory(const std::string &path)
-
using PositionsChunkCallback = std::function<void(TrxScalarType dtype, const void *data, size_t point_offset, size_t point_count)>