30 #ifndef __H3DIMAGEOBJECT_H__
31 #define __H3DIMAGEOBJECT_H__
55 x_max(-1), y_max( -1 ), z_min( -1 ), z_max( -1 ) {
68 int _max_x,
int _max_y,
int _max_z ) {
83 virtual void setPixel(
unsigned int x,
unsigned int y,
94 virtual void setPixel(
const Vec2f &tex_coord,
103 virtual void setPixel(
unsigned int x,
unsigned int y,
unsigned int z,
114 virtual void setPixel(
const Vec3f &tex_coord,
120 inline int xMin() {
return x_min; }
125 inline int yMin() {
return y_min; }
130 inline int zMin() {
return z_min; }
135 inline int xMax() {
return x_max; }
140 inline int yMax() {
return y_max; }
145 inline int zMax() {
return z_max; }
183 int x_min, y_min, x_max, y_max, z_min, z_max;
Header file for X3DAppearanceChildNode, X3D scene-graph node.
The SFImage field is a field containing an Image pointer.
Definition: H3DImageObject.h:50
int xMin()
Returns the minimum value in x that has been changed by the setPixel functions.
Definition: H3DImageObject.h:120
int changedDepth()
Returns the depth of the changed part of the image.
Definition: H3DImageObject.h:169
int changedHeight()
Returns the height of the changed part of the image.
Definition: H3DImageObject.h:165
void resetChanges()
Resets all variables that keep track of what part of the image has been updated.
Definition: H3DImageObject.h:177
int yOffset()
Returns the offset in y of the changed part of the image.
Definition: H3DImageObject.h:153
virtual void endEditing()
Call this function after doing editing to the image in order to send an event that editing has been d...
Definition: H3DImageObject.h:64
int changedWidth()
Returns the width of the changed part of the image.
Definition: H3DImageObject.h:161
virtual void beginEditing()
Call this function before doing any calls to any setPixel functions in order to record all the change...
Definition: H3DImageObject.h:60
virtual void setValueFromString(const string &s)
Set the value of the field given a string.
Definition: H3DImageObject.h:180
int zMin()
Returns the minimum value in z that has been changed by the setPixel functions.
Definition: H3DImageObject.h:130
void setEditedArea(int _min_x, int _min_y, int _min_z, int _max_x, int _max_y, int _max_z)
Set the volume that has been edited manually.
Definition: H3DImageObject.h:67
int yMax()
Returns the maximum value in y that has been changed by the setPixel functions.
Definition: H3DImageObject.h:140
int yMin()
Returns the minimum value in y that has been changed by the setPixel functions.
Definition: H3DImageObject.h:125
int xMax()
Returns the maximum value in x that has been changed by the setPixel functions.
Definition: H3DImageObject.h:135
bool imageChanged()
Returns true if the image has been updated with the setPixel functions.
Definition: H3DImageObject.h:173
SFImage()
Constructor.
Definition: H3DImageObject.h:54
int xOffset()
Returns the offset in x of the changed part of the image.
Definition: H3DImageObject.h:149
int zMax()
Returns the maximum value in z that has been changed by the setPixel functions.
Definition: H3DImageObject.h:145
int zOffset()
Returns the offset in z of the changed part of the image.
Definition: H3DImageObject.h:157
This abstract interface is inherited by all nodes that contains an SFImage object with an Image conta...
Definition: H3DImageObject.h:45
H3DUniquePtr< SFImage > image
Field containing the Image to use as a texture.
Definition: H3DImageObject.h:191
H3DImageObject(Inst< SFImage > _image=0)
Constructor.
Definition: H3DImageObject.h:187
RefCountSField is almost like any SField but it encapsulates a pointer to a RefCountedClass.
Definition: RefCountSField.h:42
PixelImage * X3DStringTo3DImage(const string &x3d_string)
Convert a string to a 3D PixelImage according to the X3D spec for Pixel3DTexture.
Definition: X3DFieldConversion.cpp:36
H3D API namespace.
Definition: Anchor.h:38