##

ColladaExporter.hh
Go to the documentation of this file.
/*
* Copyright (C) 2012 Open Source Robotics Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
#ifndef _GAZEBO_COLLADAEXPORTER_HH_
#define _GAZEBO_COLLADAEXPORTER_HH_
#include <map>
#include <string>
#include <vector>
#include "gazebo/common/MeshExporter.hh"
#include "gazebo/util/system.hh"
class TiXmlElement;
namespace gazebo
{
namespace common
{
class Material;
class ColladaExporterPrivate;
class GZ_COMMON_VISIBLE ColladaExporter : public MeshExporter
{
public: enum GeometryType {POSITION, NORMAL, UVMAP};
public: ColladaExporter();
public: virtual ~ColladaExporter();
public: virtual void Export(const Mesh *_mesh,
const std::string &_filename, bool _exportTextures);
private: void ExportAsset(TiXmlElement *_assetXml);
private: void ExportGeometrySource(
const gazebo::common::SubMesh *_subMesh,
TiXmlElement *_meshXml, GeometryType _type, const char *_meshID);
private: void ExportGeometries(TiXmlElement *_libraryGeometriesXml);
private: int ExportImages(TiXmlElement *_libraryImagesXml);
private: void ExportMaterials(TiXmlElement *_libraryMaterialsXml);
private: void ExportEffects(TiXmlElement *_libraryEffectsXml);
private: void ExportVisualScenes(TiXmlElement *_libraryVisualScenesXml);
private: void ExportScene(TiXmlElement *_sceneXml);
private: ColladaExporterPrivate *dataPtr;
};
}
}
#endif
gazebo
Forward declarations for the common classes.
Definition: Animation.hh:26
gazebo::common::ColladaExporter::POSITION
Definition: ColladaExporter.hh:45
MeshExporter.hh
common
common
Definition: FuelModelDatabase.hh:37
gazebo::common::ColladaExporter
Class used to export Collada mesh files.
Definition: ColladaExporter.hh:42
system.hh
gazebo::common::SubMesh
A child mesh.
Definition: Mesh.hh:214
gazebo::common::ColladaExporter::~ColladaExporter
virtual ~ColladaExporter()
Destructor.
gazebo::common::ColladaExporter::ColladaExporter
ColladaExporter()
Constructor.
gazebo::common::ColladaExporter::UVMAP
Definition: ColladaExporter.hh:45
gazebo::common::ColladaExporter::GeometryType
GeometryType
Geometry types.
Definition: ColladaExporter.hh:45
gazebo::common::Mesh
A 3D mesh.
Definition: Mesh.hh:42
gazebo::common::MeshExporter
Base class for exporting meshes.
Definition: MeshExporter.hh:34
gazebo::common::ColladaExporter::NORMAL
Definition: ColladaExporter.hh:45
gazebo::common::ColladaExporter::Export
virtual void Export(const Mesh *_mesh, const std::string &_filename, bool _exportTextures)
Export a mesh to a file.