Sirikata
Public Member Functions | Static Public Member Functions | Private Types | Private Member Functions | Private Attributes | Static Private Attributes
Sirikata::AnyModelsSystem Class Reference

AnyModelsSystem is an implementation of ModelsSystem which uses all other available implementations to handle as wide a variety of meshes as possible. More...

#include <AnyModelsSystem.hpp>

Inheritance diagram for Sirikata::AnyModelsSystem:
Collaboration diagram for Sirikata::AnyModelsSystem:

List of all members.

Public Member Functions

virtual ~AnyModelsSystem ()
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 &visual, const String &format, std::ostream &vout)
 Convert a Visual to the format for this ModelsSystem.
virtual bool convertVisual (const Mesh::VisualPtr &visual, const String &format, const String &filename)
 Convert a Visual to the format for this ModelsSystem.

Static Public Member Functions

static const String & name ()
static ModelsSystemcreate (const String &args)

Private Types

typedef std::map< String,
ModelsSystem * > 
SystemsMap

Private Member Functions

 AnyModelsSystem ()
 AnyModelsSystem (const AnyModelsSystem &rhs)
AnyModelsSystemoperator= (const AnyModelsSystem &rhs)

Private Attributes

SystemsMap mModelsSystems

Static Private Attributes

static String sAnyName

Detailed Description

AnyModelsSystem is an implementation of ModelsSystem which uses all other available implementations to handle as wide a variety of meshes as possible.


Member Typedef Documentation

typedef std::map<String, ModelsSystem*> Sirikata::AnyModelsSystem::SystemsMap [private]

Constructor & Destructor Documentation

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

References mModelsSystems.

Sirikata::AnyModelsSystem::AnyModelsSystem ( ) [private]
Sirikata::AnyModelsSystem::AnyModelsSystem ( const AnyModelsSystem rhs) [private]

Member Function Documentation

bool Sirikata::AnyModelsSystem::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.

References Sirikata::ModelsSystem::canLoad(), and mModelsSystems.

bool Sirikata::AnyModelsSystem::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.

References Sirikata::ModelsSystem::convertVisual(), Sirikata::Logging::error, mModelsSystems, and SILOG.

bool Sirikata::AnyModelsSystem::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.

References Sirikata::ModelsSystem::convertVisual(), Sirikata::Logging::error, mModelsSystems, and SILOG.

ModelsSystem * Sirikata::AnyModelsSystem::create ( const String &  args) [static]
Mesh::VisualPtr Sirikata::AnyModelsSystem::load ( Transfer::DenseDataPtr  data) [virtual]
Mesh::VisualPtr Sirikata::AnyModelsSystem::load ( const Transfer::RemoteFileMetadata metadata,
const Transfer::Fingerprint fp,
Transfer::DenseDataPtr  data 
) [virtual]
static const String& Sirikata::AnyModelsSystem::name ( ) [inline, static]
AnyModelsSystem& Sirikata::AnyModelsSystem::operator= ( const AnyModelsSystem rhs) [private]

Member Data Documentation

String Sirikata::AnyModelsSystem::sAnyName [static, private]

Referenced by AnyModelsSystem().


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