15 #ifndef OPENHRP_MODEL_LOADER_SHAPE_SET_INFO_INPL_H_INCLUDED
16 #define OPENHRP_MODEL_LOADER_SHAPE_SET_INFO_INPL_H_INCLUDED
20 #include <hrpCorba/ModelLoader.hh>
37 virtual PortableServer::POA_ptr _default_POA();
39 virtual ShapeInfoSequence* shapes();
40 virtual AppearanceInfoSequence* appearances();
41 virtual MaterialInfoSequence* materials();
42 virtual TextureInfoSequence* textures();
47 static void putMessage(
const std::string& message);
48 std::string& replace(std::string& str,
const std::string& sb,
const std::string& sa);
49 void traverseShapeNodes(
VrmlNode* node,
const Matrix44& T, TransformedShapeIndexSequence& io_shapeIndices, DblArray12Sequence& inlinedShapeM,
const SFString* url = NULL);
50 virtual const std::string& topUrl() = 0;
51 void setColdetModel(
ColdetModelPtr& coldetModel, TransformedShapeIndexSequence shapeIndices,
const Matrix44& Tparent,
int& vertexIndex,
int& triangleIndex);
52 void saveOriginalData();
53 void restoreOriginalData();
54 void createAppearanceInfo();
55 void setBoundingBoxData(
const Vector3& boxSize,
int shapeIndex);
56 bool checkFileUpdateTime();
61 PortableServer::POA_var
poa;
81 void setPrimitiveProperties(ShapeInfo& shapeInfo,
VrmlShape* shapeNode);
89 std::string getModelFileDirPath(
const std::string& url);
90 void setColdetModelTriangles(
ColdetModelPtr& coldetModel,
const TransformedShapeIndex& tsi,
const Matrix44& Tparent,
int& vertexIndex,
int& triangleIndex);
94 #ifdef OPENHRP_COLLADA_FOUND