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

◆ ShapeNodeToShapeInfoIndexMap

Definition at line 74 of file ShapeSetInfo_impl.h.

Constructor & Destructor Documentation

◆ ShapeSetInfo_impl()

ShapeSetInfo_impl::ShapeSetInfo_impl ( PortableServer::POA_ptr  poa)

Definition at line 36 of file ShapeSetInfo_impl.cpp.

◆ ~ShapeSetInfo_impl()

ShapeSetInfo_impl::~ShapeSetInfo_impl ( )
virtual

Definition at line 44 of file ShapeSetInfo_impl.cpp.

Member Function Documentation

◆ _default_POA()

PortableServer::POA_ptr ShapeSetInfo_impl::_default_POA ( )
virtual

Definition at line 50 of file ShapeSetInfo_impl.cpp.

◆ appearances()

AppearanceInfoSequence * ShapeSetInfo_impl::appearances ( )
virtual

Definition at line 93 of file ShapeSetInfo_impl.cpp.

◆ applyTriangleMeshShaper()

void ShapeSetInfo_impl::applyTriangleMeshShaper ( VrmlNodePtr  node)
protected

Definition at line 56 of file ShapeSetInfo_impl.cpp.

◆ checkFileUpdateTime()

bool ShapeSetInfo_impl::checkFileUpdateTime ( )
protected

Definition at line 738 of file ShapeSetInfo_impl.cpp.

◆ createAppearanceInfo() [1/2]

void ShapeSetInfo_impl::createAppearanceInfo ( )
protected

Definition at line 705 of file ShapeSetInfo_impl.cpp.

◆ createAppearanceInfo() [2/2]

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.

◆ createMaterialInfo()

int ShapeSetInfo_impl::createMaterialInfo ( VrmlMaterialPtr materialNode)
private

Definition at line 515 of file ShapeSetInfo_impl.cpp.

◆ createShapeInfo()

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.

◆ createTextureInfo()

int ShapeSetInfo_impl::createTextureInfo ( VrmlTexturePtr textureNode,
const SFString currentUrl 
)
private

Definition at line 552 of file ShapeSetInfo_impl.cpp.

◆ createTextureTransformMatrix()

void ShapeSetInfo_impl::createTextureTransformMatrix ( AppearanceInfo &  appInfo,
VrmlTextureTransformPtr textureTransform 
)
private

Definition at line 480 of file ShapeSetInfo_impl.cpp.

◆ getModelFileDirPath()

std::string ShapeSetInfo_impl::getModelFileDirPath ( const std::string &  url)
private

Definition at line 616 of file ShapeSetInfo_impl.cpp.

◆ materials()

MaterialInfoSequence * ShapeSetInfo_impl::materials ( )
virtual

Definition at line 99 of file ShapeSetInfo_impl.cpp.

◆ putMessage()

void ShapeSetInfo_impl::putMessage ( const std::string &  message)
staticprotected

Definition at line 62 of file ShapeSetInfo_impl.cpp.

◆ replace()

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.

◆ restoreOriginalData()

void ShapeSetInfo_impl::restoreOriginalData ( )
protected

Definition at line 732 of file ShapeSetInfo_impl.cpp.

◆ saveOriginalData()

void ShapeSetInfo_impl::saveOriginalData ( )
protected

Definition at line 675 of file ShapeSetInfo_impl.cpp.

◆ setBoundingBoxData()

void ShapeSetInfo_impl::setBoundingBoxData ( const Vector3 boxSize,
int  shapeIndex 
)
protected

Definition at line 681 of file ShapeSetInfo_impl.cpp.

◆ setColdetModel()

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.

◆ setColdetModelTriangles()

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.

◆ setColors()

void ShapeSetInfo_impl::setColors ( AppearanceInfo &  appInfo,
VrmlIndexedFaceSet triangleMesh 
)
private

Definition at line 378 of file ShapeSetInfo_impl.cpp.

◆ setNormals()

void ShapeSetInfo_impl::setNormals ( AppearanceInfo &  appInfo,
VrmlIndexedFaceSet triangleMesh 
)
private

Definition at line 416 of file ShapeSetInfo_impl.cpp.

◆ setPrimitiveProperties()

void ShapeSetInfo_impl::setPrimitiveProperties ( ShapeInfo &  shapeInfo,
VrmlShape shapeNode 
)
private

Definition at line 274 of file ShapeSetInfo_impl.cpp.

◆ setTexCoords()

void ShapeSetInfo_impl::setTexCoords ( AppearanceInfo &  appInfo,
VrmlIndexedFaceSet triangleMesh 
)
private

Definition at line 453 of file ShapeSetInfo_impl.cpp.

◆ setTriangleMesh()

void ShapeSetInfo_impl::setTriangleMesh ( ShapeInfo &  shapeInfo,
VrmlIndexedFaceSet triangleMesh 
)
private

Definition at line 245 of file ShapeSetInfo_impl.cpp.

◆ shapes()

ShapeInfoSequence * ShapeSetInfo_impl::shapes ( )
virtual

Definition at line 87 of file ShapeSetInfo_impl.cpp.

◆ textures()

TextureInfoSequence * ShapeSetInfo_impl::textures ( )
virtual

Definition at line 105 of file ShapeSetInfo_impl.cpp.

◆ topUrl()

virtual const std::string& ShapeSetInfo_impl::topUrl ( )
protectedpure virtual

◆ traverseShapeNodes()

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

◆ BodyInfo_impl

friend class BodyInfo_impl
friend

Definition at line 92 of file ShapeSetInfo_impl.h.

◆ SceneInfo_impl

friend class SceneInfo_impl
friend

Definition at line 93 of file ShapeSetInfo_impl.h.

Member Data Documentation

◆ appearances_

AppearanceInfoSequence ShapeSetInfo_impl::appearances_
private

Definition at line 64 of file ShapeSetInfo_impl.h.

◆ fileTimeMap

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

Definition at line 77 of file ShapeSetInfo_impl.h.

◆ materials_

MaterialInfoSequence ShapeSetInfo_impl::materials_
private

Definition at line 65 of file ShapeSetInfo_impl.h.

◆ originAppearances_

AppearanceInfoSequence ShapeSetInfo_impl::originAppearances_
private

Definition at line 69 of file ShapeSetInfo_impl.h.

◆ originMaterials_

MaterialInfoSequence ShapeSetInfo_impl::originMaterials_
private

Definition at line 70 of file ShapeSetInfo_impl.h.

◆ originShapes_

ShapeInfoSequence ShapeSetInfo_impl::originShapes_
private

Definition at line 68 of file ShapeSetInfo_impl.h.

◆ poa

PortableServer::POA_var ShapeSetInfo_impl::poa
private

Definition at line 61 of file ShapeSetInfo_impl.h.

◆ readImage

bool ShapeSetInfo_impl::readImage
protected

Definition at line 57 of file ShapeSetInfo_impl.h.

◆ shapeInfoIndexMap

ShapeNodeToShapeInfoIndexMap ShapeSetInfo_impl::shapeInfoIndexMap
private

Definition at line 75 of file ShapeSetInfo_impl.h.

◆ shapes_

ShapeInfoSequence ShapeSetInfo_impl::shapes_
private

Definition at line 63 of file ShapeSetInfo_impl.h.

◆ textures_

TextureInfoSequence ShapeSetInfo_impl::textures_
private

Definition at line 66 of file ShapeSetInfo_impl.h.

◆ triangleMeshShaper

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 Wed Sep 7 2022 02:51:05