Blender V5.0
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 167 of file Image.h.

Constructor & Destructor Documentation

◆ RGBImage() [1/5]

Freestyle::RGBImage::RGBImage ( )
inline

Definition at line 169 of file Image.h.

References _rgb, and Freestyle::FrsImage::FrsImage().

Referenced by operator=(), and RGBImage().

◆ RGBImage() [2/5]

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

◆ RGBImage() [3/5]

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

◆ RGBImage() [4/5]

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

◆ 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 205 of file Image.h.

References _rgb, Freestyle::FrsImage::_storedHeight, Freestyle::FrsImage::_storedWidth, Freestyle::FrsImage::FrsImage(), and w().

◆ ~RGBImage()

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

Definition at line 220 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 285 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 252 of file Image.h.

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

◆ 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: