Public Member Functions | Public Attributes | Private Member Functions
hrp::ImageConverter Class Reference

#include <ImageConverter.h>

List of all members.

Public Member Functions

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

Public Attributes

SFImageimage

Private Member Functions

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

Detailed Description

Definition at line 19 of file ImageConverter.h.


Constructor & Destructor Documentation

Definition at line 28 of file ImageConverter.h.

virtual hrp::ImageConverter::~ImageConverter ( void  ) [inline, virtual]

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.

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

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 Sun Apr 2 2017 03:44:01