Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026 #include "X3DsurfaceFormatCore.H"
00027 #include <OpenFOAM/clock.H>
00028
00029
00030
00031 void Foam::fileFormats::X3DsurfaceFormatCore::writeHeader
00032 (
00033 Ostream& os
00034 )
00035 {
00036 os <<
00037 "<?xml version='1.0' encoding='UTF-8'?>\n"
00038 "<!DOCTYPE X3D PUBLIC \"ISO//Web3D//DTD X3D 3.0//EN\" \"http://www.web3d.org/specifications/x3d-3.0.dtd\">\n"
00039 "<X3D\n"
00040 " version='3.0'\n"
00041 " profile='Immersive'\n"
00042 " xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance'\n"
00043 " xsd:noNamespaceSchemaLocation='http://www.web3d.org/specifications/x3d-3.0.xsd'\n"
00044 " >\n";
00045 }
00046
00047
00048 void Foam::fileFormats::X3DsurfaceFormatCore::writeAppearance
00049 (
00050 Ostream& os
00051 )
00052 {
00053 os <<
00054 " <Appearance>\n"
00055 " <Material"
00056 " diffuseColor='0.8 0.8 0.8'"
00057 " specularColor='1.0 1.0 1.0'"
00058 " shininess='0.5'"
00059 " transparency='0.0'"
00060 " />\n"
00061 " </Appearance>\n";
00062 }
00063
00064
00065