2 #ifndef vil_image_resource_plugin_h_ 3 #define vil_image_resource_plugin_h_ 14 # include <vcl_msvc_warnings.h> 35 virtual std::string
is_a()
const {
return "vil_image_resource_plugin"; }
39 unsigned ni()
const override {
return 0; }
40 unsigned nj()
const override {
return 0; }
41 unsigned nplanes()
const override {
return 0; }
43 bool get_property(
char const * ,
void * =
nullptr)
const override {
return false; }
60 const std::string & path,
61 const std::string & filetype,
62 const std::string & colour);
98 #endif // vil_image_resource_plugin_h_ An abstract base class of smart pointers to actual image data in memory.
vil_smart_ptr< vil_image_view_base > vil_image_view_base_sptr
unsigned nplanes() const override
Dimensions: Planes x ni x nj.
static void register_plugin(vil_image_resource_plugin *plugin)
Register a vil_image_resource_plugin to the list of plugins.
~vil_image_resource_plugin() override=default
Destructor.
A base class reference-counting view of some image data.
unsigned nj() const override
Dimensions: Planes x ni x nj.
virtual bool can_be_loaded(const std::string &filename)
Check whether a filename is a potential candidate for loading and if it is available.
unsigned ni() const override
Dimensions: Planes x ni x nj.
vil_image_resource_plugin()
Default constructor.
vil_image_view_base_sptr get_copy_view(unsigned, unsigned, unsigned, unsigned) const override
Create a read/write view of a copy of this data.
virtual std::string is_a() const
Name of the class.
bool put_view(vil_image_view_base const &, unsigned, unsigned) override
Put the data in this view back into the image source.
virtual bool load_the_image(vil_image_view_base_sptr &image, const std::string &path)
Attempt to load image from named file.
Abstract representation of an image source or image destination.
void set_filetype(const std::string &filetype)
Set the filetype options.
void set_colour(const std::string &colour)
Set the colour options.
vil_pixel_format pixel_format() const override
Pixel Format.
bool get_property(char const *, void *=nullptr) const override
Extra property information.
static void delete_all_plugins()
Delete all registered plugins.
Representation of a generic image source or destination.
std::string colour_
colour.
virtual void set_size(int width, int height)
Set the desired image size.
A base class for a plugin for vil images loading.
vil_pixel_format pixel_format_
std::string filetype_
file type.