CFx SDK Documentation
2023 SP0
|
#include <GiMaterial.h>
Public Types | |
enum | Projection { kInheritProjection = 0 , kPlanar = 1 , kBox = 2 , kCylinder = 3 , kSphere = 4 , kDgnParametric = 0x32 , kDgnPlanar = 0x33 , kDgnCylinder = 0x34 , kDgnCylinderCapped = 0x35 , kDgnSphere = 0x36 } |
enum | Tiling { kInheritTiling = 0 , kTile = 1 , kCrop = 2 , kClamp = 3 , kMirror = 4 } |
enum | AutoTransform { kInheritAutoTransform = 0x0 , kNone = 0x1 , kObject = 0x2 , kModel = 0x4 } |
Public Member Functions | |
OdGiMapper () | |
OdGiMapper (const OdGiMapper &mapper) | |
OdGiMapper & | operator= (const OdGiMapper &mapper) |
bool | operator== (const OdGiMapper &mapper) const |
bool | operator!= (const OdGiMapper &mapper) const |
void | setProjection (Projection projection) |
void | setUTiling (Tiling tiling) |
void | setVTiling (Tiling tiling) |
void | setAutoTransform (AutoTransform autoTransform) |
OdGeMatrix3d & | transform () |
Projection | projection () const |
Tiling | uTiling () const |
Tiling | vTiling () const |
AutoTransform | autoTransform () const |
const OdGeMatrix3d & | transform () const |
void | setTransform (const OdGeMatrix3d &tm) |
Static Public Attributes | |
static ODGI_EXPORT_STATIC const OdGiMapper | kIdentity |
This class implements mappers.
<group OdGi_Classes>
Definition at line 1122 of file GiMaterial.h.
Specifies the automatic transform mode.
Enumerator | |
---|---|
kInheritAutoTransform | |
kNone | |
kObject | |
kModel |
Definition at line 1159 of file GiMaterial.h.
Specifies the mapping projection.
Enumerator | |
---|---|
kInheritProjection | |
kPlanar | |
kBox | |
kCylinder | |
kSphere | |
kDgnParametric | |
kDgnPlanar | |
kDgnCylinder | |
kDgnCylinderCapped | |
kDgnSphere |
Definition at line 1128 of file GiMaterial.h.
enum OdGiMapper::Tiling |
Specifies the mapper's tiling method.
Enumerator | |
---|---|
kInheritTiling | |
kTile | |
kCrop | |
kClamp | |
kMirror |
Definition at line 1147 of file GiMaterial.h.
|
inline |
Definition at line 1169 of file GiMaterial.h.
|
inline |
Definition at line 1647 of file GiMaterial.h.
|
inline |
Returns the type of automatic transform for this Mapper object.
Value Description kInheritAutoTransform 0x0 Inherits automatic transform from the current material's mapper. kNone 0x1 No automatic transform. kObject 0x2 Adjusts the mapper transform to align with and fit the current object. kModel 0x4 Multiplies the mapper transform by the current block transform.
Definition at line 1729 of file GiMaterial.h.
|
inline |
Definition at line 1681 of file GiMaterial.h.
|
inline |
Definition at line 1657 of file GiMaterial.h.
|
inline |
Definition at line 1671 of file GiMaterial.h.
|
inline |
Returns the type of projection for this Mapper object.
Value Description kInheritProjection 0 Inherits projection from the current material's mapper. kPlanar 1 Maps directly to XY coordinates. kBox 2 Maps to planes perpendicular to major axes. kCylinder 3 Maps to cylinders aligned with the Z-axis. kSphere 4 Maps to spheres aligned with the Z-axis.
Definition at line 1711 of file GiMaterial.h.
|
inline |
Sets the type of automatic transform for this Mapper object.
autoTransform | [in] Automatic transform type. |
Value Description kInheritAutoTransform 0x0 Inherits automatic transform from the current material's mapper. kNone 0x1 No automatic transform. kObject 0x2 Adjusts the mapper transform to align with and fit the current object. kModel 0x4 Multiplies the mapper transform by the current block transform.
Definition at line 1705 of file GiMaterial.h.
|
inline |
Sets the type of projection for this Mapper object.
projection | [in] Projection type. |
Value Description kInheritProjection 0 Inherits projection from the current material's mapper. kPlanar 1 Maps directly to XY coordinates. kBox 2 Maps to planes perpendicular to major axes. kCylinder 3 Maps to cylinders aligned with the Z-axis. kSphere 4 Maps to spheres aligned with the Z-axis.
Definition at line 1687 of file GiMaterial.h.
|
inline |
Applies the transformation matrix for this Mapper object.
tm | [in] Transformation matrix. |
Definition at line 1747 of file GiMaterial.h.
Sets the type of X-axis tiling for this Mapper object.
tiling | [in] Tiling type. |
Value Description kInheritTiling 0 Inherits tiling from the current material's mapper. kTile 1 Repeats map along image axes. kCrop 2 Crops map < 0.0 or > 1.0 on image axes. kClamp 3 Clamps (stretches) map between 0.0 and 1.0 on image axes. kMirror 4 Mirrors the material map at every integer boundary.
Definition at line 1693 of file GiMaterial.h.
Sets the type of Y-axis tiling for this Mapper object.
tiling | [in] Tiling type. |
Value Description kInheritTiling 0 Inherits tiling from the current material's mapper. kTile 1 Repeats map along image axes. kCrop 2 Crops map < 0.0 or > 1.0 on image axes. kClamp 3 Clamps (stretches) map between 0.0 and 1.0 on image axes. kMirror 4 Mirrors the material map at every integer boundary.
Definition at line 1699 of file GiMaterial.h.
|
inline |
Returns a reference to the transformation matrix for this Mapper object.
Definition at line 1741 of file GiMaterial.h.
|
inline |
Returns the transformation matrix for this Mapper object.
Definition at line 1735 of file GiMaterial.h.
|
inline |
Returns the type of X-axis tiling for this Mapper object.
Value Description kInheritTiling 0 Inherits tiling from the current material's mapper. kTile 1 Repeats map along image axes. kCrop 2 Crops map < 0.0 or > 1.0 on image axes. kClamp 3 Clamps (stretches) map between 0.0 and 1.0 on image axes. kMirror 4 Mirrors the material map at every integer boundary.
Definition at line 1717 of file GiMaterial.h.
|
inline |
Returns the type of Y-axis tiling for this Mapper object.
Value Description kInheritTiling 0 Inherits tiling from the current material's mapper. kTile 1 Repeats map along image axes. kCrop 2 Crops map < 0.0 or > 1.0 on image axes. kClamp 3 Clamps (stretches) map between 0.0 and 1.0 on image axes. kMirror 4 Mirrors the material map at every integer boundary.
Definition at line 1723 of file GiMaterial.h.
|
static |
Definition at line 1167 of file GiMaterial.h.