Classes | Public Member Functions | Private Types | Private Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes | List of all members
hrp::VrmlWriter Class Reference

#include <VrmlWriter.h>

Classes

struct  TIndent
 

Public Member Functions

 VrmlWriter (std::ostream &out)
 
void writeHeader ()
 
bool writeNode (VrmlNodePtr node)
 

Private Types

typedef std::map< std::string, VrmlWriterNodeMethodTNodeMethodMap
 
typedef std::pair< std::string, VrmlWriterNodeMethodTNodeMethodPair
 

Private Member Functions

void beginNode (const char *nodename, VrmlNodePtr node)
 
void endNode ()
 
void writeAppearanceNode (VrmlAppearancePtr appearance)
 
void writeCoordinateNode (VrmlCoordinatePtr coord)
 
void writeGroupFields (VrmlGroupPtr group)
 
void writeGroupNode (VrmlNodePtr node)
 
void writeIndexedFaceSetNode (VrmlNodePtr node)
 
void writeMaterialNode (VrmlMaterialPtr material)
 
void writeMFInt32SeparatedByMinusValue (MFInt32 &values)
 
template<class MFValues >
void writeMFValues (MFValues values, int numColumn)
 
void writeNodeIter (VrmlNodePtr node)
 
void writeShapeNode (VrmlNodePtr node)
 
void writeTransformNode (VrmlNodePtr node)
 

Static Private Member Functions

static VrmlWriterNodeMethod getNodeMethod (VrmlNodePtr node)
 
static void registerNodeMethodMap ()
 
static void registNodeMethod (const std::type_info &t, VrmlWriterNodeMethod method)
 

Private Attributes

TIndent indent
 
std::ostream & out
 

Static Private Attributes

static TNodeMethodMap nodeMethodMap
 

Detailed Description

Definition at line 32 of file hrplib/hrpUtil/VrmlWriter.h.

Member Typedef Documentation

typedef std::map<std::string, VrmlWriterNodeMethod> hrp::VrmlWriter::TNodeMethodMap
private

Definition at line 57 of file hrplib/hrpUtil/VrmlWriter.h.

typedef std::pair<std::string, VrmlWriterNodeMethod> hrp::VrmlWriter::TNodeMethodPair
private

Definition at line 58 of file hrplib/hrpUtil/VrmlWriter.h.

Constructor & Destructor Documentation

VrmlWriter::VrmlWriter ( std::ostream &  out)

Definition at line 90 of file hrplib/hrpUtil/VrmlWriter.cpp.

Member Function Documentation

void VrmlWriter::beginNode ( const char *  nodename,
VrmlNodePtr  node 
)
private

Definition at line 142 of file hrplib/hrpUtil/VrmlWriter.cpp.

void VrmlWriter::endNode ( )
private

Definition at line 154 of file hrplib/hrpUtil/VrmlWriter.cpp.

VrmlWriterNodeMethod VrmlWriter::getNodeMethod ( VrmlNodePtr  node)
staticprivate

Definition at line 108 of file hrplib/hrpUtil/VrmlWriter.cpp.

void VrmlWriter::registerNodeMethodMap ( )
staticprivate

Definition at line 99 of file hrplib/hrpUtil/VrmlWriter.cpp.

static void hrp::VrmlWriter::registNodeMethod ( const std::type_info &  t,
VrmlWriterNodeMethod  method 
)
inlinestaticprivate

Definition at line 62 of file hrplib/hrpUtil/VrmlWriter.h.

void VrmlWriter::writeAppearanceNode ( VrmlAppearancePtr  appearance)
private

Definition at line 232 of file hrplib/hrpUtil/VrmlWriter.cpp.

void VrmlWriter::writeCoordinateNode ( VrmlCoordinatePtr  coord)
private

Definition at line 288 of file hrplib/hrpUtil/VrmlWriter.cpp.

void VrmlWriter::writeGroupFields ( VrmlGroupPtr  group)
private

Definition at line 170 of file hrplib/hrpUtil/VrmlWriter.cpp.

void VrmlWriter::writeGroupNode ( VrmlNodePtr  node)
private

Definition at line 160 of file hrplib/hrpUtil/VrmlWriter.cpp.

void VrmlWriter::writeHeader ( )

Definition at line 118 of file hrplib/hrpUtil/VrmlWriter.cpp.

void VrmlWriter::writeIndexedFaceSetNode ( VrmlNodePtr  node)
private

Definition at line 262 of file hrplib/hrpUtil/VrmlWriter.cpp.

void VrmlWriter::writeMaterialNode ( VrmlMaterialPtr  material)
private

Definition at line 247 of file hrplib/hrpUtil/VrmlWriter.cpp.

void VrmlWriter::writeMFInt32SeparatedByMinusValue ( MFInt32 values)
private

Definition at line 68 of file hrplib/hrpUtil/VrmlWriter.cpp.

template<class MFValues >
void VrmlWriter::writeMFValues ( MFValues  values,
int  numColumn 
)
private

Definition at line 43 of file hrplib/hrpUtil/VrmlWriter.cpp.

bool VrmlWriter::writeNode ( VrmlNodePtr  node)

Definition at line 124 of file hrplib/hrpUtil/VrmlWriter.cpp.

void VrmlWriter::writeNodeIter ( VrmlNodePtr  node)
private

Definition at line 133 of file hrplib/hrpUtil/VrmlWriter.cpp.

void VrmlWriter::writeShapeNode ( VrmlNodePtr  node)
private

Definition at line 206 of file hrplib/hrpUtil/VrmlWriter.cpp.

void VrmlWriter::writeTransformNode ( VrmlNodePtr  node)
private

Definition at line 188 of file hrplib/hrpUtil/VrmlWriter.cpp.

Member Data Documentation

void VrmlWriter::indent
private

Definition at line 55 of file hrplib/hrpUtil/VrmlWriter.h.

VrmlWriter::TNodeMethodMap VrmlWriter::nodeMethodMap
staticprivate

Definition at line 60 of file hrplib/hrpUtil/VrmlWriter.h.

std::ostream& hrp::VrmlWriter::out
private

Definition at line 53 of file hrplib/hrpUtil/VrmlWriter.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:45