vil1_block_cache_image_impl Class Reference

#include <vil1_block_cache_image_impl.h>

Inheritance diagram for vil1_block_cache_image_impl:

vil1_image_impl List of all members.

Detailed Description

vil1_block_cache_image_impl - adaptor which caches the given image in blocks of given size.

Definition at line 16 of file vil1_block_cache_image_impl.h.


Public Member Functions

 vil1_block_cache_image_impl (vil1_image, unsigned blocksizex, unsigned blocksizey)
 Constructor with image and x and y bock-size.
 ~vil1_block_cache_image_impl ()
 Destructor.
int planes () const
 Number of image planes.
int width () const
 Image width.
int height () const
 Image height.
int components () const
 Number of measures per pixel.
int bits_per_component () const
 Number of bits per component.
vil1_component_format component_format () const
 Component format.
vil1_image get_plane (unsigned int p) const
 Access to image-plane.
bool get_section (void *buf, int x0, int y0, int w, int h) const
 Write nominated section of image to buf.
bool put_section (void const *buf, int x0, int y0, int w, int h)
 Write buf to nominated section of image.
bool get_property (char const *tag, void *property_value_out=0) const
 Get info about block-characteristics.
virtual vcl_string is_a () const
 Return the name of the class;.
virtual bool is_class (vcl_string const &) const
 Return true if the name of the class matches the argument.
virtual char const * file_format () const
 Return a string describing the file format.
virtual bool set_property (char const *tag, void const *property_value=0) const

Private Attributes

vil1_image base
unsigned block_size_x
unsigned block_size_y

Constructor & Destructor Documentation

vil1_block_cache_image_impl::vil1_block_cache_image_impl ( vil1_image  ,
unsigned  blocksizex,
unsigned  blocksizey 
)

Constructor with image and x and y bock-size.

Definition at line 18 of file vil1_block_cache_image_impl.cxx.

vil1_block_cache_image_impl::~vil1_block_cache_image_impl (  ) 

Destructor.

Definition at line 23 of file vil1_block_cache_image_impl.cxx.


Member Function Documentation

int vil1_block_cache_image_impl::planes (  )  const [inline, virtual]

Number of image planes.

Implements vil1_image_impl.

Definition at line 27 of file vil1_block_cache_image_impl.h.

int vil1_block_cache_image_impl::width (  )  const [inline, virtual]

Image width.

Implements vil1_image_impl.

Definition at line 30 of file vil1_block_cache_image_impl.h.

int vil1_block_cache_image_impl::height (  )  const [inline, virtual]

Image height.

Implements vil1_image_impl.

Definition at line 33 of file vil1_block_cache_image_impl.h.

int vil1_block_cache_image_impl::components (  )  const [inline, virtual]

Number of measures per pixel.

Implements vil1_image_impl.

Definition at line 36 of file vil1_block_cache_image_impl.h.

int vil1_block_cache_image_impl::bits_per_component (  )  const [inline, virtual]

Number of bits per component.

Implements vil1_image_impl.

Definition at line 39 of file vil1_block_cache_image_impl.h.

vil1_component_format vil1_block_cache_image_impl::component_format (  )  const [inline, virtual]

Component format.

Implements vil1_image_impl.

Definition at line 42 of file vil1_block_cache_image_impl.h.

vil1_image vil1_block_cache_image_impl::get_plane ( unsigned int  p  )  const [virtual]

Access to image-plane.

Reimplemented from vil1_image_impl.

Definition at line 26 of file vil1_block_cache_image_impl.cxx.

bool vil1_block_cache_image_impl::get_section ( void *  buf,
int  x0,
int  y0,
int  w,
int  h 
) const [virtual]

Write nominated section of image to buf.

Implements vil1_image_impl.

Definition at line 31 of file vil1_block_cache_image_impl.cxx.

bool vil1_block_cache_image_impl::put_section ( void const *  buf,
int  x0,
int  y0,
int  w,
int  h 
) [virtual]

Write buf to nominated section of image.

Implements vil1_image_impl.

Definition at line 36 of file vil1_block_cache_image_impl.cxx.

bool vil1_block_cache_image_impl::get_property ( char const *  tag,
void *  property_value_out = 0 
) const [virtual]

Get info about block-characteristics.

Reimplemented from vil1_image_impl.

Definition at line 42 of file vil1_block_cache_image_impl.cxx.

vcl_string vil1_block_cache_image_impl::is_a (  )  const [virtual]

Return the name of the class;.

Reimplemented from vil1_image_impl.

Definition at line 63 of file vil1_block_cache_image_impl.cxx.

bool vil1_block_cache_image_impl::is_class ( vcl_string const &   )  const [virtual]

Return true if the name of the class matches the argument.

Reimplemented from vil1_image_impl.

Definition at line 70 of file vil1_block_cache_image_impl.cxx.

virtual char const* vil1_image_impl::file_format (  )  const [inline, virtual, inherited]

Return a string describing the file format.

Only file images have a format, others return 0

Reimplemented in vil1_bmp_generic_image, vil1_gen_generic_image, vil1_gif_loader_saver, vil1_gif_loader_saver_proxy, vil1_iris_generic_image, vil1_jpeg_generic_image, vil1_mit_generic_image, vil1_png_generic_image, vil1_pnm_generic_image, vil1_ras_generic_image, vil1_tiff_generic_image, vil1_viff_generic_image, and vil1_image_proxy_impl.

Definition at line 134 of file vil1_image_impl.h.

bool vil1_image_impl::set_property ( char const *  tag,
void const *  property_value = 0 
) const [virtual, inherited]

Reimplemented in vil1_tiff_generic_image, and vil1_image_proxy_impl.

Definition at line 28 of file vil1_image_impl.cxx.


Member Data Documentation

vil1_image vil1_block_cache_image_impl::base [private]

Definition at line 64 of file vil1_block_cache_image_impl.h.

unsigned vil1_block_cache_image_impl::block_size_x [private]

Definition at line 67 of file vil1_block_cache_image_impl.h.

unsigned vil1_block_cache_image_impl::block_size_y [private]

Definition at line 68 of file vil1_block_cache_image_impl.h.


The documentation for this class was generated from the following files:
Generated on Sat Nov 7 05:09:12 2009 for core/vil1 by  doxygen 1.5.1