Choreonoid
1.8
src
Util
AbstractSceneWriter.h
Go to the documentation of this file.
1
#ifndef CNOID_UTIL_ABSTRACT_SCENE_WRITER_H
2
#define CNOID_UTIL_ABSTRACT_SCENE_WRITER_H
3
4
#include <string>
5
#include <ostream>
6
#include "exportdecl.h"
7
8
namespace
cnoid
{
9
10
class
SgNode;
11
class
SgImage;
12
13
class
CNOID_EXPORT
AbstractSceneWriter
14
{
15
public
:
16
virtual
~
AbstractSceneWriter
();
17
virtual
void
setMessageSink(std::ostream& os);
18
virtual
bool
writeScene(
const
std::string& filename,
SgNode
* node) = 0;
19
20
protected
:
21
bool
findOrCopyImageFile(
SgImage
* image,
const
std::string& outputBaseDir);
22
std::ostream&
os
(){
return
*os_; }
23
24
private
:
25
std::ostream* os_;
26
};
27
28
}
29
30
#endif
cnoid::SgImage
Definition:
SceneDrawables.h:66
cnoid::AbstractSceneWriter::os
std::ostream & os()
Definition:
AbstractSceneWriter.h:22
cnoid
Definition:
AbstractSceneLoader.h:11
cnoid::SgNode
Definition:
SceneGraph.h:157
cnoid::AbstractSceneWriter
Definition:
AbstractSceneWriter.h:13
Generated by
1.8.17