Logo Search packages:      
Sourcecode: yafaray version File versions  Download package

Public Member Functions | Protected Attributes

yafrayInterface_t Class Reference

Inheritance diagram for yafrayInterface_t:
Inheritance graph
[legend]
Collaboration diagram for yafrayInterface_t:
Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual void abort ()
virtual bool addInstance (unsigned int baseObjectId, matrix4x4_t objToWorld)
virtual void addNormal (double nx, double ny, double nz)
 add vertex normal to mesh; the vertex that will be attached to is the last one inserted by addVertex method
virtual bool addTriangle (int a, int b, int c, int uv_a, int uv_b, int uv_c, const material_t *mat)
 add a triangle given vertex and uv indices and material pointer
virtual bool addTriangle (int a, int b, int c, const material_t *mat)
 add a triangle given vertex indices and material pointer
virtual int addUV (float u, float v)
 add a UV coordinate pair; returns index to be used for addTriangle
virtual int addVertex (double x, double y, double z)
 add vertex to mesh; returns index to be used for addTriangle
virtual int addVertex (double x, double y, double z, double ox, double oy, double oz)
 add vertex with Orco to mesh; returns index to be used for addTriangle
virtual void clearAll ()
 clear the whole environment + scene, i.e. free (hopefully) all memory.
virtual background_tcreateBackground (const char *name)
virtual camera_tcreateCamera (const char *name)
virtual imageHandler_tcreateImageHandler (const char *name, bool addToTable=true)
 The addToTable parameter, if true, allows to avoid the interface from taking ownership of the image handler.
virtual integrator_tcreateIntegrator (const char *name)
virtual light_tcreateLight (const char *name)
virtual material_tcreateMaterial (const char *name)
virtual unsigned int createObject (const char *name)
virtual texture_tcreateTexture (const char *name)
virtual VolumeRegioncreateVolumeRegion (const char *name)
virtual bool endCurveMesh (const material_t *mat, float strandStart, float strandEnd, float strandShape)
 end current mesh and return to geometry state
virtual bool endGeometry ()
 call after creating geometry;
virtual bool endTriMesh ()
 end current mesh and return to geometry state
virtual bool getDrawParams ()
virtual std::string getImageFormatFromFullName (const std::string &fullname)
virtual std::string getImageFullNameFromFormat (const std::string &format)
virtual unsigned int getNextFreeID ()
virtual bool getRenderedImage (colorOutput_t &output)
 put the rendered image to output
virtual paraMap_tgetRenderParameters ()
virtual char * getVersion () const
 Get version to check aginst the exporters.
virtual std::vector< std::string > listImageHandlers ()
virtual std::vector< std::string > listImageHandlersFullName ()
virtual void loadPlugins (const char *path)
 load plugins from path, if NULL load from default path, if available.
virtual void paramsClearAll ()
 clear the paramMap and paramList
virtual void paramsEndList ()
 revert to writing to normal paramMap
virtual void paramsPushList ()
 push new list item in paramList (e.g. new shader node description)
virtual void paramsSetBool (const char *name, bool b)
virtual void paramsSetColor (const char *name, float *rgb, bool with_alpha=false)
virtual void paramsSetColor (const char *name, float r, float g, float b, float a=1.f)
virtual void paramsSetFloat (const char *name, double f)
virtual void paramsSetInt (const char *name, int i)
virtual void paramsSetMatrix (const char *name, float m[4][4], bool transpose=false)
virtual void paramsSetMatrix (const char *name, double m[4][4], bool transpose=false)
virtual void paramsSetMemMatrix (const char *name, float *matrix, bool transpose=false)
virtual void paramsSetMemMatrix (const char *name, double *matrix, bool transpose=false)
virtual void paramsSetPoint (const char *name, double x, double y, double z)
virtual void paramsSetString (const char *name, const char *s)
virtual void paramsStartList ()
 start writing parameters to the extended paramList (used by materials)
void printError (const std::string &msg)
void printInfo (const std::string &msg)
void printLog (const std::string &msg)
void printWarning (const std::string &msg)
virtual void render (colorOutput_t &output, progressBar_t *pb=0)
 render the scene...
virtual void setDrawParams (bool on=true)
virtual void setInputGamma (float gammaVal, bool enable)
virtual void setVerbosityError ()
virtual void setVerbosityInfo ()
virtual void setVerbosityLevel (int vlevel)
virtual void setVerbosityMute ()
virtual void setVerbosityWarning ()
virtual bool smoothMesh (unsigned int id, double angle)
 smooth vertex normals of mesh with given ID and angle (in degrees)
virtual bool startCurveMesh (unsigned int id, int vertices)
virtual bool startGeometry ()
 call before creating geometry; only meshes and vmaps can be created in this state
virtual bool startScene (int type=0)
 start a new scene; Must be called before any of the scene_t related callbacks!
virtual bool startTriMesh (unsigned int id, int vertices, int triangles, bool hasOrco, bool hasUV=false, int type=0)
virtual bool startTriMeshPtr (unsigned int *id, int vertices, int triangles, bool hasOrco, bool hasUV=false, int type=0)

Protected Attributes

paraMap_tcparams
 for materials that need to define a whole shader tree etc.
renderEnvironment_tenv
 just a pointer to the current paramMap, either params or a eparams element
std::list< paraMap_t > * eparams
imageFilm_tfilm
bool gcInput
float inputGamma
paraMap_tparams
scene_tscene

Detailed Description

Definition at line 30 of file yafrayinterface.h.


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

Generated by  Doxygen 1.6.0   Back to index