6 #ifndef CNOID_UTIL_VRML_WRITER_H 7 #define CNOID_UTIL_VRML_WRITER_H 24 spaces.resize(
n,
' ');
return *
this;
32 return out << indent.
spaces;
46 return out << v[0] <<
" " << v[1];
51 return out << v[0] <<
" " << v[1] <<
" " << v[2];
56 return out << v[0] <<
" " << v[1] <<
" " << v[2];
62 return out << a[0] <<
" " << a[1] <<
" " << a[2] <<
" " << v.angle();
73 this->ofname = ofname;
84 void registerNodeMethodMap();
88 template <
class MFValues>
void writeMFValues(MFValues values,
int numColumn) {
89 out << ++indent <<
"[\n";
93 int n = values.size();
94 for(
int i=0; i <
n; i++){
95 out << values[i] <<
" ";
105 out << --indent <<
"]\n";
108 void writeMFInt32SeparatedByMinusValue(
MFInt32& values);
110 void beginNode(
const char* nodename,
VRMLNodePtr node);
117 std::string abstorel(std::string& fname);
Eigen::Vector3d SFVec3f
Definition: VRML.h:36
CNOID_EXPORT std::ostream & operator<<(std::ostream &os, const BoundingBox &bb)
Definition: BoundingBox.cpp:153
Eigen::Vector2d SFVec2f
Definition: VRML.h:34
std::string spaces
Definition: VRMLWriter.h:26
void setOutFileName(const std::string &ofname)
Definition: VRMLWriter.h:72
boost::intrusive_ptr< VRMLAppearance > VRMLAppearancePtr
Definition: VRML.h:268
int n
Definition: VRMLWriter.h:27
Eigen::Vector3f SFColor
Definition: VRML.h:38
std::vector< SFInt32 > MFInt32
Definition: VRML.h:48
Definition: VRMLWriter.h:67
Eigen::AngleAxisd SFRotation
Definition: VRML.h:39
TIndent indent
Definition: VRMLWriter.h:82
void(VRMLWriter::* VRMLWriterNodeMethod)(VRMLNodePtr node)
Definition: VRMLWriter.h:65
boost::intrusive_ptr< VRMLNode > VRMLNodePtr
Definition: VRML.h:132
TIndent & operator--()
Definition: VRMLWriter.h:21
void clear()
Definition: VRMLWriter.h:19
boost::intrusive_ptr< VRMLGroup > VRMLGroupPtr
Definition: VRML.h:229
Defines the minimum processing for performing pasing file for STL.
Definition: AbstractSceneLoader.h:9
const char * boolstr(bool v)
Definition: VRMLWriter.h:35
Definition: VRMLWriter.h:18
TIndent & operator++()
Definition: VRMLWriter.h:20
std::ostream & out
Definition: VRMLWriter.h:79
boost::intrusive_ptr< VRMLCoordinate > VRMLCoordinatePtr
Definition: VRML.h:449
Eigen::Vector3d Vector3
Definition: EigenTypes.h:58
#define CNOID_EXPORT
Definition: Util/exportdecl.h:37
boost::intrusive_ptr< VRMLMaterial > VRMLMaterialPtr
Definition: VRML.h:286
void writeMFValues(MFValues values, int numColumn)
Definition: VRMLWriter.h:88
std::string ofname
Definition: VRMLWriter.h:80