vil1_ras_generic_image Class Reference

#include <vil1_ras.h>

Inheritance diagram for vil1_ras_generic_image:

vil1_image_impl List of all members.

Detailed Description

Generic image implementation for Sun raster files.

Definition at line 32 of file vil1_ras.h.


Public Member Functions

 vil1_ras_generic_image (vil1_stream *is)
 vil1_ras_generic_image (vil1_stream *is, int planes, int width, int height, int components, int bits_per_component, vil1_component_format format)
 ~vil1_ras_generic_image ()
virtual int planes () const
 Dimensions: planes x width x height x components.
virtual int width () const
 Dimensions: Planes x W x H x Components.
virtual int height () const
 Dimensions: Planes x W x H x Components.
virtual int components () const
 Dimensions: Planes x W x H x Components.
virtual int bits_per_component () const
 Number of bits per component.
virtual enum vil1_component_format component_format () const
 Format.
virtual bool get_section (void *buf, int x0, int y0, int width, int height) const
 Copy contents of this image to buf.
virtual bool put_section (void const *buf, int x0, int y0, int width, int height)
 Copy contents of buf to this image.
char const * file_format () const
 Return a string describing the file format.
bool get_property (char const *tag, void *prop=0) const
 Extra property information.
vil1_image get_plane (unsigned int p) const
 return the ith plane.
virtual bool set_property (char const *tag, void const *property_value=0) const
virtual vcl_string is_a () const
 Return the name of the class;.
virtual bool is_class (vcl_string const &s) const
 Return true if the name of the class matches the argument.

Private Member Functions

bool read_header ()
 Read the header of a Sun raster file.
bool write_header ()

Private Attributes

vil1_streamvs_
vxl_uint_32 width_
vxl_uint_32 height_
int start_of_data_
int components_
int bits_per_component_
vxl_uint_32 depth_
vxl_uint_32 length_
vxl_uint_32 type_
vxl_uint_32 map_type_
vxl_uint_32 map_length_
vxl_uint_8 * col_map_

Friends

class vil1_ras_file_format

Constructor & Destructor Documentation

vil1_ras_generic_image::vil1_ras_generic_image ( vil1_stream is  ) 

Definition at line 106 of file vil1_ras.cxx.

vil1_ras_generic_image::vil1_ras_generic_image ( vil1_stream is,
int  planes,
int  width,
int  height,
int  components,
int  bits_per_component,
vil1_component_format  format 
)

Definition at line 137 of file vil1_ras.cxx.

vil1_ras_generic_image::~vil1_ras_generic_image (  ) 

Definition at line 179 of file vil1_ras.cxx.


Member Function Documentation

bool vil1_ras_generic_image::read_header (  )  [private]

Read the header of a Sun raster file.

Definition at line 187 of file vil1_ras.cxx.

bool vil1_ras_generic_image::write_header (  )  [private]

Definition at line 265 of file vil1_ras.cxx.

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

Dimensions: planes x width x height x components.

Implements vil1_image_impl.

Definition at line 65 of file vil1_ras.h.

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

Dimensions: Planes x W x H x Components.

Implements vil1_image_impl.

Definition at line 66 of file vil1_ras.h.

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

Dimensions: Planes x W x H x Components.

Implements vil1_image_impl.

Definition at line 67 of file vil1_ras.h.

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

Dimensions: Planes x W x H x Components.

Implements vil1_image_impl.

Definition at line 68 of file vil1_ras.h.

virtual int vil1_ras_generic_image::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 70 of file vil1_ras.h.

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

Format.

A standard RGB RGB RGB image has

Implements vil1_image_impl.

Definition at line 71 of file vil1_ras.h.

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

Copy contents of this image to buf.

Implements vil1_image_impl.

Definition at line 286 of file vil1_ras.cxx.

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

Copy contents of buf to this image.

Implements vil1_image_impl.

Definition at line 332 of file vil1_ras.cxx.

char const * vil1_ras_generic_image::file_format (  )  const [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 132 of file vil1_ras.cxx.

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

Extra property information.

Reimplemented from vil1_image_impl.

Definition at line 113 of file vil1_ras.cxx.

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

return the ith plane.

Reimplemented from vil1_image_impl.

Definition at line 376 of file vil1_ras.cxx.

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.

virtual vcl_string vil1_image_impl::is_a (  )  const [inline, virtual, inherited]

Return the name of the class;.

Reimplemented in vil1_block_cache_image_impl, vil1_clamp_image_impl, vil1_crop_image_impl, vil1_flip_components_impl, vil1_flipud_impl, vil1_image_as_impl< T >, vil1_image_proxy_impl, vil1_memory_image_impl, vil1_resample_image_impl, vil1_scale_intensities_image_impl, and vil1_skip_image_impl.

Definition at line 141 of file vil1_image_impl.h.

virtual bool vil1_image_impl::is_class ( vcl_string const &  s  )  const [inline, virtual, inherited]

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

Reimplemented in vil1_block_cache_image_impl, vil1_clamp_image_impl, vil1_crop_image_impl, vil1_flip_components_impl, vil1_flipud_impl, vil1_image_as_impl< T >, vil1_image_proxy_impl, vil1_memory_image_impl, vil1_resample_image_impl, vil1_scale_intensities_image_impl, and vil1_skip_image_impl.

Definition at line 144 of file vil1_image_impl.h.


Friends And Related Function Documentation

friend class vil1_ras_file_format [friend]

Definition at line 52 of file vil1_ras.h.


Member Data Documentation

vil1_stream* vil1_ras_generic_image::vs_ [private]

Definition at line 34 of file vil1_ras.h.

vxl_uint_32 vil1_ras_generic_image::width_ [private]

Definition at line 35 of file vil1_ras.h.

vxl_uint_32 vil1_ras_generic_image::height_ [private]

Definition at line 36 of file vil1_ras.h.

int vil1_ras_generic_image::start_of_data_ [private]

Definition at line 38 of file vil1_ras.h.

int vil1_ras_generic_image::components_ [private]

Definition at line 39 of file vil1_ras.h.

int vil1_ras_generic_image::bits_per_component_ [private]

Definition at line 40 of file vil1_ras.h.

vxl_uint_32 vil1_ras_generic_image::depth_ [private]

Definition at line 42 of file vil1_ras.h.

vxl_uint_32 vil1_ras_generic_image::length_ [private]

Definition at line 43 of file vil1_ras.h.

vxl_uint_32 vil1_ras_generic_image::type_ [private]

Definition at line 44 of file vil1_ras.h.

vxl_uint_32 vil1_ras_generic_image::map_type_ [private]

Definition at line 45 of file vil1_ras.h.

vxl_uint_32 vil1_ras_generic_image::map_length_ [private]

Definition at line 46 of file vil1_ras.h.

vxl_uint_8* vil1_ras_generic_image::col_map_ [private]

Definition at line 47 of file vil1_ras.h.


The documentation for this class was generated from the following files:
Generated on Mon Mar 8 05:09:36 2010 for core/vil1 by  doxygen 1.5.1