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

Stores information for painting pixels at a time into a 2D texture. More...

#include <MaterialRaster.h>

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

Public Member Functions

virtual void addImageBuffer (const Buffer< uint01 > &pixels, const Vector< 2, uint04 > &size, const Matrix< fltp08 > &camera_matrix) override
 
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
 
virtual void clearRaster ()
 
Vector< 2, uint04convertLocation (const Vector< 2, fltp08 > &location) const
 
uint04 convertToIndex (const Vector< 2, uint04 > &location) const
 
const StringimageID () const override
 
 MaterialRaster (const String &image_id, const RasterInfo &raster_info)
 
virtual void setUnsetColor (RGBColor color)
 
virtual void updateImage () 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

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

Detailed Description

Stores information for painting pixels at a time into a 2D texture.


Constructor & Destructor Documentation

◆ MaterialRaster()

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

Member Function Documentation

◆ addImageBuffer()

virtual 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 file: