Cortex  10.0.0-a4
Public Member Functions | List of all members
IECore::Renderer::ExternalProcedural Class Reference

#include <Renderer.h>

+ Inheritance diagram for IECore::Renderer::ExternalProcedural:

Public Member Functions

 ExternalProcedural (const std::string &fileName, const Imath::Box3f &bound, const CompoundDataMap &parameters)
 
const std::string & fileName () const
 
const CompoundDataMapparameters () const
 
Imath::Box3f bound () const override
 
void render (Renderer *renderer) const override
 
MurmurHash hash () const override
 
- Public Member Functions inherited from IECore::Renderer::Procedural
 IE_CORE_DECLAREMEMBERPTR (Procedural)
 
- Public Member Functions inherited from IECore::RefCounted
 IE_CORE_DECLAREMEMBERPTR (RefCounted)
 
void addRef () const
 Add a reference to the current object.
 
void removeRef () const
 Remove a reference from the current object.
 
RefCount refCount () const
 Returns the current reference count.
 

Additional Inherited Members

- Public Types inherited from IECore::RefCounted
typedef size_t RefCount
 
- Static Public Attributes inherited from IECore::Renderer::Procedural
static const Imath::Box3f noBound
 

Detailed Description

A placeholder for specifying a procedural which the Renderer must load from a file on disk.

Member Function Documentation

Imath::Box3f IECore::Renderer::ExternalProcedural::bound ( ) const
overridevirtual

Returns a bounding box guaranteed to completely contain the geometry generated by the render() method.

Implements IECore::Renderer::Procedural.

MurmurHash IECore::Renderer::ExternalProcedural::hash ( ) const
overridevirtual

Implement this to return a hash for procedural level instancing. Procedurals with the same hash will be reused by renderers that support this feature. If computing a sensible hash is difficult or impossible, return IECore::MurmurHash() from this function and this feature will be disabled.

Implements IECore::Renderer::Procedural.

void IECore::Renderer::ExternalProcedural::render ( Renderer renderer) const
overridevirtual

Called when the renderer is ready to receive the procedural geometry. Any relevant methods of renderer may be called, but the geometry generated must be contained within the box returned by bound().

Implements IECore::Renderer::Procedural.


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