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

#include <StdBodyLoader.h>

Inheritance diagram for cnoid::StdBodyLoader:
cnoid::AbstractBodyLoader

Classes

struct  NodeTypeRegistration
 

Public Member Functions

 StdBodyLoader ()
 
 ~StdBodyLoader ()
 
virtual void setMessageSink (std::ostream &os) override
 
virtual void setVerbose (bool on) override
 
virtual void setShapeLoadingEnabled (bool on) override
 
virtual void setDefaultDivisionNumber (int n) override
 
virtual void setDefaultCreaseAngle (double theta) override
 
virtual bool load (Body *body, const std::string &filename) override
 
bool read (Body *body, Mapping *data)
 
bool readDevice (Device *device, const Mapping *node)
 
StdSceneReadersceneReader ()
 
const StdSceneReadersceneReader () const
 
bool isDegreeMode () const
 
double toRadian (double angle) const
 
bool readAngle (const Mapping *node, const char *key, double &angle) const
 
bool readRotation (const Mapping *node, Matrix3 &out_R) const
 
bool readRotation (const Mapping *node, const char *key, Matrix3 &out_R) const
 
bool readRotation (const Mapping *node, std::initializer_list< const char * > keys, Matrix3 &out_R) const
 
bool readDevice (Device *device, const Mapping &node)
 
bool readAngle (const Mapping &node, const char *key, double &angle) const
 
bool readRotation (const Mapping &node, Matrix3 &out_R) const
 
bool readRotation (const Mapping &node, const char *key, Matrix3 &out_R) const
 
- Public Member Functions inherited from cnoid::AbstractBodyLoader
 AbstractBodyLoader ()
 
virtual ~AbstractBodyLoader ()
 

Static Public Member Functions

static void registerNodeType (const char *typeName, std::function< bool(StdBodyLoader *loader, const Mapping *info)> readFunction)
 
static void addNodeType (const char *typeName, std::function< bool(StdBodyLoader &loader, const Mapping &info)> readFunction)
 

Constructor & Destructor Documentation

◆ StdBodyLoader()

StdBodyLoader::StdBodyLoader ( )

◆ ~StdBodyLoader()

StdBodyLoader::~StdBodyLoader ( )

Member Function Documentation

◆ addNodeType()

void StdBodyLoader::addNodeType ( const char *  typeName,
std::function< bool(StdBodyLoader &loader, const Mapping &info)>  readFunction 
)
static

◆ isDegreeMode()

bool StdBodyLoader::isDegreeMode ( ) const

◆ load()

bool StdBodyLoader::load ( Body body,
const std::string &  filename 
)
overridevirtual

◆ read()

bool StdBodyLoader::read ( Body body,
Mapping data 
)

◆ readAngle() [1/2]

bool StdBodyLoader::readAngle ( const Mapping node,
const char *  key,
double &  angle 
) const

◆ readAngle() [2/2]

bool StdBodyLoader::readAngle ( const Mapping node,
const char *  key,
double &  angle 
) const

◆ readDevice() [1/2]

bool StdBodyLoader::readDevice ( Device device,
const Mapping node 
)

◆ readDevice() [2/2]

bool StdBodyLoader::readDevice ( Device device,
const Mapping node 
)

◆ readRotation() [1/5]

bool StdBodyLoader::readRotation ( const Mapping node,
const char *  key,
Matrix3 out_R 
) const

◆ readRotation() [2/5]

bool StdBodyLoader::readRotation ( const Mapping node,
Matrix3 out_R 
) const

◆ readRotation() [3/5]

bool StdBodyLoader::readRotation ( const Mapping node,
const char *  key,
Matrix3 out_R 
) const

◆ readRotation() [4/5]

bool StdBodyLoader::readRotation ( const Mapping node,
Matrix3 out_R 
) const

◆ readRotation() [5/5]

bool StdBodyLoader::readRotation ( const Mapping node,
std::initializer_list< const char * >  keys,
Matrix3 out_R 
) const

◆ registerNodeType()

void StdBodyLoader::registerNodeType ( const char *  typeName,
std::function< bool(StdBodyLoader *loader, const Mapping *info)>  readFunction 
)
static

◆ sceneReader() [1/2]

const StdSceneReader * StdBodyLoader::sceneReader ( )

◆ sceneReader() [2/2]

const StdSceneReader* cnoid::StdBodyLoader::sceneReader ( ) const

◆ setDefaultCreaseAngle()

void StdBodyLoader::setDefaultCreaseAngle ( double  theta)
overridevirtual

Reimplemented from cnoid::AbstractBodyLoader.

◆ setDefaultDivisionNumber()

void StdBodyLoader::setDefaultDivisionNumber ( int  n)
overridevirtual

Reimplemented from cnoid::AbstractBodyLoader.

◆ setMessageSink()

void StdBodyLoader::setMessageSink ( std::ostream &  os)
overridevirtual

Reimplemented from cnoid::AbstractBodyLoader.

◆ setShapeLoadingEnabled()

void StdBodyLoader::setShapeLoadingEnabled ( bool  on)
overridevirtual

Reimplemented from cnoid::AbstractBodyLoader.

◆ setVerbose()

void StdBodyLoader::setVerbose ( bool  on)
overridevirtual

Reimplemented from cnoid::AbstractBodyLoader.

◆ toRadian()

double StdBodyLoader::toRadian ( double  angle) const

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