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

#include <BodyLoader.h>

Inheritance diagram for cnoid::BodyLoader:
cnoid::AbstractBodyLoader

Public Types

enum  LengthUnit { Meter, Millimeter, Inch, NumLengthUnitIds }
 
enum  UpperAxis { Z, Y, NumUpperAxisIds }
 

Public Member Functions

 BodyLoader ()
 
 ~BodyLoader ()
 
virtual void setMessageSink (std::ostream &os)
 
virtual void setVerbose (bool on)
 
virtual void setShapeLoadingEnabled (bool on)
 
virtual void setDefaultDivisionNumber (int n)
 
virtual void setDefaultCreaseAngle (double theta)
 
void setMeshImportHint (LengthUnit unit, UpperAxis axis)
 
virtual bool load (Body *body, const std::string &filename)
 
Bodyload (const std::string &filename)
 
AbstractBodyLoaderPtr lastActualBodyLoader () const
 
- Public Member Functions inherited from cnoid::AbstractBodyLoader
 AbstractBodyLoader ()
 
virtual ~AbstractBodyLoader ()
 

Static Public Member Functions

static void registerLoader (const std::string &extension, std::function< AbstractBodyLoaderPtr()> factory)
 
static void registerLoader (std::initializer_list< const char * > extensions, std::function< AbstractBodyLoaderPtr()> factory)
 

Member Enumeration Documentation

◆ LengthUnit

Enumerator
Meter 
Millimeter 
Inch 
NumLengthUnitIds 

◆ UpperAxis

Enumerator
NumUpperAxisIds 

Constructor & Destructor Documentation

◆ BodyLoader()

BodyLoader::BodyLoader ( )

◆ ~BodyLoader()

BodyLoader::~BodyLoader ( )

Member Function Documentation

◆ lastActualBodyLoader()

AbstractBodyLoaderPtr BodyLoader::lastActualBodyLoader ( ) const

◆ load() [1/2]

bool BodyLoader::load ( Body body,
const std::string &  filename 
)
virtual

◆ load() [2/2]

Body * BodyLoader::load ( const std::string &  filename)

◆ registerLoader() [1/2]

void BodyLoader::registerLoader ( const std::string &  extension,
std::function< AbstractBodyLoaderPtr()>  factory 
)
static

◆ registerLoader() [2/2]

void BodyLoader::registerLoader ( std::initializer_list< const char * >  extensions,
std::function< AbstractBodyLoaderPtr()>  factory 
)
static

◆ setDefaultCreaseAngle()

void BodyLoader::setDefaultCreaseAngle ( double  theta)
virtual

Reimplemented from cnoid::AbstractBodyLoader.

◆ setDefaultDivisionNumber()

void BodyLoader::setDefaultDivisionNumber ( int  n)
virtual

Reimplemented from cnoid::AbstractBodyLoader.

◆ setMeshImportHint()

void BodyLoader::setMeshImportHint ( LengthUnit  unit,
UpperAxis  axis 
)

◆ setMessageSink()

void BodyLoader::setMessageSink ( std::ostream &  os)
virtual

Reimplemented from cnoid::AbstractBodyLoader.

◆ setShapeLoadingEnabled()

void BodyLoader::setShapeLoadingEnabled ( bool  on)
virtual

Reimplemented from cnoid::AbstractBodyLoader.

◆ setVerbose()

void BodyLoader::setVerbose ( bool  on)
virtual

Reimplemented from cnoid::AbstractBodyLoader.


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