|
| View (const View &)=delete |
|
int | cache_cleanup (void) |
| Cleans unused data that is not dirty.
|
|
void | clear (void) |
| Clears everything, discards potentially unsaved data.
|
|
void | debug_print (void) |
| Prints a formatted list of internal data.
|
|
void | delete_value (std::string const &key) |
| Deletes the key/value pair from the meta information.
|
|
ByteImage::Ptr | get_blob (std::string const &name) |
| Initializes the proxy, loads and returns the blob.
|
|
BlobProxy const * | get_blob_proxy (std::string const &name) |
| Returns an initialized blob proxy by name.
|
|
BlobProxies const & | get_blobs (void) const |
| Returns a list of all BLOB proxies (blobs may not be initialized).
|
|
ByteImage::Ptr | get_byte_image (std::string const &name) |
| Returns an image of type IMAGE_TYPE_UINT8.
|
|
std::size_t | get_byte_size (void) const |
| Returns the memory consumption in bytes.
|
|
CameraInfo const & | get_camera (void) const |
| Returns the camera information of the view (section "camera").
|
|
std::string const & | get_directory (void) const |
| Returns the directory name the view is connected with.
|
|
FloatImage::Ptr | get_float_image (std::string const &name) |
| Returns an image of type IMAGE_TYPE_FLOAT.
|
|
int | get_id (void) const |
| Returns the ID of the view (key "view.id").
|
|
ImageBase::Ptr | get_image (std::string const &name, ImageType type=IMAGE_TYPE_UNKNOWN) |
| Initializes the proxy, loads and returns the image.
|
|
ImageProxy const * | get_image_proxy (std::string const &name, ImageType type=IMAGE_TYPE_UNKNOWN) |
| Returns an initialized image proxy by name.
|
|
ImageProxies const & | get_images (void) const |
| Returns a list of all image proxies (images may not be initialized).
|
|
MetaData const & | get_meta_data (void) const |
| Returns the view meta data.
|
|
std::string | get_name (void) const |
| Returns the name of the view (key "view.name").
|
|
std::string | get_value (std::string const &key) const |
| Returns a value from the meta information.
|
|
bool | has_blob (std::string const &name) |
| Returns true if a BLOB by that name exist.
|
|
bool | has_image (std::string const &name, ImageType type=IMAGE_TYPE_UNKNOWN) |
| Returns true if an image by that name exist.
|
|
bool | is_camera_valid (void) const |
| Returns true if the camera is valid.
|
|
bool | is_dirty (void) const |
| Returns true if meta data, images or blobs are dirty.
|
|
void | load_view (std::string const &path) |
| Initializes the view from a directory.
|
|
void | load_view_from_mve_file (std::string const &filename) |
| Initializes the view from a deprecated .mve file.
|
|
View | operator= (const View &)=delete |
|
void | reload_view (void) |
| Reloads the view.
|
|
bool | remove_blob (std::string const &name) |
| Returns true if a blob by that name has been removed.
|
|
bool | remove_image (std::string const &name) |
| Returns true if an image by that name has been removed.
|
|
int | save_view (void) |
| Saves dirty meta data, images and blobs, returns the amount saved.
|
|
void | save_view_as (std::string const &path) |
| Writes the view to an MVE directory.
|
|
void | set_blob (ByteImage::Ptr blob, std::string const &name) |
| Sets a BLOB to the view and marks it dirty.
|
|
void | set_camera (CameraInfo const &camera) |
| Sets camera information of the view (section "camera").
|
|
void | set_id (int view_id) |
| Sets the view ID (key "view.id").
|
|
void | set_image (ImageBase::Ptr image, std::string const &name) |
| Sets an image to the view and marks it dirty.
|
|
void | set_image_ref (std::string const &filename, std::string name) |
| Sets an image reference.
|
|
void | set_name (std::string const &name) |
| Sets the name of the view (key "view.name").
|
|
void | set_value (std::string const &key, std::string const &value) |
| Adds a key/value pair to the meta information.
|
|
File system representation of a MVE view.
An MVE view is represented in a directory. This class manages the file system layout, meta information in form of (key,value) pairs, and dynamically loads images and blob.
Definition at line 65 of file view.h.