#include <UVMapper.h>

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 ¢er_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) |
| UVMapper::UVMapper | ( | ) |
| UVMapper::~UVMapper | ( | ) |
| 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.

| void UVMapper::apply | ( | Object & | obj, | |
| cvrIndex | materialRef | |||
| ) |
Apply this UVMapper to object obj on material materialRef to texture layer 0.

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

| 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 | ) |
| unsigned short UVMapper::projection_mode |
| unsigned short UVMapper::projection_axis |
| float UVMapper::wrap_w_count |
| float UVMapper::wrap_h_count |
1.5.6