Choreonoid  1.8
ImageConverter.h
Go to the documentation of this file.
1 
7 #ifndef CNOID_UTIL_IMAGECONVERTER_H
8 #define CNOID_UTIL_IMAGECONVERTER_H
9 
10 #include "VRML.h"
11 #include "exportdecl.h"
12 
13 namespace cnoid {
14 
16 {
17 private:
18  bool initializeSFImage();
19  bool loadPNG(const std::string & filePath);
20  bool loadJPEG(const std::string & filePath);
21 
22 public:
24  ImageConverter(void);
25  ~ImageConverter(void);
26  std::string message;
27 
28  CNOID_EXPORT SFImage* convert(const std::string& url);
29 };
30 
31 }
32 
33 #endif
cnoid::ImageConverter::image
SFImage * image
Definition: ImageConverter.h:23
cnoid::ImageConverter::convert
CNOID_EXPORT SFImage * convert(const std::string &url)
convert ImageTexture node to PixelTexture node
Definition: ImageConverter.cpp:58
cnoid::ImageConverter::ImageConverter
ImageConverter(void)
Definition: ImageConverter.cpp:22
VRML.h
cnoid
Definition: AbstractSceneLoader.h:11
cnoid::SFImage
Definition: VRML.h:41
cnoid::ImageConverter::message
std::string message
Definition: ImageConverter.h:26
cnoid::ImageConverter
Definition: ImageConverter.h:15
cnoid::ImageConverter::~ImageConverter
~ImageConverter(void)
Definition: ImageConverter.cpp:28