35 #ifndef OPENHRP_MODEL_LOADER_SCENE_INFO_COLLADA_IMPL_H_INCLUDED 36 #define OPENHRP_MODEL_LOADER_SCENE_INFO_COLLADA_IMPL_H_INCLUDED 39 #include <hrpCorba/ModelLoader.hh> 63 url_ = CORBA::string_dup(filename.c_str());
65 shapes_ = probot->shapes_;
66 appearances_ = probot->appearances_;
67 materials_ = probot->materials_;
68 textures_ = probot->textures_;
72 size_t linkLength = asis->length();
73 for(
size_t linkIndex = 0; linkIndex < linkLength; ++linkIndex) {
74 TransformedShapeIndexSequence tsis = (*asis)[linkIndex];
75 for(
size_t segmentIndex = 0; segmentIndex < tsis.length(); ++segmentIndex) {
76 long length = shapeIndices_.length();
77 shapeIndices_.length(length+1);
78 TransformedShapeIndex tsi = tsis[segmentIndex];
79 shapeIndices_[
length] = tsi;
81 const DblArray12& M = tsi.transformMatrix;
82 inlinedShapeTransformMatrices_.length(length+1);
83 for(
int i=0;
i<12;
i++) {
84 inlinedShapeTransformMatrices_[
length][
i] = M[
i];
90 throw ModelLoader::ModelLoaderException(ex.
getFullMessage().c_str());
virtual AllLinkShapeIndexSequence * linkShapeIndices()
SceneInfoCollada_impl(PortableServer::POA_ptr poa)
virtual ~SceneInfoCollada_impl()
png_bytep png_bytep png_size_t length
reads in collada files and initializes a BodyInfo struct
void loadModelFile(const std::string &filename)
std::string getFullMessage()
BodyInfoCollada_impl * probot
void load(const std::string &filename)
The header file of a text scanner class.