awScene.ImageGeometry Class Reference

#include <classaw_scene_1_1_image_geometry.h>

Inheritance diagram for awScene.ImageGeometry:
Inheritance graph
[legend]

List of all members.

Public Member Functions

  __init__ (bool usesXYPlane=True, str matType="Images")
  __init__ (ImageGeometry)
ImageGeometry  operator= (ImageGeometry)
  setImagePath (str path)
str  getImagePath ()
  setBlendSourceFunction (str)
  These values should be one of the ones described in the CgFx 1.4 spec.
str  getBlendSourceFunction ()
  setBlendDestinationFunction (str)
str  getBlendDestinationFunction ()
int  getOrientationConstraint ()
  The value is one of the Orientation enum values.
  setOrientationConstraint (int)
bool  getIsFixedPixelSize ()
  Fixed pixel size means that scale and zoom will be "ignored".
  setIsFixedPixelSize (bool)
float  getExplicitWidth ()
  By default, the width and height are set to 1.0/1.0.
  setExplicitWidth (float)
float  getExplicitHeight ()
  setExplicitHeight (float)
float  getFixedPixelWidth ()
  By default, the fixed pixel width and height are set to -1.0 (use the image resolution).
  setFixedPixelWidth (float)
float  getFixedPixelHeight ()
  setFixedPixelHeight (float)
State  getDepthState ()
bool  setDepthState (State newDepthState)
bool  usesXYPlane ()
  setMinFilterMode (str)
str  getMinFilterMode ()
  setMagFilterMode (str)
str  getMagFilterMode ()
  setWrapMode (str toSet)
  Currently we assume that each coordinate S,R and T wrap in the exact same way.
str  getWrapMode ()
  setColor (float r, float g, float b, float a)
  useColor (bool useColor)
  accept (NodeVisitor)
  setAllDirty (bool dirty)

Protected Member Functions

  __del__ ()
  Reference counted objects shouldn't exist on the stack.
  createMaterial ()

Member Function Documentation

awScene.ImageGeometry.__init__ ( bool  usesXYPlane = True,
str  matType = "Images" 
)
awScene.ImageGeometry.__init__ ( ImageGeometry  )
ImageGeometry awScene.ImageGeometry.operator= ( ImageGeometry  )
awScene.ImageGeometry.setImagePath ( str  path )
str awScene.ImageGeometry.getImagePath ( )
awScene.ImageGeometry.setBlendSourceFunction ( str  )

These values should be one of the ones described in the CgFx 1.4 spec.

For example, SrcAlpha, OneMinusSrcAlpha, Zero, One, DstAlpha, OneMinusDestColor, etc. There are no tests for the validity, so be careful.

str awScene.ImageGeometry.getBlendSourceFunction ( )
awScene.ImageGeometry.setBlendDestinationFunction ( str  )
str awScene.ImageGeometry.getBlendDestinationFunction ( )
int awScene.ImageGeometry.getOrientationConstraint ( )

The value is one of the Orientation enum values.

If set to kOrientToCameraAlways, the image will always automatically rotate to face the camera. If fixed pixel size is true, then the image will also be automatically scaled to be a constant size on screen.

If set to kOrientToCameraAroundZ, the image will always rotate around the up (Z) axis to face the camera, but will not adjust the scale or "elevation" rotation.

If set to kNoOrientationConstraint, the image will not change in orientation. If fixed pixel size is true, then the image will be automatically scaled to be a constant size on screen.

In all cases, the position is freely controlled by the group parent of this node.

awScene.ImageGeometry.setOrientationConstraint ( int  )
bool awScene.ImageGeometry.getIsFixedPixelSize ( )

Fixed pixel size means that scale and zoom will be "ignored".

Currently only supported if the orientation constraints are kOrientToCameraAlways or kNoOrientationConstraint.

awScene.ImageGeometry.setIsFixedPixelSize ( bool  )
float awScene.ImageGeometry.getExplicitWidth ( )

By default, the width and height are set to 1.0/1.0.

If you want that changed, set the values explicitly. If you set them to -1, the actual pixel size of the image will be used instead.

awScene.ImageGeometry.setExplicitWidth ( float  )
float awScene.ImageGeometry.getExplicitHeight ( )
awScene.ImageGeometry.setExplicitHeight ( float  )
float awScene.ImageGeometry.getFixedPixelWidth ( )

By default, the fixed pixel width and height are set to -1.0 (use the image resolution).

Change the fixed pixel size in this method.

awScene.ImageGeometry.setFixedPixelWidth ( float  )
float awScene.ImageGeometry.getFixedPixelHeight ( )
awScene.ImageGeometry.setFixedPixelHeight ( float  )
State awScene.ImageGeometry.getDepthState ( )
bool awScene.ImageGeometry.setDepthState ( State  newDepthState )
bool awScene.ImageGeometry.usesXYPlane ( )
awScene.ImageGeometry.setMinFilterMode ( str  )
str awScene.ImageGeometry.getMinFilterMode ( )
awScene.ImageGeometry.setMagFilterMode ( str  )
str awScene.ImageGeometry.getMagFilterMode ( )
awScene.ImageGeometry.setWrapMode ( str  toSet )

Currently we assume that each coordinate S,R and T wrap in the exact same way.

str awScene.ImageGeometry.getWrapMode ( )
awScene.ImageGeometry.setColor ( float  r,
float  g,
float  b,
float  a 
)
awScene.ImageGeometry.useColor ( bool  useColor )
awScene.ImageGeometry.accept ( NodeVisitor  )
awScene.ImageGeometry.setAllDirty ( bool  dirty )
awScene.ImageGeometry.__del__ ( ) [protected]

Reference counted objects shouldn't exist on the stack.

Reimplemented from awScene.Geometry.

awScene.ImageGeometry.createMaterial ( ) [protected]

awScene.ImageGeometry awScene.ImageGeometry awScene.ImageGeometry awScene.ImageGeometry awScene.ImageGeometry awScene.ImageGeometry awScene.ImageGeometry awScene.ImageGeometry awScene.ImageGeometry awScene.ImageGeometry
awScene.ImageGeometry awScene.ImageGeometry awScene.ImageGeometry awScene.ImageGeometry awScene.ImageGeometry awScene.ImageGeometry awScene.ImageGeometry awScene.ImageGeometry awScene.ImageGeometry awScene.ImageGeometry