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

Generalized source of volumetric information. More...

#include <mitsuba/render/volume.h>

+ Inheritance diagram for mitsuba::VolumeDataSource:

Public Member Functions

virtual void serialize (Stream *stream, InstanceManager *manager) const
 Serialize to a binary data stream. More...
 
const AABBgetAABB () const
 Return the bounding box. More...
 
virtual bool supportsFloatLookups () const
 Are float-valued lookups permitted? More...
 
virtual Float lookupFloat (const Point &p) const
 Look up a floating point value by position. More...
 
virtual bool supportsSpectrumLookups () const
 Are spectrum-valued lookups permitted? More...
 
virtual Spectrum lookupSpectrum (const Point &p) const
 Look up a spectrum value by position. More...
 
virtual bool supportsVectorLookups () const
 Are vector-valued lookups permitted? More...
 
virtual Vector lookupVector (const Point &p) const
 Look up a vector value by position. More...
 
virtual Float getStepSize () const =0
 Return the recommended step size for numerical integration or inifinity if this is not known/applicable. More...
 
virtual Float getMaximumFloatValue () const =0
 Return the maximum floating point value that could be returned by lookupFloat. More...
 
virtual const ClassgetClass () const
 Retrieve this object's class. More...
 
- Public Member Functions inherited from mitsuba::ConfigurableObject
virtual void setParent (ConfigurableObject *parent)
 Notify the ConfigurableObject instance about its parent object. More...
 
virtual void addChild (const std::string &name, ConfigurableObject *child)
 Add a child (default implementation throws an error) More...
 
void addChild (ConfigurableObject *child)
 Add an unnamed child. More...
 
virtual void configure ()
 Configure the object (called once after construction and addition of all child ConfigurableObject instances)) More...
 
const std::string & getID () const
 Return the identifier associated with this instance (or "unnamed") More...
 
void setID (const std::string &name)
 Set the identifier associated with this instance. More...
 
const PropertiesgetProperties () const
 Return the properties object that was originally used to create this instance. More...
 
- Public Member Functions inherited from mitsuba::SerializableObject
 SerializableObject (Stream *stream, InstanceManager *manager)
 Unserialize a serializable object. 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...
 
virtual std::string toString () const
 Return a human-readable string representation of the object's contents. More...
 

Static Public Attributes

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

Protected Member Functions

virtual ~VolumeDataSource ()
 Virtual destructor. More...
 
 VolumeDataSource (const Properties &props)
 Protected constructor. More...
 
 VolumeDataSource (Stream *stream, InstanceManager *manager)
 Unserialize from a binary data stream. More...
 
- Protected Member Functions inherited from mitsuba::ConfigurableObject
virtual ~ConfigurableObject ()
 Virtual destructor. More...
 
 ConfigurableObject (const Properties &props)
 Construct a configurable object. More...
 
 ConfigurableObject (Stream *stream, InstanceManager *manager)
 Unserialize a configurable object. More...
 
- Protected Member Functions inherited from mitsuba::SerializableObject
 SerializableObject ()
 Construct a serializable object. More...
 
virtual ~SerializableObject ()
 Virtual deconstructor. More...
 
- Protected Member Functions inherited from Object
virtual ~Object ()
 Virtual private deconstructor. (Will only be called by ref) More...
 

Protected Attributes

AABB m_aabb
 
- Protected Attributes inherited from mitsuba::ConfigurableObject
Properties m_properties
 

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

Generalized source of volumetric information.

Constructor & Destructor Documentation

virtual mitsuba::VolumeDataSource::~VolumeDataSource ( )
protectedvirtual

Virtual destructor.

mitsuba::VolumeDataSource::VolumeDataSource ( const Properties props)
protected

Protected constructor.

mitsuba::VolumeDataSource::VolumeDataSource ( Stream stream,
InstanceManager manager 
)
protected

Unserialize from a binary data stream.

Member Function Documentation

const AABB& mitsuba::VolumeDataSource::getAABB ( ) const
inline

Return the bounding box.

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

Retrieve this object's class.

Reimplemented from mitsuba::ConfigurableObject.

virtual Float mitsuba::VolumeDataSource::getMaximumFloatValue ( ) const
pure virtual

Return the maximum floating point value that could be returned by lookupFloat.

This is useful when implementing Woodcock-Tracking.

virtual Float mitsuba::VolumeDataSource::getStepSize ( ) const
pure virtual

Return the recommended step size for numerical integration or inifinity if this is not known/applicable.

virtual Float mitsuba::VolumeDataSource::lookupFloat ( const Point p) const
virtual

Look up a floating point value by position.

virtual Spectrum mitsuba::VolumeDataSource::lookupSpectrum ( const Point p) const
virtual

Look up a spectrum value by position.

virtual Vector mitsuba::VolumeDataSource::lookupVector ( const Point p) const
virtual

Look up a vector value by position.

virtual void mitsuba::VolumeDataSource::serialize ( Stream stream,
InstanceManager manager 
) const
virtual

Serialize to a binary data stream.

Reimplemented from mitsuba::ConfigurableObject.

virtual bool mitsuba::VolumeDataSource::supportsFloatLookups ( ) const
virtual

Are float-valued lookups permitted?

virtual bool mitsuba::VolumeDataSource::supportsSpectrumLookups ( ) const
virtual

Are spectrum-valued lookups permitted?

virtual bool mitsuba::VolumeDataSource::supportsVectorLookups ( ) const
virtual

Are vector-valued lookups permitted?

Member Data Documentation

AABB mitsuba::VolumeDataSource::m_aabb
protected
Class* mitsuba::VolumeDataSource::m_theClass
static

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