UVMapper Class Reference

#include <UVMapper.h>

Collaboration diagram for UVMapper:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 UVMapper ()
 ~UVMapper ()
void apply (Object &obj, cvrIndex materialRef, unsigned short layerRef)
 Apply this UVMapper to object obj on material materialRef to texture layer layerRef.
void apply (Object &obj, cvrIndex materialRef)
 Apply this UVMapper to object obj on material materialRef to texture layer 0.
void getUV (XYZ &point_in, UV &uv_out)
 Get a U & V value for a point (all except cubic which requires surface normals.
void setProjection (unsigned short proj_in)
void setAxis (unsigned short axis_in)
void setWrap (float w_in, float h_in)
void setScale (const XYZ &scale_in)
void setRotation (const XYZ &rotation_in)
void setCenter (const XYZ &center_in)

Public Attributes

XYZ rotation
XYZ scale
XYZ center
unsigned short projection_mode
unsigned short projection_axis
float wrap_w_count
float wrap_h_count

Private Member Functions

void rotatexyz (XYZ &rot_in, XYZ &point_in, XYZ &point_out)
void xyz_to_h (float x, float y, float z, float *h)
void xyz_to_hp (float x, float y, float z, float *h, float *p)
float fract (float x)


Constructor & Destructor Documentation

UVMapper::UVMapper (  ) 

UVMapper::~UVMapper (  ) 


Member Function Documentation

void UVMapper::rotatexyz ( XYZ rot_in,
XYZ point_in,
XYZ point_out 
) [private]

void UVMapper::xyz_to_h ( float  x,
float  y,
float  z,
float *  h 
) [private]

void UVMapper::xyz_to_hp ( float  x,
float  y,
float  z,
float *  h,
float *  p 
) [private]

float UVMapper::fract ( float  x  )  [private]

void UVMapper::apply ( Object obj,
cvrIndex  materialRef,
unsigned short  layerRef 
)

Apply this UVMapper to object obj on material materialRef to texture layer layerRef.

Here is the call graph for this function:

void UVMapper::apply ( Object obj,
cvrIndex  materialRef 
)

Apply this UVMapper to object obj on material materialRef to texture layer 0.

Here is the call graph for this function:

void UVMapper::getUV ( XYZ point_in,
UV uv_out 
)

Get a U & V value for a point (all except cubic which requires surface normals.

Here is the call graph for this function:

void UVMapper::setProjection ( unsigned short  proj_in  ) 

void UVMapper::setAxis ( unsigned short  axis_in  ) 

void UVMapper::setWrap ( float  w_in,
float  h_in 
)

void UVMapper::setScale ( const XYZ scale_in  ) 

void UVMapper::setRotation ( const XYZ rotation_in  ) 

void UVMapper::setCenter ( const XYZ center_in  ) 


Member Data Documentation

unsigned short UVMapper::projection_mode

unsigned short UVMapper::projection_axis


The documentation for this class was generated from the following files:

Generated on Thu Mar 19 19:36:13 2009 for CubicVR by  doxygen 1.5.6