Logo Search packages:      
Sourcecode: blender version File versions

IMG_Pixmap Class Reference

#include <IMG_Pixmap.h>

Inheritance diagram for IMG_Pixmap:

IMG_PixmapRGBA32 IMG_PixmapRGBA32 IMG_BrushRGBA32 IMG_CanvasRGBA32 IMG_BrushRGBA32 IMG_CanvasRGBA32

List of all members.


Detailed Description

Id
IMG_Pixmap.h,v 1.6 2002/12/26 18:25:14 mein Exp
***** BEGIN GPL/BL DUAL LICENSE BLOCK *****

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. The Blender Foundation also sells licenses for use in proprietary software under the Blender License. See http://www.blender.org/BL/ for information about this.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

The Original Code is Copyright (C) 2001-2002 by NaN Holding BV. All rights reserved.

The Original Code is: all of this file.

Contributor(s): none yet.

***** END GPL/BL DUAL LICENSE BLOCK *****

Id
IMG_Pixmap.h,v 1.6 2002/12/26 18:25:14 mein Exp
Copyright (C) 2001 NaN Technologies B.V. Abstract base class for pixmaps of different types.
Author:
Maarten Gribnau
Date:
March 6, 2001
Id
IMG_Pixmap.h,v 1.5 2002/12/27 13:10:19 mein Exp

***** BEGIN GPL/BL DUAL LICENSE BLOCK *****

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. The Blender Foundation also sells licenses for use in proprietary software under the Blender License. See http://www.blender.org/BL/ for information about this.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

The Original Code is Copyright (C) 2001-2002 by NaN Holding BV. All rights reserved.

The Original Code is: all of this file.

Contributor(s): none yet.

***** END GPL/BL DUAL LICENSE BLOCK *****

Author:
Maarten Gribnau
Date:
March 6, 2001 Base class for pixmaps. Here a more elaborate description of the IMG_Pixmap class should be written.
Author:
Maarten Gribnau
Date:
March 6, 2001

Definition at line 48 of file IMG_Pixmap.h.


Public Types

enum  PixelType { kPixelTypeRGB32 = 0, kPixelTypeRGBA32 = 2, kPixelTypeRGB24 = 5 }
enum  TPixelType { kPixelTypeUnknown = 0, kPixelTypeRGBA32 = 2 }

Public Member Functions

void clamp (float &u, float &v) const
void clamp (GEN_TInt32 &x, GEN_TInt32 &y) const
void clampUV (float &u, float &v) const
virtual void fillRect (const IMG_Rect &r, const IMG_ColorRGBA &c)=0
void getBounds (IMG_Rect &r) const
void getBounds (GEN_Rect &r) const
virtual void * getDataPtr () const =0
TUns32 getHeight () const
GEN_TUns32 getHeight () const
void * getImage () const
void getPixelAddress (float u, float v, TUns32 &x, TUns32 &y) const
void getPixelAddress (float u, float v, GEN_TInt32 &x, GEN_TInt32 &y) const
PixelType getPixelType () const
TPixelType getPixelType () const
TUns32 getWidth () const
GEN_TUns32 getWidth () const
 IMG_Pixmap ()
 IMG_Pixmap (GEN_TUns32 width, GEN_TUns32 height)
 IMG_Pixmap ()
virtual ~IMG_Pixmap ()
virtual ~IMG_Pixmap ()

Protected Attributes

TUns32 m_height
GEN_TUns32 m_height
void * m_image
TUns32 m_pixelSize
GEN_TUns32 m_pixelSize
PixelType m_pixelType
TPixelType m_pixelType
TUns32 m_rowBytes
GEN_TUns32 m_rowBytes
TUns32 m_width
GEN_TUns32 m_width

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

Generated by  Doxygen 1.6.0   Back to index