Public Member Functions | Public Attributes | Private Member Functions | List of all members
hrp::ImageConverter Class Reference

#include <ImageConverter.h>

Public Member Functions

HRP_UTIL_EXPORT SFImageconvert (string url)
 convert ImageTexture node to PixelTexture node More...
 
 ImageConverter (void)
 
virtual ~ImageConverter (void)
 

Public Attributes

SFImageimage
 

Private Member Functions

bool initializeSFImage ()
 initialize "SFImage" More...
 
bool loadJPEG (string &filePath)
 load JPEG file More...
 
bool loadPNG (string &filePath)
 load PNG file More...
 

Detailed Description

Definition at line 19 of file ImageConverter.h.

Constructor & Destructor Documentation

hrp::ImageConverter::ImageConverter ( void  )
inline

Definition at line 28 of file ImageConverter.h.

virtual hrp::ImageConverter::~ImageConverter ( void  )
inlinevirtual

Definition at line 31 of file ImageConverter.h.

Member Function Documentation

SFImage * ImageConverter::convert ( 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.
Date
2008-04-14 K.FUKUDA
Returns
bool true : succeeded / false : failed

Definition at line 60 of file ImageConverter.cpp.

bool ImageConverter::initializeSFImage ( )
private

initialize "SFImage"

Note
use before using "SFImage" structure
Date
2008-04-14 K.FUKUDA
Returns
bool true : succeeded / false : failed

Definition at line 34 of file ImageConverter.cpp.

bool ImageConverter::loadJPEG ( string &  filePath)
private

load JPEG file

Note
load and fill VrmlPixelTexture::image from JPEG.
Date
2008-04-17 K.FUKUDA
Returns
bool true : succeeded / false : failed

Definition at line 251 of file ImageConverter.cpp.

bool ImageConverter::loadPNG ( string &  filePath)
private

load PNG file

Note
load and fill VrmlPixelTexture::image from PNG.
Date
2008-04-14 K.FUKUDA
Returns
bool true : succeeded / false : failed

Definition at line 105 of file ImageConverter.cpp.

Member Data Documentation

SFImage* hrp::ImageConverter::image

Definition at line 27 of file ImageConverter.h.


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


openhrp3
Author(s): AIST, General Robotix Inc., Nakamura Lab of Dept. of Mechano Informatics at University of Tokyo
autogenerated on Sat May 8 2021 02:42:45