| VRS - The Virtual Rendering System |
| version 3.3 |
#include <vrs/io/objwriter.h>

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) |
The opacity-value is taken from the diffuse alpha-channel, the shininess is converted from OpenGL-range (0..128) to obj-range(0..1000)
| 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 | ||||
| ) |