Choreonoid  1.8
Classes | Public Types | Public Member Functions | Static Public Member Functions | List of all members
cnoid::StdBodyWriter Class Reference

#include <StdBodyWriter.h>

Classes

struct  DeviceWriterRegistration
 

Public Types

enum  ExtModelFileMode { EmbedModels = StdSceneWriter::EmbedModels, LinkToOriginalModelFiles = StdSceneWriter::LinkToOriginalModelFiles, ReplaceWithStdSceneFiles = StdSceneWriter::ReplaceWithStdSceneFiles, ReplaceWithObjModelFiles = StdSceneWriter::ReplaceWithObjModelFiles }
 

Public Member Functions

 StdBodyWriter ()
 
void setMessageSink (std::ostream &os)
 
void setExtModelFileMode (int mode)
 
int extModelFileMode () const
 
bool writeBody (Body *body, const std::string &filename)
 
StdSceneWritersceneWriter ()
 
const StdSceneWritersceneWriter () const
 
template<class DeviceType >
bool writeDeviceAs (Mapping *info, const DeviceType *device)
 

Static Public Member Functions

template<class DeviceType >
static void registerDeviceWriter (const char *typeName, std::function< bool(StdBodyWriter *writer, Mapping *info, const DeviceType *device)> writeFunction)
 

Member Enumeration Documentation

◆ ExtModelFileMode

Enumerator
EmbedModels 
LinkToOriginalModelFiles 
ReplaceWithStdSceneFiles 
ReplaceWithObjModelFiles 

Constructor & Destructor Documentation

◆ StdBodyWriter()

StdBodyWriter::StdBodyWriter ( )

Member Function Documentation

◆ extModelFileMode()

int StdBodyWriter::extModelFileMode ( ) const

◆ registerDeviceWriter()

template<class DeviceType >
static void cnoid::StdBodyWriter::registerDeviceWriter ( const char *  typeName,
std::function< bool(StdBodyWriter *writer, Mapping *info, const DeviceType *device)>  writeFunction 
)
inlinestatic

◆ sceneWriter() [1/2]

const StdSceneWriter * StdBodyWriter::sceneWriter ( )

◆ sceneWriter() [2/2]

const StdSceneWriter* cnoid::StdBodyWriter::sceneWriter ( ) const

◆ setExtModelFileMode()

void StdBodyWriter::setExtModelFileMode ( int  mode)

◆ setMessageSink()

void StdBodyWriter::setMessageSink ( std::ostream &  os)

◆ writeBody()

bool StdBodyWriter::writeBody ( Body body,
const std::string &  filename 
)

◆ writeDeviceAs()

template<class DeviceType >
bool cnoid::StdBodyWriter::writeDeviceAs ( Mapping info,
const DeviceType *  device 
)
inline

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