#include <Renderer.h>

Public Member Functions | |
| Renderer () | |
| Renderer (const std::string &name) | |
| virtual | ~Renderer () |
| IE_CORE_DECLARERUNTIMETYPEDEXTENSION (IECoreRI::Renderer, RendererTypeId, IECore::Renderer) | |
| virtual void | setOption (const std::string &name, IECore::ConstDataPtr value) |
| virtual IECore::ConstDataPtr | getOption (const std::string &name) const |
| virtual void | camera (const std::string &name, const IECore::CompoundDataMap ¶meters) |
| virtual void | display (const std::string &name, const std::string &type, const std::string &data, const IECore::CompoundDataMap ¶meters) |
| virtual void | worldBegin () |
| virtual void | worldEnd () |
| Finishes the world block. | |
| virtual void | transformBegin () |
| virtual void | transformEnd () |
| Returns to the transform state saved by the last transformBegin() call. | |
| virtual void | setTransform (const Imath::M44f &m) |
| Sets the current transform. | |
| virtual void | setTransform (const std::string &coordinateSystem) |
| virtual Imath::M44f | getTransform () const |
| Returns the current transform. | |
| virtual Imath::M44f | getTransform (const std::string &coordinateSystem) const |
| Returns the transform associated with the named coordinate system. | |
| virtual void | concatTransform (const Imath::M44f &m) |
| Concatenates the specified transform onto the current transform. | |
| virtual void | coordinateSystem (const std::string &name) |
| Creates a named coordinate system from the current transform. | |
| virtual void | attributeBegin () |
| virtual void | attributeEnd () |
| Return to the attribute state saved by the last call to attributeBegin(). | |
| virtual void | setAttribute (const std::string &name, IECore::ConstDataPtr value) |
| virtual IECore::ConstDataPtr | getAttribute (const std::string &name) const |
| virtual void | shader (const std::string &type, const std::string &name, const IECore::CompoundDataMap ¶meters) |
| virtual void | light (const std::string &name, const std::string &handle, const IECore::CompoundDataMap ¶meters) |
| Specifies a light to apply to subsequent primitives. | |
| virtual void | illuminate (const std::string &lightHandle, bool on) |
| Turns the specified light on or off for the current attribute state. | |
| virtual void | motionBegin (const std::set< float > ×) |
| virtual void | motionEnd () |
| virtual void | points (size_t numPoints, const IECore::PrimitiveVariableMap &primVars) |
| Renders a set of points. | |
| virtual void | disk (float radius, float z, float thetaMax, const IECore::PrimitiveVariableMap &primVars) |
| virtual void | curves (const IECore::CubicBasisf &basis, bool periodic, IECore::ConstIntVectorDataPtr numVertices, const IECore::PrimitiveVariableMap &primVars) |
| virtual void | text (const std::string &font, const std::string &text, float kerning=1.0f, const IECore::PrimitiveVariableMap &primVars=IECore::PrimitiveVariableMap()) |
| Renders some text. | |
| virtual void | sphere (float radius, float zMin, float zMax, float thetaMax, const IECore::PrimitiveVariableMap &primVars) |
| virtual void | image (const Imath::Box2i &dataWindow, const Imath::Box2i &displayWindow, const IECore::PrimitiveVariableMap &primVars) |
| virtual void | mesh (IECore::ConstIntVectorDataPtr vertsPerFace, IECore::ConstIntVectorDataPtr vertIds, const std::string &interpolation, const IECore::PrimitiveVariableMap &primVars) |
| virtual void | nurbs (int uOrder, IECore::ConstFloatVectorDataPtr uKnot, float uMin, float uMax, int vOrder, IECore::ConstFloatVectorDataPtr vKnot, float vMin, float vMax, const IECore::PrimitiveVariableMap &primVars) |
| virtual void | patchMesh (const IECore::CubicBasisf &uBasis, const IECore::CubicBasisf &vBasis, int nu, bool uPeriodic, int nv, bool vPeriodic, const IECore::PrimitiveVariableMap &primVars) |
| Render a patch mesh. | |
| virtual void | geometry (const std::string &type, const IECore::CompoundDataMap &topology, const IECore::PrimitiveVariableMap &primVars) |
| Generic call for specifying renderer specify geometry types. | |
| virtual void | procedural (IECore::Renderer::ProceduralPtr proc) |
| virtual void | instanceBegin (const std::string &name, const IECore::CompoundDataMap ¶meters) |
| Starts the description of a portion of a scene to be instanced. | |
| virtual void | instanceEnd () |
| Ends the description of an instance. | |
| virtual void | instance (const std::string &name) |
| virtual IECore::DataPtr | command (const std::string &name, const IECore::CompoundDataMap ¶meters) |
| Renderer::Renderer | ( | ) |
Creates a Renderer that will always render to the RiContext which is active at the time a given function is called.
Reimplemented from IECore::Renderer.
| Renderer::Renderer | ( | const std::string & | name | ) |
Creates a Renderer that will create a new RiContext with a call to RiBegin( name.c_str() ) and will subsequently always render to that context. If the empty string is passed then RiBegin( 0 ) is called to actually render the scene rather than create a rib.
| Renderer::~Renderer | ( | ) | [virtual] |
Reimplemented from IECore::Renderer.
| void Renderer::attributeBegin | ( | ) | [virtual] |
Push a new attribute state onto the attribute stack. This is identical to the current state, but subsequent calls to setAttribute() will be discarded by the matching attributeEnd().
Implements IECore::Renderer.
| void Renderer::attributeEnd | ( | ) | [virtual] |
Return to the attribute state saved by the last call to attributeBegin().
Implements IECore::Renderer.
| void Renderer::camera | ( | const std::string & | name, | |
| const IECore::CompoundDataMap & | parameters | |||
| ) | [virtual] |
Implements IECore::Renderer.
| IECore::DataPtr Renderer::command | ( | const std::string & | name, | |
| const IECore::CompoundDataMap & | parameters | |||
| ) | [virtual] |
Supports the following commands :
"ri:readArchive" Expects a single StringData parameter called "name", and calls RiReadArchive with it.
"objectEnd" "ri:objectEnd" Calls RiObjectEnd.
"objectInstance" "ri:objectInstance" Calls RiObjectInstance. Expects a single StringData parameter called "name", which refers to a name previously passed to command( "ri:objectBegin" ).
"ri:illuminate" Calls RiIlluminate. Expects a StringData parameter called "handle" and a BoolData parameter called "state" with the light state. This is provided as a stopgap until the Renderer base class specifies an specific illuminate method.
Implements IECore::Renderer.
| void Renderer::concatTransform | ( | const Imath::M44f & | m | ) | [virtual] |
| void Renderer::coordinateSystem | ( | const std::string & | name | ) | [virtual] |
| void Renderer::curves | ( | const IECore::CubicBasisf & | basis, | |
| bool | periodic, | |||
| IECore::ConstIntVectorDataPtr | numVertices, | |||
| const IECore::PrimitiveVariableMap & | primVars | |||
| ) | [virtual] |
| void Renderer::disk | ( | float | radius, | |
| float | z, | |||
| float | thetaMax, | |||
| const IECore::PrimitiveVariableMap & | primVars | |||
| ) | [virtual] |
Renders a disk of the specified radius on the xy plane, at the specified z value. If the "rightHandedOrientation" attribute is true then the normal faces down positive z, otherwise it faces down negative z.
Implements IECore::Renderer.
| void Renderer::display | ( | const std::string & | name, | |
| const std::string & | type, | |||
| const std::string & | data, | |||
| const IECore::CompoundDataMap & | parameters | |||
| ) | [virtual] |
Specifies an image to be output from the renderer. In the case of file outputs name specified the filename. type specifies the type of output to create and data specifies the data to be output, for instance "rgba". parameters provides an implementation specific set of parameters to control other aspects of the image created. It is only valid to call this before worldBegin.
Implements IECore::Renderer.
| void Renderer::geometry | ( | const std::string & | type, | |
| const IECore::CompoundDataMap & | topology, | |||
| const IECore::PrimitiveVariableMap & | primVars | |||
| ) | [virtual] |
| IECore::ConstDataPtr Renderer::getAttribute | ( | const std::string & | name | ) | const [virtual] |
Implements IECore::Renderer.
| IECore::ConstDataPtr Renderer::getOption | ( | const std::string & | name | ) | const [virtual] |
Currently supported options :
"camera:resolution" V2iData "camera:shutter" "shutter" V2fData() "user:*" "ri:*" Queries of this form use the Rx API and therefore only work for options supported by that API.
Implements IECore::Renderer.
| Imath::M44f Renderer::getTransform | ( | const std::string & | coordinateSystem | ) | const [virtual] |
| Imath::M44f Renderer::getTransform | ( | ) | const [virtual] |
| IECoreRI::Renderer::IE_CORE_DECLARERUNTIMETYPEDEXTENSION | ( | IECoreRI::Renderer | , | |
| RendererTypeId | , | |||
| IECore::Renderer | ||||
| ) |
| void Renderer::illuminate | ( | const std::string & | lightHandle, | |
| bool | on | |||
| ) | [virtual] |
| void Renderer::image | ( | const Imath::Box2i & | dataWindow, | |
| const Imath::Box2i & | displayWindow, | |||
| const IECore::PrimitiveVariableMap & | primVars | |||
| ) | [virtual] |
Renders an image.
Implements IECore::Renderer.
| void Renderer::instance | ( | const std::string & | name | ) | [virtual] |
Instantiates a previously described instance at the current transform position, and using the current attribute state.
Implements IECore::Renderer.
| void Renderer::instanceBegin | ( | const std::string & | name, | |
| const IECore::CompoundDataMap & | parameters | |||
| ) | [virtual] |
| void Renderer::instanceEnd | ( | ) | [virtual] |
| void Renderer::light | ( | const std::string & | name, | |
| const std::string & | handle, | |||
| const IECore::CompoundDataMap & | parameters | |||
| ) | [virtual] |
| void Renderer::mesh | ( | IECore::ConstIntVectorDataPtr | vertsPerFace, | |
| IECore::ConstIntVectorDataPtr | vertIds, | |||
| const std::string & | interpolation, | |||
| const IECore::PrimitiveVariableMap & | primVars | |||
| ) | [virtual] |
Renders interpolation types of "linear" as RiPointsGeneralPolygons and "catmullClark" as RiSubdivisionMesh. Supports an optional "tags" primitive variable of type CompoundData and interpolation Constant, which is used to specify tags for the RiSubdivisionMesh call. This should contain the following children :
StringVectorData "names" IntVectorData "nArgs" FloatVectorData "floats" IntVectorData "integers"
| void Renderer::motionBegin | ( | const std::set< float > & | times | ) | [virtual] |
Starts a new motion block. You should then make times.size() calls to one of the primitive or transform functions to specify the motion for the block.
Implements IECore::Renderer.
| void Renderer::motionEnd | ( | ) | [virtual] |
Ends a motion block. Should be called when times.size() calls to an appropriate primitive or transform function have been made following a motionBegin() call.
Implements IECore::Renderer.
| void Renderer::nurbs | ( | int | uOrder, | |
| IECore::ConstFloatVectorDataPtr | uKnot, | |||
| float | uMin, | |||
| float | uMax, | |||
| int | vOrder, | |||
| IECore::ConstFloatVectorDataPtr | vKnot, | |||
| float | vMin, | |||
| float | vMax, | |||
| const IECore::PrimitiveVariableMap & | primVars | |||
| ) | [virtual] |
| void Renderer::patchMesh | ( | const IECore::CubicBasisf & | uBasis, | |
| const IECore::CubicBasisf & | vBasis, | |||
| int | nu, | |||
| bool | uPeriodic, | |||
| int | nv, | |||
| bool | vPeriodic, | |||
| const IECore::PrimitiveVariableMap & | primVars | |||
| ) | [virtual] |
| void Renderer::points | ( | size_t | numPoints, | |
| const IECore::PrimitiveVariableMap & | primVars | |||
| ) | [virtual] |
| void Renderer::procedural | ( | IECore::Renderer::ProceduralPtr | proc | ) | [virtual] |
| void Renderer::setAttribute | ( | const std::string & | name, | |
| IECore::ConstDataPtr | value | |||
| ) | [virtual] |
| void Renderer::setOption | ( | const std::string & | name, | |
| IECore::ConstDataPtr | value | |||
| ) | [virtual] |
| void Renderer::setTransform | ( | const std::string & | coordinateSystem | ) | [virtual] |
Sets the current transform to a coordinate system previously created with a call to coordinateSystem().
Implements IECore::Renderer.
| void Renderer::setTransform | ( | const Imath::M44f & | m | ) | [virtual] |
| void Renderer::shader | ( | const std::string & | type, | |
| const std::string & | name, | |||
| const IECore::CompoundDataMap & | parameters | |||
| ) | [virtual] |
If type is "surface" or "ri:surface" then calls RiSurfaceV. If type is "displacement" or "ri:displacement" then calls RiDisplacementV. If type is "atmosphere" or "ri:atmosphere" then calls RiDisplacementV. If type is "interior" or "ri:interior" then calls RiInteriorV. If type is "exterior" or "ri:exterior" then calls RiExteriorV. If type is "deformation" or "ri:deformation" then calls RiDeformationV. If type is "shader" or "ri:shader" then calls RiShader. In this case you must specify a handle as a StringData parameter named "__handle".
Implements IECore::Renderer.
| void Renderer::sphere | ( | float | radius, | |
| float | zMin, | |||
| float | zMax, | |||
| float | thetaMax, | |||
| const IECore::PrimitiveVariableMap & | primVars | |||
| ) | [virtual] |
Renders a sphere of the specified radius. zMin and zMax are measured as a proportion of the radius - so no matter what the radius, the default values will always give a full sphere. If the "rightHandedOrientation" attribute is true then the normals point outwards, otherwise they point inwards.
Implements IECore::Renderer.
| void Renderer::text | ( | const std::string & | font, | |
| const std::string & | text, | |||
| float | kerning = 1.0f, |
|||
| const IECore::PrimitiveVariableMap & | primVars = IECore::PrimitiveVariableMap() | |||
| ) | [virtual] |
| void Renderer::transformBegin | ( | ) | [virtual] |
Push a new transform state identical to the current one. Modifications can then be made locally before calling transformEnd() to return to the previous transform state.
Implements IECore::Renderer.
| void Renderer::transformEnd | ( | ) | [virtual] |
Returns to the transform state saved by the last transformBegin() call.
Implements IECore::Renderer.
| void Renderer::worldBegin | ( | ) | [virtual] |
Starts the world block and resets the current transform to the identity.
Implements IECore::Renderer.
| void Renderer::worldEnd | ( | ) | [virtual] |
1.5.8