Choreonoid  1.8
Public Member Functions | Public Attributes | List of all members
cnoid::ImageConverter Class Reference

#include <ImageConverter.h>

Public Member Functions

 ImageConverter (void)
 
 ~ImageConverter (void)
 
CNOID_EXPORT SFImageconvert (const std::string &url)
 convert ImageTexture node to PixelTexture node More...
 

Public Attributes

SFImageimage
 
std::string message
 

Constructor & Destructor Documentation

◆ ImageConverter()

ImageConverter::ImageConverter ( void  )

◆ ~ImageConverter()

ImageConverter::~ImageConverter ( void  )

Member Function Documentation

◆ convert()

SFImage * ImageConverter::convert ( const std::string &  url)

convert ImageTexture node to PixelTexture node

Note
read image data from VrmlImageTexture::url and store pixel data to VrmlPixelTexture::image. .png and *.jpg are supported. Currentry, multi url is not supported.
Returns
bool true : succeeded / false : failed

Member Data Documentation

◆ image

SFImage* cnoid::ImageConverter::image

◆ message

std::string cnoid::ImageConverter::message

The documentation for this class was generated from the following files: