Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Private Types | Private Member Functions | Private Attributes | Friends | List of all members
ShapeSetInfo_impl Class Referenceabstract

#include <ShapeSetInfo_impl.h>

Inheritance diagram for ShapeSetInfo_impl:
Inheritance graph
[legend]

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, intShapeNodeToShapeInfoIndexMap
 

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
 

Detailed Description

Definition at line 30 of file ShapeSetInfo_impl.h.

Member Typedef Documentation

Definition at line 74 of file ShapeSetInfo_impl.h.

Constructor & Destructor Documentation

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.

Member Function Documentation

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
Returns
the index of a created AppearanceInfo object. The return value is -1 if the creation fails.

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
Returns
the index of a created ShapeInfo object. The return value is -1 if the creation fails.

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)
staticprotected

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

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

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 ( )
protectedpure virtual
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.

Friends And Related Function Documentation

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.

Member Data Documentation

AppearanceInfoSequence ShapeSetInfo_impl::appearances_
private

Definition at line 64 of file ShapeSetInfo_impl.h.

std::map<std::string, time_t> ShapeSetInfo_impl::fileTimeMap
private

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.

ShapeNodeToShapeInfoIndexMap ShapeSetInfo_impl::shapeInfoIndexMap
private

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.

TriangleMeshShaper ShapeSetInfo_impl::triangleMeshShaper
private

Definition at line 72 of file ShapeSetInfo_impl.h.


The documentation for this class was generated from the following files:


openhrp3
Author(s): AIST, General Robotix Inc., Nakamura Lab of Dept. of Mechano Informatics at University of Tokyo
autogenerated on Sat May 8 2021 02:42:43