Blender V4.3
Freestyle::RGBImage Class Reference

#include <Image.h>

Inherits Freestyle::FrsImage.

Public Member Functions

 RGBImage ()
 
 RGBImage (const RGBImage &brother)
 
 RGBImage (uint w, uint h)
 
 RGBImage (float *rgb, uint w, uint h)
 
 RGBImage (float *rgb, uint w, uint h, uint sw, uint sh, uint ox, uint oy)
 
RGBImageoperator= (const RGBImage &brother)
 
virtual ~RGBImage ()
 
float getR (uint x, uint y) const
 
float getG (uint x, uint y) const
 
float getB (uint x, uint y) const
 
virtual void setPixel (uint x, uint y, float r, float g, float b)
 
virtual float pixel (uint x, uint y) const
 
virtual void setArray (float *rgb, uint width, uint height, uint sw, uint sh, uint x, uint y, bool copy=true)
 
virtual floatgetArray ()
 
- Public Member Functions inherited from Freestyle::FrsImage
 FrsImage ()
 
 FrsImage (const FrsImage &brother)
 
 FrsImage (uint w, uint h)
 
 FrsImage (uint w, uint h, uint sw, uint sh, uint ox, uint oy)
 
FrsImageoperator= (const FrsImage &brother)
 
virtual ~FrsImage ()
 
uint width () const
 
uint height () const
 

Protected Attributes

float_rgb
 
- Protected Attributes inherited from Freestyle::FrsImage
uint _width
 
uint _height
 
uint _storedWidth
 
uint _storedHeight
 
uint _Ox
 
uint _Oy
 

Detailed Description

Definition at line 171 of file Image.h.

Constructor & Destructor Documentation

◆ RGBImage() [1/5]

Freestyle::RGBImage::RGBImage ( )
inline

Definition at line 173 of file Image.h.

References _rgb.

◆ RGBImage() [2/5]

Freestyle::RGBImage::RGBImage ( const RGBImage & brother)
inline

◆ RGBImage() [3/5]

Freestyle::RGBImage::RGBImage ( uint w,
uint h )
inline

Definition at line 184 of file Image.h.

References Freestyle::FrsImage::_height, _rgb, and Freestyle::FrsImage::_width.

◆ RGBImage() [4/5]

Freestyle::RGBImage::RGBImage ( float * rgb,
uint w,
uint h )
inline

Definition at line 189 of file Image.h.

References Freestyle::FrsImage::_height, _rgb, and Freestyle::FrsImage::_width.

◆ RGBImage() [5/5]

Freestyle::RGBImage::RGBImage ( float * rgb,
uint w,
uint h,
uint sw,
uint sh,
uint ox,
uint oy )
inline

Builds an RGB partial image from the useful part buffer.

Parameters
rgbThe array of size 3*sw*sh containing the RGB values of the sw*sh pixels we need to stored. These sw*sh pixels constitute a rectangular part of a bigger RGB image containing w*h pixels.
wThe width of the complete image
hThe height of the complete image
swThe width of the part of the image we want to store and work on
shThe height of the part of the image we want to store and work on

Definition at line 209 of file Image.h.

References _rgb, Freestyle::FrsImage::_storedHeight, and Freestyle::FrsImage::_storedWidth.

◆ ~RGBImage()

virtual Freestyle::RGBImage::~RGBImage ( )
inlinevirtual

Definition at line 224 of file Image.h.

References _rgb.

Member Function Documentation

◆ getArray()

virtual float * Freestyle::RGBImage::getArray ( )
inlinevirtual

Returns the array containing the pixels values. Its size is sw*sh, i.e. potentially a smaller rectangular part of the complete image.

Implements Freestyle::FrsImage.

Definition at line 289 of file Image.h.

References _rgb.

◆ getB()

float Freestyle::RGBImage::getB ( uint x,
uint y ) const
inline

◆ getG()

float Freestyle::RGBImage::getG ( uint x,
uint y ) const
inline

◆ getR()

float Freestyle::RGBImage::getR ( uint x,
uint y ) const
inline

◆ operator=()

RGBImage & Freestyle::RGBImage::operator= ( const RGBImage & brother)
inline

◆ pixel()

virtual float Freestyle::RGBImage::pixel ( uint x,
uint y ) const
inlinevirtual

Returns the gray value for pixel x,y

Implements Freestyle::FrsImage.

Definition at line 256 of file Image.h.

References Freestyle::FrsImage::_Ox, Freestyle::FrsImage::_Oy, _rgb, and Freestyle::FrsImage::_storedWidth.

◆ setArray()

virtual void Freestyle::RGBImage::setArray ( float * rgb,
uint width,
uint height,
uint sw,
uint sh,
uint x,
uint y,
bool copy = true )
inlinevirtual

◆ setPixel()

virtual void Freestyle::RGBImage::setPixel ( uint x,
uint y,
float r,
float g,
float b )
inlinevirtual

Member Data Documentation

◆ _rgb

float* Freestyle::RGBImage::_rgb
protected

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