Sirikata
|
#include <BillboardSystem.hpp>
Public Member Functions | |
BillboardSystem () | |
virtual | ~BillboardSystem () |
virtual bool | canLoad (Transfer::DenseDataPtr data) |
Check if this ModelsSystem will be able to parse the data. | |
virtual Mesh::VisualPtr | load (const Transfer::RemoteFileMetadata &metadata, const Transfer::Fingerprint &fp, Transfer::DenseDataPtr data) |
Load a mesh into a Visual object. | |
virtual Mesh::VisualPtr | load (Transfer::DenseDataPtr data) |
virtual bool | convertVisual (const Mesh::VisualPtr &meshdata, const String &format, std::ostream &vout) |
Convert a Visual to the format for this ModelsSystem. | |
virtual bool | convertVisual (const Mesh::VisualPtr &meshdata, const String &format, const String &filename) |
Convert a Visual to the format for this ModelsSystem. | |
Static Public Member Functions | |
static ModelsSystem * | create (const String &args) |
Sirikata::BillboardSystem::BillboardSystem | ( | ) |
Referenced by create().
Sirikata::BillboardSystem::~BillboardSystem | ( | ) | [virtual] |
bool Sirikata::BillboardSystem::canLoad | ( | Transfer::DenseDataPtr | data | ) | [virtual] |
Check if this ModelsSystem will be able to parse the data.
This doesn't guarantee successful parsing: generally it only checks for magic numbers to see if it is likely a supported format.
Implements Sirikata::ModelsSystem.
bool Sirikata::BillboardSystem::convertVisual | ( | const Mesh::VisualPtr & | visual, |
const String & | format, | ||
std::ostream & | vout | ||
) | [virtual] |
Convert a Visual to the format for this ModelsSystem.
visual | the Visual to save to disk |
format | format hint (may or may not be used by plugin) |
vout | an output stream to write the visual's data to |
Implements Sirikata::ModelsSystem.
bool Sirikata::BillboardSystem::convertVisual | ( | const Mesh::VisualPtr & | visual, |
const String & | format, | ||
const String & | filename | ||
) | [virtual] |
Convert a Visual to the format for this ModelsSystem.
visual | the Visual to save to disk |
format | format hint (may or may not be used by plugin) |
filename | the file to save the serialized mesh to |
Implements Sirikata::ModelsSystem.
ModelsSystem * Sirikata::BillboardSystem::create | ( | const String & | args | ) | [static] |
References BillboardSystem().
Referenced by init().
Mesh::VisualPtr Sirikata::BillboardSystem::load | ( | const Transfer::RemoteFileMetadata & | metadata, |
const Transfer::Fingerprint & | fp, | ||
Transfer::DenseDataPtr | data | ||
) | [virtual] |
Load a mesh into a Visual object.
Implements Sirikata::ModelsSystem.
References Sirikata::Mesh::Billboard::FACING_CAMERA, Sirikata::Mesh::Billboard::FACING_FIXED, Sirikata::Transfer::RemoteFileMetadata::getURI(), Sirikata::Transfer::URI::toString(), and url.
Mesh::VisualPtr Sirikata::BillboardSystem::load | ( | Transfer::DenseDataPtr | data | ) | [virtual] |
Implements Sirikata::ModelsSystem.
References Sirikata::Mesh::Billboard::FACING_CAMERA, Sirikata::Mesh::Billboard::FACING_FIXED, Sirikata::SHA256::null(), and url.