table of contents
other versions
- wheezy-backports 3.1.4~abc9f50-3~bpo70+1
- jessie 3.1.4~abc9f50-7
SoSFImage3(3) | Coin | SoSFImage3(3) |
NAME¶
SoSFImage3 - The SoSFImage3 class is used to store 3D (volume) images. The SoSFImage3 class provides storage for inline 3D image maps. 3D images in Coin are mainly used for 3D texture mapping support.SYNOPSIS¶
#include <Inventor/fields/SoSFImage3.h> Inherits SoSField.Public Member Functions¶
virtual SoType getTypeId (void) const
Static Public Member Functions¶
static void * createInstance (void)
Additional Inherited Members¶
Detailed Description¶
The SoSFImage3 class is used to store 3D (volume) images. The SoSFImage3 class provides storage for inline 3D image maps. 3D images in Coin are mainly used for 3D texture mapping support.FIELDNAME X Y Z C 0xRRGGBBAA 0xRRGGBBAA ...For 3-component images, the pixel-format is 0xXXRRGGBB, where the byte in the pixel color value marked as 'XX' is ignored and can be left out. For 2-component images, the pixel-format is 0xXXXXGGAA, where the bytes in the pixel color values marked as 'XX' are ignored and can be left out. 'GG' is the part which gives a grayscale value and 'AA' is for opacity. For 1-component images, the pixel-format is 0xXXXXXXGG, where the bytes in the pixel color values marked as 'XX' are ignored and can be left out. The pixels are read as being ordered in rows along X (width), columns along Y (height, bottom to top) and Z 'planes' (depth, front to back). Here's a simple example of the file format serialization, for a 2x2x2 RGB-image inside an SoTexture3 node:
Texture3 { images 2 2 2 3 0x000000 0x00ff00 0xff0000 0xffff00 0x000000 0x0000ff 0x00ff00 0x00ffff }The image above is colored black+green on the first line and red+yellow on the second line in the first Z plane. The second Z plane is colored black+blue on the first line and green+cyan on the second line. Be aware that this class is an extension for Coin, and it is not available in the original SGI Open Inventor v2.1 API. See Also:
SoTexture3, SoSFImage
Since:
Coin 2.0
TGS Inventor 2.6
Member Function Documentation¶
SoType SoSFImage3::getClassTypeId (void) [static]¶
Returns a unique type identifier for this field class. See Also:getTypeId(), SoType
SoType SoSFImage3::getTypeId (void) const [virtual]¶
Returns the type identification instance which uniquely identifies the Coin field class the object belongs to. See Also:getClassTypeId(), SoType
void SoSFImage3::copyFrom (const SoField &f) [virtual]¶
Copy value(s) from f into this field. f must be of the same type as this field. Implements SoField.SbBool SoSFImage3::isSame (const SoField &f) const [virtual]¶
Check for equal type and value(s). Implements SoField.void SoSFImage3::initClass (void) [static]¶
Internal method called upon initialization of the library (from SoDB::init()) to set up the type system. Reimplemented from SoSField.const unsigned char * SoSFImage3::getValue (SbVec3s &size, int &nc) const¶
Return pixel buffer, set size to contain the image dimensions and nc to the number of components in the image.void SoSFImage3::setValue (const SbVec3s &size, const intnc, const unsigned char *bytes)¶
Initialize this field to size and nc. If bytes is not NULL, the image data is copied from bytes into this field. If bytes is NULL, the image data is cleared by setting all bytes to 0 (note that the behavior on passing a NULL pointer is specific for Coin, Open Inventor will crash if you try it).int SoSFImage3::operator== (const SoSFImage3 &field) const¶
Compare image of field with the image in this field and return TRUE if they are equal.int SoSFImage3::operator!= (const SoSFImage3 &field) const [inline]¶
Compare image of field with the image in this field and return FALSE if they are equal.unsigned char * SoSFImage3::startEditing (SbVec3s &size, int &nc)¶
Return pixel buffer, set size to contain the image dimensions and nc to the number of components in the image. The field's container will not be notified about the changes until you call finishEditing().void SoSFImage3::finishEditing (void)¶
Notify the field's auditors that the image data has been modified.Author¶
Generated automatically by Doxygen for Coin from the source code.Sat Oct 12 2013 | Version 4.0.0a |