20 #if !defined(__MITSUBA_RENDER_RECTWU_H_)
21 #define __MITSUBA_RENDER_RECTWU_H_
virtual void save(Stream *stream) const =0
Serialize a work unit to a binary data stream.
const Point2i & getOffset() const
Definition: rectwu.h:42
virtual void set(const WorkUnit *workUnit)=0
Copy the content of another work unit of the same type.
virtual std::string toString() const =0
Return a string representation.
void setSize(const Vector2i &size)
Definition: rectwu.h:46
RectangularWorkUnit()
Definition: rectwu.h:35
Abstract work unit – represents a small amount of information that encodes part of a larger processin...
Definition: sched.h:47
Abstract seekable stream class.
Definition: stream.h:58
#define MTS_DECLARE_CLASS()
This macro must be used in the initial definition in classes that derive from Object.
Definition: class.h:158
virtual void load(Stream *stream)=0
Fill the work unit with content acquired from a binary data stream.
Work unit that specifies a rectangular region in an image.
Definition: rectwu.h:33
const Vector2i & getSize() const
Definition: rectwu.h:43
void setOffset(const Point2i &offset)
Definition: rectwu.h:45