API Documentation
Loading...
Searching...
No Matches
MaterialRaster Class Reference

#include <MaterialRaster.h>

Inheritance diagram for MaterialRaster:
[legend]
Collaboration diagram for MaterialRaster:
[legend]

Public Member Functions

 MaterialRaster (const String &image_id, const RasterInfo &raster_info)
 
const StringimageID () const override
 
virtual void clearRaster ()
 
virtual void setUnsetColor (RGBColor color)
 
virtual void updateImage () override
 
virtual void addImageBuffer (const Buffer< uint01 > &pixels, const Vector< 2, uint04 > &size, const Matrix< fltp08 > &camera_matrix) override
 
Vector< 2, uint04convertLocation (const Vector< 2, fltp08 > &location) const
 
uint04 convertToIndex (const Vector< 2, uint04 > &location) const
 
void addPixelInfo (const RGBColor &pixel, const Vector< 2, fltp08 > &location, uint04 weight) override
 
void addPixelInfo (const RGBColor &pixel, const Vector< 2, uint04 > &location, uint08 weight) override
 
void addPixelInfo (const Vector< 4, fltp04 > &pixel, const Vector< 2, fltp08 > &location, uint08 weight) override
 
void addPixelInfo (const Vector< 4, fltp04 > &pixel, const Vector< 2, uint04 > &location, uint08 weight) override
 
- Public Member Functions inherited from MaterialRasterBase
 MaterialRasterBase (const RasterInfo &raster_info)
 

Static Public Member Functions

static uint04 Weight (const Vertex< 2, fltp08 > &location, fltp08 y_dist)
 

Protected Attributes

String m_image_id
 
Buffer< Vector< 3, uint08 > > m_color_channels
 
Buffer< uint08m_color_channel_average_count
 
Buffer< uint01m_pixels
 
Bounds< 2, uint04m_update_bounds
 
- Protected Attributes inherited from MaterialRasterBase
RasterInfo m_raster_info
 

Constructor & Destructor Documentation

◆ MaterialRaster()

MaterialRaster ( const String & image_id,
const RasterInfo & raster_info )
inline

Member Function Documentation

◆ addImageBuffer()

void addImageBuffer ( const Buffer< uint01 > & pixels,
const Vector< 2, uint04 > & size,
const Matrix< fltp08 > & camera_matrix )
overridevirtual

Implements MaterialRasterBase.

◆ addPixelInfo() [1/4]

void addPixelInfo ( const RGBColor & pixel,
const Vector< 2, fltp08 > & location,
uint04 weight )
inlineoverridevirtual

Implements MaterialRasterBase.

◆ addPixelInfo() [2/4]

void addPixelInfo ( const RGBColor & pixel,
const Vector< 2, uint04 > & location,
uint08 weight )
inlineoverridevirtual

Implements MaterialRasterBase.

◆ addPixelInfo() [3/4]

void addPixelInfo ( const Vector< 4, fltp04 > & pixel,
const Vector< 2, fltp08 > & location,
uint08 weight )
inlineoverridevirtual

Implements MaterialRasterBase.

◆ addPixelInfo() [4/4]

void addPixelInfo ( const Vector< 4, fltp04 > & pixel,
const Vector< 2, uint04 > & location,
uint08 weight )
inlineoverridevirtual

Implements MaterialRasterBase.

◆ clearRaster()

virtual void clearRaster ( )
inlinevirtual

◆ convertLocation()

Vector< 2, uint04 > convertLocation ( const Vector< 2, fltp08 > & location) const
inline

◆ convertToIndex()

uint04 convertToIndex ( const Vector< 2, uint04 > & location) const
inline

◆ imageID()

const String & imageID ( ) const
inlineoverridevirtual

Implements MaterialRasterBase.

◆ setUnsetColor()

virtual void setUnsetColor ( RGBColor color)
inlinevirtual

◆ updateImage()

virtual void updateImage ( )
inlineoverridevirtual

Implements MaterialRasterBase.

◆ Weight()

static uint04 Weight ( const Vertex< 2, fltp08 > & location,
fltp08 y_dist )
inlinestatic

Member Data Documentation

◆ m_color_channel_average_count

Buffer<uint08> m_color_channel_average_count
protected

◆ m_color_channels

Buffer<Vector<3, uint08> > m_color_channels
protected

◆ m_image_id

String m_image_id
protected

◆ m_pixels

Buffer<uint01> m_pixels
protected

◆ m_update_bounds

Bounds<2, uint04> m_update_bounds
protected

The documentation for this class was generated from the following files: