|
LightWrap++
AC++wrapperfortheLightWave3DSDK
|
#include <image.h>
Inheritance diagram for lwpp::ImageUtil:
Collaboration diagram for lwpp::ImageUtil:Public Member Functions | |
| ImageUtil (LWPixmapID _pixmap=0) | |
| ImageUtil (int w, int h, LWImageType type) | |
| Optional Constructor. | |
| ImageUtil (const ImageUtil &iu) | |
| ~ImageUtil () | |
| Destroys associated pixmap as well. | |
| void | create (int w, int h, LWImageType type) |
| int | findSaver (std::string name) |
| int | getAttr (LWImageParam tag, void *data) |
| int | getIndex8Map (LWPixelRGB24 *map) |
| void | getInfo (int *w, int *h, int *type) |
| Get information about the current pixmap. | |
| int | getMakerNote (LWMakerNote tag, void *data) |
| void | getPixel (int x, int y, void *pix) |
| Get a pixel from the pixmap. | |
| void | getPixelTyped (int x, int y, int type, void *pix) |
| std::string | getSaverExtension (int n) |
| const char * | GetSelectedName () |
| size_t | GetStride () |
| Returns the specific stride size in bytes for a pixel type. | |
| bool | isValid () |
| check if we have a valid pixmap | |
| virtual LWError | Load (const LoadState &ls) |
| Load data from a LWLoadState. | |
| ImageUtil & | operator= (const ImageUtil &iu) |
| LWPixmapID | resample (int w, int h, int mode) |
| virtual LWError | Save (const SaveState &ss) |
| Save data to a LWSaveState. | |
| void | save (int saver, const std::string name) |
| Save the current pixmap. | |
| void | setDestroy (bool destroy=true) |
| void | setPixel (int x, int y, void *pix) |
| Set a pixel in the pixmap. | |
| void | setPixelTyped (int x, int y, int type, void *pix) |
Static Public Member Functions | |
| static void | getInfo (LWPixmapID id, int *w, int *h, int *type) |
| static size_t | GetStride (int type) |
| Returns the specific stride size in bytes for a pixel type. | |
| static int | PopCount (void *inst) |
| PopCount callback for LightWave. | |
| static const char * | PopName (void *inst, int n) |
| PopUpName name callback for LightWave. | |
| static int | saverCount (void) |
| return the amount of savers | |
| static const char * | saverName (int n) |
| return the name of saver n | |
Protected Member Functions | |
| bool | _acquireGlobal () |
| virtual bool | available () const |
| Check if the global is available. | |
| virtual LWImageUtil * | getGlobal () |
| Get the pointer to the global. | |
| LWImageUtil * | operator-> () |
| Get the pointer to the global. | |
| virtual size_t | popCount (void) |
| Actual worker function to be supplied by the deriving class. | |
| virtual const char * | popName (int n) |
| Actual worker function to be supplied by the deriving class. | |
Protected Attributes | |
| int | index |
Static Protected Attributes | |
| static LWImageUtil * | globPtr |
| Pointer to the global functions. | |
Wrapper for LWImageUtil
|
inline |
|
inline |
Optional Constructor.
| w | Width of the pixmap |
| h | Height of the pixmap |
| type | LWImageType of the pixmap |
|
inline |
Destroys associated pixmap as well.
|
inline |
|
inlineprotectedinherited |
|
inlinevirtualinherited |
Check if the global is available.
|
inline |
| int lwpp::ImageUtil::findSaver | ( | std::string | name | ) |
|
inline |
|
inlinevirtualinherited |
Get the pointer to the global.
|
inline |
|
inline |
Get information about the current pixmap.
| *w | Width |
| *h | Height |
| *type | Type of Bitmap |
|
inlinestatic |
|
inline |
|
inline |
Get a pixel from the pixmap.
| x | X coordinate |
| y | Y coordinate |
| *pix | Pointer for pixel storage, depends on the LWImageType of the pixmap |
|
inline |
| std::string lwpp::ImageUtil::getSaverExtension | ( | int | n | ) |
|
inlineinherited |
|
static |
Returns the specific stride size in bytes for a pixel type.
|
inline |
Returns the specific stride size in bytes for a pixel type.
|
inline |
check if we have a valid pixmap
|
inlinevirtualinherited |
Load data from a LWLoadState.
| *ls | LWLoadState to load from |
Reimplemented in lwpp::LWItem, lwpp::FileName, lwpp::Image, lwpp::ColourManager, lwpp::NodeEditor, and lwpp::VParm.
|
inlineinherited |
Get the pointer to the global.
|
inlinestaticinherited |
PopCount callback for LightWave.
|
inlineprotectedvirtual |
Actual worker function to be supplied by the deriving class.
Implements lwpp::PopUpCallback.
|
inlinestaticinherited |
PopUpName name callback for LightWave.
|
inlineprotectedvirtual |
Actual worker function to be supplied by the deriving class.
| n | A item index |
Implements lwpp::PopUpCallback.
|
inline |
|
inlinevirtualinherited |
Save data to a LWSaveState.
| *ss | LWSaveState to save to |
Reimplemented in lwpp::LWItem, lwpp::FileName, lwpp::Image, lwpp::ColourManager, lwpp::NodeEditor, and lwpp::VParm.
|
inline |
Save the current pixmap.
|
inlinestatic |
return the amount of savers
|
inlinestatic |
return the name of saver n
| n | Index of the saver to be queried |
|
inline |
|
inline |
Set a pixel in the pixmap.
| x | X coordinate |
| y | Y coordinate |
| *pix | Pointer to the pixel, depends on the LWImageType of the pixmap |
|
inline |
|
staticprotectedinherited |
Pointer to the global functions.
|
protectedinherited |