Mitsuba Renderer  0.5.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
mitsuba::RectangularWorkUnit Class Reference

Work unit that specifies a rectangular region in an image. More...

#include <mitsuba/render/rectwu.h>

+ Inheritance diagram for mitsuba::RectangularWorkUnit:

Public Member Functions

 RectangularWorkUnit ()
 
void set (const WorkUnit *wu)
 Copy the content of another work unit of the same type. More...
 
void load (Stream *stream)
 Fill the work unit with content acquired from a binary data stream. More...
 
void save (Stream *stream) const
 Serialize a work unit to a binary data stream. More...
 
const Point2igetOffset () const
 
const Vector2igetSize () const
 
void setOffset (const Point2i &offset)
 
void setSize (const Vector2i &size)
 
std::string toString () const
 Return a string representation. More...
 
virtual const ClassgetClass () const
 Retrieve this object's class. More...
 
- Public Member Functions inherited from Object
 Object ()
 Construct a new object. More...
 
int getRefCount () const
 Return the current reference count. More...
 
void incRef () const
 Increase the reference count of the object by one. More...
 
void decRef (bool autoDeallocate=true) const
 Decrease the reference count of the object and possibly deallocate it. More...
 

Static Public Attributes

static Classm_theClass
 
- Static Public Attributes inherited from mitsuba::WorkUnit
static Classm_theClass
 
- Static Public Attributes inherited from Object
static Classm_theClass
 Pointer to the object's class descriptor. More...
 

Protected Member Functions

virtual ~RectangularWorkUnit ()
 Virtual destructor. More...
 
- Protected Member Functions inherited from mitsuba::WorkUnit
virtual ~WorkUnit ()
 Virtual destructor. More...
 
- Protected Member Functions inherited from Object
virtual ~Object ()
 Virtual private deconstructor. (Will only be called by ref) More...
 

Additional Inherited Members

- Static Public Member Functions inherited from Object
static void staticInitialization ()
 Initializes the built-in reference count debugger (if enabled) More...
 
static void staticShutdown ()
 Free the memory taken by staticInitialization() More...
 

Detailed Description

Work unit that specifies a rectangular region in an image.

Used for instance in BlockedImageProcess

Constructor & Destructor Documentation

mitsuba::RectangularWorkUnit::RectangularWorkUnit ( )
inline
virtual mitsuba::RectangularWorkUnit::~RectangularWorkUnit ( )
inlineprotectedvirtual

Virtual destructor.

Member Function Documentation

virtual const Class* mitsuba::RectangularWorkUnit::getClass ( ) const
virtual

Retrieve this object's class.

Reimplemented from mitsuba::WorkUnit.

const Point2i& mitsuba::RectangularWorkUnit::getOffset ( ) const
inline
const Vector2i& mitsuba::RectangularWorkUnit::getSize ( ) const
inline
void mitsuba::RectangularWorkUnit::load ( Stream stream)
virtual

Fill the work unit with content acquired from a binary data stream.

Implements mitsuba::WorkUnit.

void mitsuba::RectangularWorkUnit::save ( Stream stream) const
virtual

Serialize a work unit to a binary data stream.

Implements mitsuba::WorkUnit.

void mitsuba::RectangularWorkUnit::set ( const WorkUnit workUnit)
virtual

Copy the content of another work unit of the same type.

Implements mitsuba::WorkUnit.

void mitsuba::RectangularWorkUnit::setOffset ( const Point2i offset)
inline
void mitsuba::RectangularWorkUnit::setSize ( const Vector2i size)
inline
std::string mitsuba::RectangularWorkUnit::toString ( ) const
virtual

Return a string representation.

Implements mitsuba::WorkUnit.

Member Data Documentation

Class* mitsuba::RectangularWorkUnit::m_theClass
static

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