vil1_image_proxy_impl Struct Reference

Inheritance diagram for vil1_image_proxy_impl:

vil1_image_impl List of all members.

Detailed Description

Definition at line 13 of file vil1_image_proxy.cxx.


Public Member Functions

 vil1_image_proxy_impl (char const *file)
int planes () const
 Dimensions: Planes x W x H x Components.
int width () const
 Dimensions: Planes x W x H x Components.
int height () const
 Dimensions: Planes x W x H x Components.
int components () const
 Dimensions: Planes x W x H x Components.
int bits_per_component () const
 Number of bits per component.
enum vil1_component_format component_format () const
 Format.
char const * file_format () const
 Return a string describing the file format.
vil1_image get_plane (unsigned int p) const
 return the ith plane.
bool get_section (void *buf, int x0, int y0, int width, int height) const
 Copy buffer of this to BUF.
bool put_section (void const *buf, int x0, int y0, int width, int height)
 Copy plane PLANE of BUF to this.
bool get_property (char const *tag, void *property_value) const
 Extra property information.
bool set_property (char const *tag, void const *property_value) const
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.

Public Attributes

vcl_string filename
int planes_
int width_
int height_
int components_
int bits_per_component_
vil1_component_format component_format_
vcl_string file_format_

Constructor & Destructor Documentation

vil1_image_proxy_impl::vil1_image_proxy_impl ( char const *  file  )  [inline]

Definition at line 26 of file vil1_image_proxy.cxx.


Member Function Documentation

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

Dimensions: Planes x W x H x Components.

Implements vil1_image_impl.

Definition at line 41 of file vil1_image_proxy.cxx.

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

Dimensions: Planes x W x H x Components.

Implements vil1_image_impl.

Definition at line 42 of file vil1_image_proxy.cxx.

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

Dimensions: Planes x W x H x Components.

Implements vil1_image_impl.

Definition at line 43 of file vil1_image_proxy.cxx.

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

Dimensions: Planes x W x H x Components.

Implements vil1_image_impl.

Definition at line 44 of file vil1_image_proxy.cxx.

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

Number of bits per component.

Size (in bits) for the smallest entity of the image.

Implements vil1_image_impl.

Definition at line 45 of file vil1_image_proxy.cxx.

enum vil1_component_format vil1_image_proxy_impl::component_format (  )  const [inline, virtual]

Format.

A standard RGB RGB RGB image has

Implements vil1_image_impl.

Definition at line 46 of file vil1_image_proxy.cxx.

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

Return a string describing the file format.

Only file images have a format, others return 0

Reimplemented from vil1_image_impl.

Definition at line 47 of file vil1_image_proxy.cxx.

vil1_image vil1_image_proxy_impl::get_plane ( unsigned int  p  )  const [inline, virtual]

return the ith plane.

Reimplemented from vil1_image_impl.

Definition at line 50 of file vil1_image_proxy.cxx.

bool vil1_image_proxy_impl::get_section ( void *  buf,
int  x0,
int  y0,
int  width,
int  height 
) const [inline, virtual]

Copy buffer of this to BUF.

The buffer is stored like this for each pixel: component0(plane0,plane1,plane2,...),component1(plane0,plane1,plane2,...),...
total size of BUF in bytes should be (bits_per_component * components + 7) / 8 i.e. rounding to the next multiple of 8 bits (only correct if 1 byte = 8 bits)

Implements vil1_image_impl.

Definition at line 52 of file vil1_image_proxy.cxx.

bool vil1_image_proxy_impl::put_section ( void const *  buf,
int  x0,
int  y0,
int  width,
int  height 
) [inline, virtual]

Copy plane PLANE of BUF to this.

The buffer should look like this for each pixel: component0(plane0,plane1,plane2,...),component1(plane0,plane1,plane2,...),...
total size of BUF in bytes should be (bits_per_component * components + 7) / 8 i.e. rounding to the next multiple of 8 bits (only correct if 1 byte = 8 bits)

Implements vil1_image_impl.

Definition at line 54 of file vil1_image_proxy.cxx.

bool vil1_image_proxy_impl::get_property ( char const *  tag,
void *  property_value 
) const [inline, virtual]

Extra property information.

Reimplemented from vil1_image_impl.

Definition at line 57 of file vil1_image_proxy.cxx.

bool vil1_image_proxy_impl::set_property ( char const *  tag,
void const *  property_value 
) const [inline, virtual]

Reimplemented from vil1_image_impl.

Definition at line 59 of file vil1_image_proxy.cxx.

vcl_string vil1_image_proxy_impl::is_a (  )  const [virtual]

Return the name of the class;.

Reimplemented from vil1_image_impl.

Definition at line 75 of file vil1_image_proxy.cxx.

bool vil1_image_proxy_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 82 of file vil1_image_proxy.cxx.


Member Data Documentation

vcl_string vil1_image_proxy_impl::filename

Definition at line 15 of file vil1_image_proxy.cxx.

int vil1_image_proxy_impl::planes_

Definition at line 18 of file vil1_image_proxy.cxx.

int vil1_image_proxy_impl::width_

Definition at line 19 of file vil1_image_proxy.cxx.

int vil1_image_proxy_impl::height_

Definition at line 20 of file vil1_image_proxy.cxx.

int vil1_image_proxy_impl::components_

Definition at line 21 of file vil1_image_proxy.cxx.

int vil1_image_proxy_impl::bits_per_component_

Definition at line 22 of file vil1_image_proxy.cxx.

vil1_component_format vil1_image_proxy_impl::component_format_

Definition at line 23 of file vil1_image_proxy.cxx.

vcl_string vil1_image_proxy_impl::file_format_

Definition at line 24 of file vil1_image_proxy.cxx.


The documentation for this struct was generated from the following file:
Generated on Tue Oct 14 05:08:24 2008 for core/vil1 by  doxygen 1.5.1