Public Types | |
enum | { PROTO_UNDEFINED = 0, PROTO_HUMANOID, PROTO_JOINT, PROTO_SEGMENT, PROTO_SENSOR, PROTO_HARDWARECOMPONENT, PROTO_EXTRAJOINT, NUM_PROTOS } |
typedef std::bitset< NUM_PROTOS > | ProtoIdSet |
Public Member Functions | |
VrmlVariantField * | addField (const std::string &name, VrmlFieldTypeId type) |
void | addFloatField (const std::string &name, double defaultValue) |
JointNodeSetPtr | addJointNodeSet (VrmlProtoInstancePtr jointNode) |
void | checkExtraJointProto () |
void | checkFieldType (const std::string &name, VrmlFieldTypeId type) |
void | checkHardwareComponentProto () |
void | checkHumanoidProto () |
void | checkJointProto () |
void | checkSegmentProto () |
void | checkSensorProtoCommon () |
void | extractChildNodes (JointNodeSetPtr jointNodeSet, MFNode &childNodes, const ProtoIdSet acceptableProtoIds, const Matrix44 &T) |
void | extractHumanoidNode (VrmlParser &parser) |
void | extractJointNodes () |
bool | loadModelFile (const std::string &filename) |
ModelNodeSetImpl (ModelNodeSet *self) | |
void | putMessage (const std::string &message) |
void | requireField (const std::string &name, VrmlFieldTypeId type) |
void | throwExceptionOfIllegalField (const std::string &name, VrmlFieldTypeId typeId) |
Public Attributes | |
std::vector< VrmlProtoInstancePtr > | extraJointNodes |
VrmlProtoInstancePtr | humanoidNode |
int | messageIndent |
int | numJointNodes |
VrmlProtoPtr | protoToCheck |
JointNodeSetPtr | rootJointNodeSet |
ModelNodeSet * | self |
Definition at line 47 of file ModelNodeSet.cpp.
typedef std::bitset<NUM_PROTOS> hrp::ModelNodeSetImpl::ProtoIdSet |
Definition at line 76 of file ModelNodeSet.cpp.
anonymous enum |
Enumerator | |
---|---|
PROTO_UNDEFINED | |
PROTO_HUMANOID | |
PROTO_JOINT | |
PROTO_SEGMENT | |
PROTO_SENSOR | |
PROTO_HARDWARECOMPONENT | |
PROTO_EXTRAJOINT | |
NUM_PROTOS |
Definition at line 63 of file ModelNodeSet.cpp.
ModelNodeSetImpl::ModelNodeSetImpl | ( | ModelNodeSet * | self | ) |
Definition at line 108 of file ModelNodeSet.cpp.
VrmlVariantField * ModelNodeSetImpl::addField | ( | const std::string & | name, |
VrmlFieldTypeId | type | ||
) |
Definition at line 269 of file ModelNodeSet.cpp.
Definition at line 281 of file ModelNodeSet.cpp.
JointNodeSetPtr ModelNodeSetImpl::addJointNodeSet | ( | VrmlProtoInstancePtr | jointNode | ) |
Definition at line 424 of file ModelNodeSet.cpp.
void ModelNodeSetImpl::checkExtraJointProto | ( | ) |
Definition at line 390 of file ModelNodeSet.cpp.
void ModelNodeSetImpl::checkFieldType | ( | const std::string & | name, |
VrmlFieldTypeId | type | ||
) |
Definition at line 260 of file ModelNodeSet.cpp.
void ModelNodeSetImpl::checkHardwareComponentProto | ( | ) |
Definition at line 382 of file ModelNodeSet.cpp.
void ModelNodeSetImpl::checkHumanoidProto | ( | ) |
Definition at line 293 of file ModelNodeSet.cpp.
void ModelNodeSetImpl::checkJointProto | ( | ) |
Definition at line 316 of file ModelNodeSet.cpp.
void ModelNodeSetImpl::checkSegmentProto | ( | ) |
Definition at line 365 of file ModelNodeSet.cpp.
void ModelNodeSetImpl::checkSensorProtoCommon | ( | ) |
Definition at line 374 of file ModelNodeSet.cpp.
void ModelNodeSetImpl::extractChildNodes | ( | JointNodeSetPtr | jointNodeSet, |
MFNode & | childNodes, | ||
const ProtoIdSet | acceptableProtoIds, | ||
const Matrix44 & | T | ||
) |
Definition at line 449 of file ModelNodeSet.cpp.
void ModelNodeSetImpl::extractHumanoidNode | ( | VrmlParser & | parser | ) |
Definition at line 208 of file ModelNodeSet.cpp.
void ModelNodeSetImpl::extractJointNodes | ( | ) |
Definition at line 400 of file ModelNodeSet.cpp.
bool ModelNodeSetImpl::loadModelFile | ( | const std::string & | filename | ) |
Definition at line 187 of file ModelNodeSet.cpp.
Definition at line 542 of file ModelNodeSet.cpp.
void ModelNodeSetImpl::requireField | ( | const std::string & | name, |
VrmlFieldTypeId | type | ||
) |
Definition at line 251 of file ModelNodeSet.cpp.
void ModelNodeSetImpl::throwExceptionOfIllegalField | ( | const std::string & | name, |
VrmlFieldTypeId | typeId | ||
) |
Definition at line 242 of file ModelNodeSet.cpp.
std::vector<VrmlProtoInstancePtr> hrp::ModelNodeSetImpl::extraJointNodes |
Definition at line 74 of file ModelNodeSet.cpp.
VrmlProtoInstancePtr hrp::ModelNodeSetImpl::humanoidNode |
Definition at line 57 of file ModelNodeSet.cpp.
int hrp::ModelNodeSetImpl::messageIndent |
Definition at line 59 of file ModelNodeSet.cpp.
int hrp::ModelNodeSetImpl::numJointNodes |
Definition at line 56 of file ModelNodeSet.cpp.
VrmlProtoPtr hrp::ModelNodeSetImpl::protoToCheck |
Definition at line 61 of file ModelNodeSet.cpp.
JointNodeSetPtr hrp::ModelNodeSetImpl::rootJointNodeSet |
Definition at line 58 of file ModelNodeSet.cpp.
ModelNodeSet* hrp::ModelNodeSetImpl::self |
Definition at line 54 of file ModelNodeSet.cpp.