#include <ShapeSetInfo_impl.h>
Public Member Functions | |
virtual PortableServer::POA_ptr | _default_POA () |
virtual AppearanceInfoSequence * | appearances () |
virtual MaterialInfoSequence * | materials () |
virtual ShapeInfoSequence * | shapes () |
ShapeSetInfo_impl (PortableServer::POA_ptr poa) | |
virtual TextureInfoSequence * | textures () |
virtual | ~ShapeSetInfo_impl () |
Protected Member Functions | |
void | applyTriangleMeshShaper (VrmlNodePtr node) |
bool | checkFileUpdateTime () |
void | createAppearanceInfo () |
std::string & | replace (std::string &str, const std::string &sb, const std::string &sa) |
void | restoreOriginalData () |
void | saveOriginalData () |
void | setBoundingBoxData (const Vector3 &boxSize, int shapeIndex) |
void | setColdetModel (ColdetModelPtr &coldetModel, TransformedShapeIndexSequence shapeIndices, const Matrix44 &Tparent, int &vertexIndex, int &triangleIndex) |
virtual const std::string & | topUrl ()=0 |
void | traverseShapeNodes (VrmlNode *node, const Matrix44 &T, TransformedShapeIndexSequence &io_shapeIndices, DblArray12Sequence &inlinedShapeM, const SFString *url=NULL) |
Static Protected Member Functions | |
static void | putMessage (const std::string &message) |
Protected Attributes | |
bool | readImage |
Private Types | |
typedef std::map< VrmlShapePtr, int > | ShapeNodeToShapeInfoIndexMap |
Private Member Functions | |
int | createAppearanceInfo (ShapeInfo &shapeInfo, VrmlShape *shapeNode, VrmlIndexedFaceSet *faceSet, const SFString *url) |
int | createMaterialInfo (VrmlMaterialPtr &materialNode) |
int | createShapeInfo (VrmlShape *shapeNode, const SFString *url) |
int | createTextureInfo (VrmlTexturePtr &textureNode, const SFString *url) |
void | createTextureTransformMatrix (AppearanceInfo &appInfo, VrmlTextureTransformPtr &textureTransform) |
std::string | getModelFileDirPath (const std::string &url) |
void | setColdetModelTriangles (ColdetModelPtr &coldetModel, const TransformedShapeIndex &tsi, const Matrix44 &Tparent, int &vertexIndex, int &triangleIndex) |
void | setColors (AppearanceInfo &appInfo, VrmlIndexedFaceSet *triangleMesh) |
void | setNormals (AppearanceInfo &appInfo, VrmlIndexedFaceSet *triangleMesh) |
void | setPrimitiveProperties (ShapeInfo &shapeInfo, VrmlShape *shapeNode) |
void | setTexCoords (AppearanceInfo &appInfo, VrmlIndexedFaceSet *triangleMesh) |
void | setTriangleMesh (ShapeInfo &shapeInfo, VrmlIndexedFaceSet *triangleMesh) |
Private Attributes | |
AppearanceInfoSequence | appearances_ |
std::map< std::string, time_t > | fileTimeMap |
MaterialInfoSequence | materials_ |
AppearanceInfoSequence | originAppearances_ |
MaterialInfoSequence | originMaterials_ |
ShapeInfoSequence | originShapes_ |
PortableServer::POA_var | poa |
ShapeNodeToShapeInfoIndexMap | shapeInfoIndexMap |
ShapeInfoSequence | shapes_ |
TextureInfoSequence | textures_ |
TriangleMeshShaper | triangleMeshShaper |
Friends | |
class | BodyInfo_impl |
class | SceneInfo_impl |
Definition at line 30 of file ShapeSetInfo_impl.h.
typedef std::map<VrmlShapePtr, int> ShapeSetInfo_impl::ShapeNodeToShapeInfoIndexMap [private] |
Definition at line 74 of file ShapeSetInfo_impl.h.
ShapeSetInfo_impl::ShapeSetInfo_impl | ( | PortableServer::POA_ptr | poa | ) |
Definition at line 36 of file ShapeSetInfo_impl.cpp.
ShapeSetInfo_impl::~ShapeSetInfo_impl | ( | ) | [virtual] |
Definition at line 44 of file ShapeSetInfo_impl.cpp.
PortableServer::POA_ptr ShapeSetInfo_impl::_default_POA | ( | ) | [virtual] |
Definition at line 50 of file ShapeSetInfo_impl.cpp.
AppearanceInfoSequence * ShapeSetInfo_impl::appearances | ( | ) | [virtual] |
Definition at line 93 of file ShapeSetInfo_impl.cpp.
void ShapeSetInfo_impl::applyTriangleMeshShaper | ( | VrmlNodePtr | node | ) | [protected] |
Definition at line 56 of file ShapeSetInfo_impl.cpp.
bool ShapeSetInfo_impl::checkFileUpdateTime | ( | ) | [protected] |
Definition at line 738 of file ShapeSetInfo_impl.cpp.
void ShapeSetInfo_impl::createAppearanceInfo | ( | ) | [protected] |
Definition at line 705 of file ShapeSetInfo_impl.cpp.
int ShapeSetInfo_impl::createAppearanceInfo | ( | ShapeInfo & | shapeInfo, |
VrmlShape * | shapeNode, | ||
VrmlIndexedFaceSet * | faceSet, | ||
const SFString * | url | ||
) | [private] |
Definition at line 338 of file ShapeSetInfo_impl.cpp.
int ShapeSetInfo_impl::createMaterialInfo | ( | VrmlMaterialPtr & | materialNode | ) | [private] |
Definition at line 515 of file ShapeSetInfo_impl.cpp.
int ShapeSetInfo_impl::createShapeInfo | ( | VrmlShape * | shapeNode, |
const SFString * | url | ||
) | [private] |
Definition at line 222 of file ShapeSetInfo_impl.cpp.
int ShapeSetInfo_impl::createTextureInfo | ( | VrmlTexturePtr & | textureNode, |
const SFString * | url | ||
) | [private] |
Definition at line 552 of file ShapeSetInfo_impl.cpp.
void ShapeSetInfo_impl::createTextureTransformMatrix | ( | AppearanceInfo & | appInfo, |
VrmlTextureTransformPtr & | textureTransform | ||
) | [private] |
Definition at line 480 of file ShapeSetInfo_impl.cpp.
std::string ShapeSetInfo_impl::getModelFileDirPath | ( | const std::string & | url | ) | [private] |
Definition at line 616 of file ShapeSetInfo_impl.cpp.
MaterialInfoSequence * ShapeSetInfo_impl::materials | ( | ) | [virtual] |
Definition at line 99 of file ShapeSetInfo_impl.cpp.
void ShapeSetInfo_impl::putMessage | ( | const std::string & | message | ) | [static, protected] |
Definition at line 62 of file ShapeSetInfo_impl.cpp.
string & ShapeSetInfo_impl::replace | ( | std::string & | str, |
const std::string & | sb, | ||
const std::string & | sa | ||
) | [protected] |
Definition at line 74 of file ShapeSetInfo_impl.cpp.
void ShapeSetInfo_impl::restoreOriginalData | ( | ) | [protected] |
Definition at line 732 of file ShapeSetInfo_impl.cpp.
void ShapeSetInfo_impl::saveOriginalData | ( | ) | [protected] |
Definition at line 675 of file ShapeSetInfo_impl.cpp.
void ShapeSetInfo_impl::setBoundingBoxData | ( | const Vector3 & | boxSize, |
int | shapeIndex | ||
) | [protected] |
Definition at line 681 of file ShapeSetInfo_impl.cpp.
void ShapeSetInfo_impl::setColdetModel | ( | ColdetModelPtr & | coldetModel, |
TransformedShapeIndexSequence | shapeIndices, | ||
const Matrix44 & | Tparent, | ||
int & | vertexIndex, | ||
int & | triangleIndex | ||
) | [protected] |
Reimplemented in BodyInfoCollada_impl.
Definition at line 636 of file ShapeSetInfo_impl.cpp.
void ShapeSetInfo_impl::setColdetModelTriangles | ( | ColdetModelPtr & | coldetModel, |
const TransformedShapeIndex & | tsi, | ||
const Matrix44 & | Tparent, | ||
int & | vertexIndex, | ||
int & | triangleIndex | ||
) | [private] |
Reimplemented in BodyInfoCollada_impl.
Definition at line 643 of file ShapeSetInfo_impl.cpp.
void ShapeSetInfo_impl::setColors | ( | AppearanceInfo & | appInfo, |
VrmlIndexedFaceSet * | triangleMesh | ||
) | [private] |
Definition at line 378 of file ShapeSetInfo_impl.cpp.
void ShapeSetInfo_impl::setNormals | ( | AppearanceInfo & | appInfo, |
VrmlIndexedFaceSet * | triangleMesh | ||
) | [private] |
Definition at line 416 of file ShapeSetInfo_impl.cpp.
void ShapeSetInfo_impl::setPrimitiveProperties | ( | ShapeInfo & | shapeInfo, |
VrmlShape * | shapeNode | ||
) | [private] |
Definition at line 274 of file ShapeSetInfo_impl.cpp.
void ShapeSetInfo_impl::setTexCoords | ( | AppearanceInfo & | appInfo, |
VrmlIndexedFaceSet * | triangleMesh | ||
) | [private] |
Definition at line 453 of file ShapeSetInfo_impl.cpp.
void ShapeSetInfo_impl::setTriangleMesh | ( | ShapeInfo & | shapeInfo, |
VrmlIndexedFaceSet * | triangleMesh | ||
) | [private] |
Definition at line 245 of file ShapeSetInfo_impl.cpp.
ShapeInfoSequence * ShapeSetInfo_impl::shapes | ( | ) | [virtual] |
Definition at line 87 of file ShapeSetInfo_impl.cpp.
TextureInfoSequence * ShapeSetInfo_impl::textures | ( | ) | [virtual] |
Definition at line 105 of file ShapeSetInfo_impl.cpp.
virtual const std::string& ShapeSetInfo_impl::topUrl | ( | ) | [protected, pure virtual] |
Implemented in BodyInfoCollada_impl, BodyInfo_impl, and SceneInfo_impl.
void ShapeSetInfo_impl::traverseShapeNodes | ( | VrmlNode * | node, |
const Matrix44 & | T, | ||
TransformedShapeIndexSequence & | io_shapeIndices, | ||
DblArray12Sequence & | inlinedShapeM, | ||
const SFString * | url = NULL |
||
) | [protected] |
Definition at line 124 of file ShapeSetInfo_impl.cpp.
friend class BodyInfo_impl [friend] |
Definition at line 92 of file ShapeSetInfo_impl.h.
friend class SceneInfo_impl [friend] |
Definition at line 93 of file ShapeSetInfo_impl.h.
AppearanceInfoSequence ShapeSetInfo_impl::appearances_ [private] |
Definition at line 64 of file ShapeSetInfo_impl.h.
std::map<std::string, time_t> ShapeSetInfo_impl::fileTimeMap [private] |
Reimplemented in BodyInfoCollada_impl.
Definition at line 77 of file ShapeSetInfo_impl.h.
MaterialInfoSequence ShapeSetInfo_impl::materials_ [private] |
Definition at line 65 of file ShapeSetInfo_impl.h.
AppearanceInfoSequence ShapeSetInfo_impl::originAppearances_ [private] |
Definition at line 69 of file ShapeSetInfo_impl.h.
MaterialInfoSequence ShapeSetInfo_impl::originMaterials_ [private] |
Definition at line 70 of file ShapeSetInfo_impl.h.
ShapeInfoSequence ShapeSetInfo_impl::originShapes_ [private] |
Definition at line 68 of file ShapeSetInfo_impl.h.
PortableServer::POA_var ShapeSetInfo_impl::poa [private] |
Definition at line 61 of file ShapeSetInfo_impl.h.
bool ShapeSetInfo_impl::readImage [protected] |
Definition at line 57 of file ShapeSetInfo_impl.h.
Definition at line 75 of file ShapeSetInfo_impl.h.
ShapeInfoSequence ShapeSetInfo_impl::shapes_ [private] |
Definition at line 63 of file ShapeSetInfo_impl.h.
TextureInfoSequence ShapeSetInfo_impl::textures_ [private] |
Definition at line 66 of file ShapeSetInfo_impl.h.
Definition at line 72 of file ShapeSetInfo_impl.h.