Blender  V3.3
Public Member Functions | Protected Attributes | List of all members
Freestyle::RGBImage Class Reference

#include <Image.h>

Inheritance diagram for Freestyle::RGBImage:
Freestyle::FrsImage

Public Member Functions

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

Protected Attributes

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

Detailed Description

Definition at line 171 of file freestyle/intern/image/Image.h.

Constructor & Destructor Documentation

◆ RGBImage() [1/5]

Freestyle::RGBImage::RGBImage ( )
inline

Definition at line 173 of file freestyle/intern/image/Image.h.

References _rgb.

◆ RGBImage() [2/5]

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

◆ RGBImage() [3/5]

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

◆ RGBImage() [4/5]

Freestyle::RGBImage::RGBImage ( float rgb,
unsigned  w,
unsigned  h 
)
inline

◆ RGBImage() [5/5]

Freestyle::RGBImage::RGBImage ( float rgb,
unsigned  w,
unsigned  h,
unsigned  sw,
unsigned  sh,
unsigned  ox,
unsigned  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 freestyle/intern/image/Image.h.

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

◆ ~RGBImage()

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

Definition at line 224 of file freestyle/intern/image/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 295 of file freestyle/intern/image/Image.h.

References _rgb.

◆ getB()

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

◆ getG()

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

◆ getR()

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

◆ operator=()

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

◆ pixel()

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

Returns the gray value for pixel x,y

Implements Freestyle::FrsImage.

Definition at line 256 of file freestyle/intern/image/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,
unsigned  width,
unsigned  height,
unsigned  sw,
unsigned  sh,
unsigned  x,
unsigned  y,
bool  copy = true 
)
inlinevirtual

◆ setPixel()

virtual void Freestyle::RGBImage::setPixel ( unsigned  x,
unsigned  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: