Blender V5.0
Freestyle::GrayImage Class Reference

#include <Image.h>

Inherits Freestyle::FrsImage.

Public Member Functions

 GrayImage ()
 GrayImage (const GrayImage &brother)
 GrayImage (uint w, uint h)
 GrayImage (float *lvl, uint w, uint h)
 GrayImage (float *lvl, uint w, uint h, uint sw, uint sh, uint ox, uint oy)
GrayImageoperator= (const GrayImage &brother)
virtual ~GrayImage ()
void setPixel (uint x, uint y, float v)
float pixel (uint x, uint y) const
void setArray (float *lvl, 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_lvl
Protected Attributes inherited from Freestyle::FrsImage
uint _width
uint _height
uint _storedWidth
uint _storedHeight
uint _Ox
uint _Oy

Detailed Description

Definition at line 299 of file Image.h.

Constructor & Destructor Documentation

◆ GrayImage() [1/5]

Freestyle::GrayImage::GrayImage ( )
inline

Definition at line 301 of file Image.h.

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

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

◆ GrayImage() [2/5]

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

◆ GrayImage() [3/5]

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

Builds an empty gray image

Definition at line 313 of file Image.h.

References Freestyle::FrsImage::_height, _lvl, Freestyle::FrsImage::_width, Freestyle::FrsImage::FrsImage(), and w().

◆ GrayImage() [4/5]

Freestyle::GrayImage::GrayImage ( float * lvl,
uint w,
uint h )
inline

◆ GrayImage() [5/5]

Freestyle::GrayImage::GrayImage ( float * lvl,
uint w,
uint h,
uint sw,
uint sh,
uint ox,
uint oy )
inline

Builds a partial image from the useful part buffer.

Parameters
lvlThe array of size sw*sh containing the gray values of the sw*sh pixels we need to stored. These sw*sh pixels constitute a rectangular part of a bigger gray 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 338 of file Image.h.

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

◆ ~GrayImage()

virtual Freestyle::GrayImage::~GrayImage ( )
inlinevirtual

Definition at line 353 of file Image.h.

References _lvl.

Member Function Documentation

◆ getArray()

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

Returns the array containing the gray values.

Implements Freestyle::FrsImage.

Definition at line 392 of file Image.h.

References _lvl.

Referenced by Freestyle::Controller::ComputeSteerableViewMap().

◆ operator=()

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

◆ pixel()

◆ setArray()

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

◆ setPixel()

Member Data Documentation

◆ _lvl

float* Freestyle::GrayImage::_lvl
protected

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