version 3.3

VRS::OBJWriter Class Reference

Wavefront Object exporter The following objects are considered: More...

#include <vrs/io/objwriter.h>

Inheritance diagram for VRS::OBJWriter:

VRS::ObjectWriter VRS::SharedObj VRS::Visitable

List of all members.

Public Member Functions

virtual bool canHandle (SharedObj *obj) const
virtual void write (SharedObj *obj, const std::string &filename) const
virtual const char * objectFormatName () const
virtual const char * objectFileSuffix () const
virtual double priority () const
 VRS_TYPEINFO (OBJWriter, ObjectWriter)

Static Public Member Functions

static bool writeFile (SO< SharedObj > obj, const std::string &filename)


Detailed Description

Wavefront Object exporter The following objects are considered:

The opacity-value is taken from the diffuse alpha-channel, the shininess is converted from OpenGL-range (0..128) to obj-range(0..1000)


Member Function Documentation

virtual bool VRS::OBJWriter::canHandle ( SharedObj obj  )  const [virtual]

Implements VRS::ObjectWriter.

virtual void VRS::OBJWriter::write ( SharedObj obj,
const std::string &  filename 
) const [inline, virtual]

`canHandle' checks whether a concrete writer class can handle a given object or not. `write' will output the object to a file with filename. In the case of i/o errors, an exception of type IOError is thrown. 'write' assumes that the object passed can be handled, i.e., 'canHandle' must return true for that object.

Implements VRS::ObjectWriter.

virtual const char* VRS::OBJWriter::objectFormatName ( void   )  const [inline, virtual]

Implements VRS::ObjectWriter.

virtual const char* VRS::OBJWriter::objectFileSuffix (  )  const [inline, virtual]

`objectFormatName' gives a verbose description of the file format that is written to. `objectFileSuffix' is the most widely used suffix used for this format.

Implements VRS::ObjectWriter.

virtual double VRS::OBJWriter::priority (  )  const [inline, virtual]

Reimplemented from VRS::ObjectWriter.

static bool VRS::OBJWriter::writeFile ( SO< SharedObj obj,
const std::string &  filename 
) [static]

VRS::OBJWriter::VRS_TYPEINFO ( OBJWriter  ,
ObjectWriter   
)


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

Generated on Thu May 23 06:00:26 2013 by Doxygen 1.5.6
© 2001-2010 Hasso-Plattner-Institut | Impressum | Contact