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

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

boolean TRenderArea::operator== ( const TRenderArea &  rhs  )  [inline]


Member Data Documentation

TBBox2D TRenderArea::fuv

camera coordinates

real TRenderArea::fWidth

width in pixels

real TRenderArea::fHeight

height in pixels


The documentation for this struct was generated from the following file:
Generated on Fri Aug 24 15:19:33 2007 for Carrara SDK Doc by  doxygen 1.5.3