#include <Inventor/nodes/SoImage.h>
Inheritance diagram for SoImage::
Public Types | |
enum | VertAlignment { BOTTOM, HALF, TOP } |
enum | HorAlignment { LEFT, CENTER, RIGHT } |
Public Methods | |
SoImage (void) | |
virtual void | GLRender (SoGLRenderAction *action) |
virtual void | rayPick (SoRayPickAction *action) |
virtual void | getPrimitiveCount (SoGetPrimitiveCountAction *action) |
Static Public Methods | |
void | initClass (void) |
Public Attributes | |
SoSFInt32 | width |
SoSFInt32 | height |
SoSFEnum | vertAlignment |
SoSFEnum | horAlignment |
SoSFImage | image |
SoSFString | filename |
Protected Methods | |
virtual | ~SoImage () |
virtual void | generatePrimitives (SoAction *action) |
virtual void | computeBBox (SoAction *action, SbBox3f &box, SbVec3f ¢er) |
virtual SbBool | readInstance (SoInput *in, unsigned short flags) |
virtual void | notify (SoNotList *list) |
int | getReadStatus (void) |
void | setReadStatus (SbBool flag) |
An image can be specified either by using the image field, or by specifying a filename. If width and or height is specified, the image will be resized to match those values before it is displayed.
The current modelview matrix will be used to find the viewport position, and the image is rendered in that position, with z-buffer testing activated.
|
Vertical alignment for image. |
|
Horizontal alignment for image. |
|
Constructor. |
|
Destructor. |
|
Sets up initialization for data common to all instances of this class, like submitting necessary information to the Coin type system. Reimplemented from SoShape. |
|
Action method for the SoGLRenderAction. This is called during rendering traversals. Nodes influencing the rendering state in any way or who wants to throw geometry primitives at OpenGL overrides this method. Reimplemented from SoShape. |
|
Calculates picked point based on primitives generated by subclasses. Reimplemented from SoShape. |
|
Action method for the SoGetPrimitiveCountAction. Calculates the number of triangle, line segment and point primitives for the node and adds these to the counters of the action. Nodes influencing how geometry nodes calculates their primitive count also overrides this method to change the relevant state variables. Reimplemented from SoShape. |
|
Will generate a textured quad, representing the image in 3D. Reimplemented from SoShape. |
|
For internal use only. Reimplemented from SoShape. |
|
Overloaded to load image file. Reimplemented from SoNode. |
|
Overloaded to detect when fields change. Reimplemented from SoNode. |
|
Returns TRUE if node was read ok. |
|
Set read status for this node. |
|
If bigger than 0, resize image to this width before rendering. |
|
if bigger than 0, resize image to this height before rendering. |
|
Vertical alignment. |
|
Horizontal alignment. |
|
Inline image data. |
|
Image filename. |