Sirikata
Public Member Functions | Static Public Member Functions
Sirikata::BillboardSystem Class Reference

#include <BillboardSystem.hpp>

Inheritance diagram for Sirikata::BillboardSystem:
Collaboration diagram for Sirikata::BillboardSystem:

List of all members.

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 ModelsSystemcreate (const String &args)

Constructor & Destructor Documentation

Sirikata::BillboardSystem::BillboardSystem ( )

Referenced by create().

Sirikata::BillboardSystem::~BillboardSystem ( ) [virtual]

Member Function Documentation

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.

Parameters:
visualthe Visual to save to disk
formatformat hint (may or may not be used by plugin)
voutan output stream to write the visual's data to
Returns:
true if the conversion was successful, false otherwise

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.

Parameters:
visualthe Visual to save to disk
formatformat hint (may or may not be used by plugin)
filenamethe file to save the serialized mesh to
Returns:
true if the conversion was successful, false otherwise
Deprecated:
You should use the version of this method that takes a std::ostream instead.

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]
Mesh::VisualPtr Sirikata::BillboardSystem::load ( Transfer::DenseDataPtr  data) [virtual]

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