68 typedef std::shared_ptr<View>
Ptr;
82 bool is_dirty =
false;
89 bool is_dirty =
false;
102 bool is_initialized =
false;
105 int64_t channels = 0;
116 bool is_dirty =
false;
128 bool is_initialized =
false;
140 static View::Ptr create (std::string
const& path);
148 void load_view (std::string
const& path);
151 void load_view_from_mve_file (std::string
const& filename);
154 void reload_view (
void);
157 void save_view_as (std::string
const& path);
160 int save_view (
void);
163 std::string
const& get_directory (
void)
const;
169 bool is_dirty (
void)
const;
172 int cache_cleanup (
void);
175 std::size_t get_byte_size (
void)
const;
180 std::string get_value (std::string
const& key)
const;
183 void set_value (std::string
const& key, std::string
const& value);
186 void delete_value (std::string
const& key);
191 void set_id (
int view_id);
193 int get_id (
void)
const;
196 void set_name (std::string
const& name);
198 std::string get_name (
void)
const;
205 bool is_camera_valid (
void)
const;
214 ImageProxy const* get_image_proxy (std::string
const& name,
218 bool has_image (std::string
const& name,
238 void set_image_ref (std::string
const& filename, std::string name);
241 bool remove_image (std::string
const& name);
249 BlobProxy const* get_blob_proxy (std::string
const& name);
252 bool has_blob (std::string
const& name);
261 bool remove_blob (std::string
const& name);
266 MetaData const& get_meta_data (
void)
const;
275 void debug_print (
void);
282 View (std::string
const& path);
285 void deprecated_format_check (std::string
const& path);
286 void load_meta_data (std::string
const& path);
287 void save_meta_data (std::string
const& path);
288 void populate_images_and_blobs (std::string
const& path);
289 void replace_file (std::string
const& old_fn, std::string
const& new_fn);
291 ImageProxy* find_image_intern (std::string
const& name);
292 void initialize_image (
ImageProxy* proxy,
bool update);
294 void load_image_intern (
ImageProxy* proxy,
bool init_only);
297 BlobProxy* find_blob_intern (std::string
const& name);
298 void initialize_blob (
BlobProxy* proxy,
bool update);
300 void load_blob_intern (
BlobProxy* proxy,
bool init_only);
301 void save_blob_intern (
BlobProxy* proxy);