TRenderArea Struct Reference

Inheritance diagram for TRenderArea:
TMCObject

List of all members.

Public Member Functions

 TRenderArea (real w, real h, TBBox2D uvbox)
void PosToUV (const TMCPoint &inPos, TVector2 &outUV)
void UVToPos (const TVector2 &inUV, TMCPoint &outPos)
boolean operator== (const TRenderArea &rhs)

Public Attributes

TBBox2D fuv
 camera coordinates
real fWidth
 width in pixels
real fHeight
 height in pixels

Detailed Description

Describes a rendering rectangle (used in I3DRenderHelper)


Constructor & Destructor Documentation

TRenderArea::TRenderArea ( real  w,
real  h,
TBBox2D  uvbox 
) [inline]

Member Function Documentation

boolean TRenderArea::operator== ( const TRenderArea rhs  )  [inline]
void TRenderArea::PosToUV ( const TMCPoint inPos,
TVector2 outUV 
) [inline]

Converts a point in pixel coordinates (fWidth, fHeight) into camera coordinates

Note:
The uv y coordinate varies "oppositely" to the pixel y coord.
Parameters:
inPos point in pixel coordinates
outUV result in camera coordinates
void TRenderArea::UVToPos ( const TVector2 inUV,
TMCPoint outPos 
) [inline]

Converts a point in camera coordinates into pixel coordinates (fWidth, fHeight)

Note:
The uv y coordinate varies "oppositely" to the pixel y coord.
Parameters:
inUV point in camera coordinates
outPos result in pixel coordinates

Member Data Documentation

height in pixels

camera coordinates

width in pixels


The documentation for this struct was generated from the following file:
Generated on Mon Apr 26 22:48:09 2010 for Carrara SDK Doc by  doxygen 1.6.3