Choreonoid
1.8
|
#include <StdSceneReader.h>
Classes | |
struct | Resource |
Public Types | |
enum | AngleUnit { DEGREE, RADIAN } |
typedef std::function< std::string(const std::string &path, std::ostream &os)> | UriSchemeHandler |
Public Member Functions | |
StdSceneReader () | |
~StdSceneReader () | |
void | setMessageSink (std::ostream &os) |
void | setDefaultDivisionNumber (int n) |
int | defaultDivisionNumber () const |
void | setBaseDirectory (const std::string &directory) |
void | setFilePathVariableProcessor (FilePathVariableProcessor *processor) |
std::string | baseDirectory () const |
stdx::filesystem::path | baseDirPath () const |
void | setYAMLReader (YAMLReader *reader) |
void | clear () |
void | readHeader (Mapping *info) |
void | readHeader (Mapping *info, double formatVersion) |
void | setAngleUnit (AngleUnit unit) |
bool | isDegreeMode () const |
double | toRadian (double angle) const |
float | toRadian (float angle) const |
bool | readAngle (const Mapping *info, const char *key, double &angle) const |
bool | readAngle (const Mapping *info, std::initializer_list< const char * > keys, double &angle) const |
bool | readAngle (const Mapping *info, const char *key, float &angle) const |
bool | readAngle (const Mapping *info, std::initializer_list< const char * > keys, float &angle) const |
bool | readRotation (const Mapping *info, Matrix3 &out_R) const |
bool | readRotation (const Mapping *info, const char *key, Matrix3 &out_R) const |
bool | readRotation (const Mapping *info, std::initializer_list< const char * > keys, Matrix3 &out_R) const |
bool | extractRotation (Mapping *info, Matrix3 &out_R) const |
bool | readTranslation (const Mapping *info, Vector3 &out_p) const |
bool | readTranslation (const Mapping *info, const char *key, Vector3 &out_p) const |
bool | extractTranslation (Mapping *info, Vector3 &out_p) const |
SgNode * | readNode (Mapping *info) |
SgNode * | readNode (Mapping *info, const std::string &type) |
SgNode * | readScene (ValueNode *scene) |
Resource | readResourceNode (Mapping *info) |
bool | readAngle (const Mapping &info, const char *key, double &angle) const |
bool | readAngle (const Mapping &info, const char *key, float &angle) const |
bool | readRotation (const Mapping &info, Matrix3 &out_R) const |
bool | readRotation (const Mapping &info, const char *key, Matrix3 &out_R) const |
bool | extractRotation (Mapping &info, Matrix3 &out_R) const |
bool | readTranslation (const Mapping &info, Vector3 &out_p) const |
bool | readTranslation (const Mapping &info, const char *key, Vector3 &out_p) const |
bool | extractTranslation (Mapping &info, Vector3 &out_p) const |
SgNode * | readNode (Mapping &info) |
SgNode * | readNode (Mapping &info, const std::string &type) |
Resource | readResourceNode (Mapping &info) |
Static Public Member Functions | |
static void | registerUriSchemeHandler (const std::string &scheme, UriSchemeHandler handler) |
typedef std::function<std::string(const std::string& path, std::ostream& os)> cnoid::StdSceneReader::UriSchemeHandler |
StdSceneReader::StdSceneReader | ( | ) |
StdSceneReader::~StdSceneReader | ( | ) |
std::string StdSceneReader::baseDirectory | ( | ) | const |
stdx::filesystem::path StdSceneReader::baseDirPath | ( | ) | const |
void StdSceneReader::clear | ( | ) |
int StdSceneReader::defaultDivisionNumber | ( | ) | const |
|
inline |
bool StdSceneReader::readAngle | ( | const Mapping & | info, |
const char * | key, | ||
double & | angle | ||
) | const |
bool StdSceneReader::readAngle | ( | const Mapping & | info, |
const char * | key, | ||
float & | angle | ||
) | const |
bool StdSceneReader::readAngle | ( | const Mapping * | info, |
const char * | key, | ||
double & | angle | ||
) | const |
bool StdSceneReader::readAngle | ( | const Mapping * | info, |
const char * | key, | ||
float & | angle | ||
) | const |
bool StdSceneReader::readAngle | ( | const Mapping * | info, |
std::initializer_list< const char * > | keys, | ||
double & | angle | ||
) | const |
bool StdSceneReader::readAngle | ( | const Mapping * | info, |
std::initializer_list< const char * > | keys, | ||
float & | angle | ||
) | const |
void StdSceneReader::readHeader | ( | Mapping * | info | ) |
void StdSceneReader::readHeader | ( | Mapping * | info, |
double | formatVersion | ||
) |
StdSceneReader::Resource StdSceneReader::readResourceNode | ( | Mapping & | info | ) |
StdSceneReader::Resource StdSceneReader::readResourceNode | ( | Mapping * | info | ) |
bool cnoid::StdSceneReader::readRotation | ( | const Mapping & | info, |
const char * | key, | ||
Matrix3 & | out_R | ||
) | const |
bool StdSceneReader::readRotation | ( | const Mapping * | info, |
std::initializer_list< const char * > | keys, | ||
Matrix3 & | out_R | ||
) | const |
bool StdSceneReader::readTranslation | ( | const Mapping & | info, |
const char * | key, | ||
Vector3 & | out_p | ||
) | const |
bool StdSceneReader::readTranslation | ( | const Mapping * | info, |
const char * | key, | ||
Vector3 & | out_p | ||
) | const |
|
static |
void StdSceneReader::setAngleUnit | ( | AngleUnit | unit | ) |
void StdSceneReader::setBaseDirectory | ( | const std::string & | directory | ) |
void StdSceneReader::setDefaultDivisionNumber | ( | int | n | ) |
void StdSceneReader::setFilePathVariableProcessor | ( | FilePathVariableProcessor * | processor | ) |
void StdSceneReader::setMessageSink | ( | std::ostream & | os | ) |
void StdSceneReader::setYAMLReader | ( | YAMLReader * | reader | ) |
|
inline |
|
inline |