#include <c4d_painter.h>
Public Member Functions | |
Int32 | GetMode () |
const Vector * | GetPoint () |
const CPolygon * | GetPoly () |
BaseSelect * | GetPolySel () |
BaseSelect * | GetPolyHid () |
BaseSelect * | GetUVPointSel () |
EdgeBaseSelect * | GetUVEdgeSel () |
maxon::Block< Int32 > | GetUVIslands () |
Int32 | GetPointCount () |
Int32 | GetPolyCount () |
BaseObject * | GetBaseObject () |
Bool | IsEditable () |
UVWStruct * | GetUVW () |
Bool | SetUVW (UVWStruct *uv) |
Bool | SetUVWFromTextureView (UVWStruct *uvw, Bool ignoreHidden, Bool ignoreUnselected, Bool autoSelectAll, Bool registerUndo=true) |
Bool | SetUVPointSelectionFromTextureView (const BaseSelect *uvPointSelection, Bool bleedSelection) |
Bool | SetUVEdgeSelection (const BaseSelect *uvEdgeSelection) |
Private Member Functions | |
TempUVHandle () | |
~TempUVHandle () | |
|
private |
|
private |
Int32 GetMode | ( | ) |
Retrieves the current UV editor mode.
const Vector* GetPoint | ( | ) |
Retrieves the start of the read-only points array.
const CPolygon* GetPoly | ( | ) |
Retrieves the start of the read-only polygons array.
BaseSelect* GetPolySel | ( | ) |
Retrieves the selected polygons.
BaseSelect* GetPolyHid | ( | ) |
Retrieves the hidden polygons.
BaseSelect* GetUVPointSel | ( | ) |
Retrieves the selected UV points.
The points are indexed by 4 * polygon + point
where polygon
is the polygon index and point
is the point index between 0 and 3 (a, b, c, d).
EdgeBaseSelect* GetUVEdgeSel | ( | ) |
Retrieves the selected edges.
maxon::Block<Int32> GetUVIslands | ( | ) |
Retrieves a list of UV island indexes to which each UV polygon belongs. A UV polygon can only belong to one UV island.
Int32 GetPointCount | ( | ) |
Retrieves the point count.
Int32 GetPolyCount | ( | ) |
Retrieves the polygon count.
BaseObject* GetBaseObject | ( | ) |
Retrieves the object of the UV set.
Bool IsEditable | ( | ) |
Checks if UVs are editable or not. Polygon objects have editable UVs, object generators usually not.
UVWStruct* GetUVW | ( | ) |
Retrieves the UV array.
Applies changes of the UV set to the object.
[in] | uv | The pointer to the changed UV array. |
Bool SetUVWFromTextureView | ( | UVWStruct * | uvw, |
Bool | ignoreHidden, | ||
Bool | ignoreUnselected, | ||
Bool | autoSelectAll, | ||
Bool | registerUndo = true |
||
) |
Applies changes of the UV set to the object, optionally using the components in the last active Texture View instance.
[in] | uvw | The pointer to the changed UV array. |
[in] | ignoreHidden | If true, do not affect the UV coordinates of UV Polygons or UV Points of hidden polygons. |
[in] | ignoreUnselected | If true, do not affect the UV coordinates of UV Polygons, or UV Points (depending on the current mode) that are unselected in the Texture View. |
[in] | autoSelectAll | If true, automatically selects all UV Polygons, or UV Points (depending on the current mode). |
[in] | registerUndo | If true, an undo is added for the operation. Since R16 |
Bool SetUVPointSelectionFromTextureView | ( | const BaseSelect * | uvPointSelection, |
Bool | bleedSelection | ||
) |
Sets the UV Point selection. The points have to be indexed as follows: 4 * polygon + point
where polygon
is the polygon index and point
is the point index between 0 and 3 (a, b, c, d).
[in] | uvPointSelection | The pointer to the new UV Point selection. |
[in] | bleedSelection | If true, ensures that if one UV point is selected, all UV points having the same coordinates are selected as well. If false it doesn't check, which is faster. |
Bool SetUVEdgeSelection | ( | const BaseSelect * | uvEdgeSelection | ) |
Sets the UV Edge selection. The edges have to be indexed as follows: 4 * polygon + edge
where polygon
is the polygon index and edge
is the edge index between 0 and 3.
[in] | uvEdgeSelection | The pointer to the new UV Edge selection. |