1#ifndef COIN_SOSFIMAGE_H
2#define COIN_SOSFIMAGE_H
27#include <Inventor/fields/SoSField.h>
28#include <Inventor/fields/SoSubField.h>
29#include <Inventor/SbVec2s.h>
47 static void initClass(
void);
49 const unsigned char * getValue(
SbVec2s & size,
int & nc)
const;
50 const SbImage & getValue()
const;
52 void setValue(
const SbVec2s & size,
const int nc,
53 const unsigned char * pixels, CopyPolicy copypolicy = COPY);
58 unsigned char * startEditing(
SbVec2s & size,
int & nc);
59 void finishEditing(
void);
61 void setSubValue(
const SbVec2s & dims,
const SbVec2s & offset,
unsigned char * pixels);
62 void setSubValues(
const SbVec2s * dims,
const SbVec2s * offsets,
int num,
unsigned char ** pixelblocks);
63 unsigned char * getSubTexture(
int idx,
SbVec2s & dims,
SbVec2s & offset)
const;
64 SbBool hasSubTextures(
int & numsubtextures);
66 void setNeverWrite(SbBool flag);
67 SbBool isNeverWrite(
void)
const;
69 SbBool hasTransparency(
void)
const;
75 class SoSFImageP * pimpl;
The SbImage class is an abstract datatype for 2D and 3D images.
Definition SbImage.h:37
The SbVec2s class is a 2 dimensional vector with short integer coordinates.
Definition SbVec2s.h:41
virtual SbBool readValue(SoInput *in)=0
int operator==(const SoField &f) const
Definition SoField.cpp:1573
virtual void writeValue(SoOutput *out) const =0
The SoOutput class is an abstraction of an output stream.
Definition SoOutput.h:42
The SoSFImage class is used to store pixel images.
Definition SoSFImage.h:33
int operator!=(const SoSFImage &field) const
Definition SoSFImage.h:56
The SoSField class is the base class for fields which contains only a single value.
Definition SoSField.h:29
Copyright © 1998-2010 by Kongsberg Oil & Gas Technologies. All rights reserved.
Generated on Wed Jul 17 2024 for Coin by Doxygen 1.12.0.