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

#include <Image.h>

Inheritance diagram for Freestyle::GrayImage:
Freestyle::FrsImage

Public Member Functions

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

Detailed Description

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

Constructor & Destructor Documentation

◆ GrayImage() [1/5]

Freestyle::GrayImage::GrayImage ( )
inline

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

References _lvl.

◆ GrayImage() [2/5]

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

◆ GrayImage() [3/5]

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

Builds an empty gray image

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

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

◆ GrayImage() [4/5]

Freestyle::GrayImage::GrayImage ( float lvl,
unsigned  w,
unsigned  h 
)
inline

◆ GrayImage() [5/5]

Freestyle::GrayImage::GrayImage ( float lvl,
unsigned  w,
unsigned  h,
unsigned  sw,
unsigned  sh,
unsigned  ox,
unsigned  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 348 of file freestyle/intern/image/Image.h.

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

◆ ~GrayImage()

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

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

References _lvl.

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

◆ operator=()

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

◆ pixel()

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

◆ setArray()

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

◆ setPixel()

void Freestyle::GrayImage::setPixel ( unsigned  x,
unsigned  y,
float  v 
)
inline

Member Data Documentation

◆ _lvl

float* Freestyle::GrayImage::_lvl
protected

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