CFx SDK Documentation 2024 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 1514 of file GiMaterial.h.
Specifies the automatic transform mode.
Definition at line 1564 of file GiMaterial.h.
Specifies the mapping projection.
Definition at line 1520 of file GiMaterial.h.
enum OdGiMapper::Tiling |
Specifies the mapper's tiling method.
Definition at line 1547 of file GiMaterial.h.
|
inline |
Default constructor for the OdGiMapper class. Sets the mapping projection to kPlanar, u- and v-tiling to kTile and automatic transform method to kNone.
Definition at line 1582 of file GiMaterial.h.
|
inline |
Copy constructor for the OdGiMapper class. Copies projection, of the specified mapper.
mapper | [in] Mapper to be copied. |
Definition at line 2138 of file GiMaterial.h.
|
inline |
Retrieves 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 2220 of file GiMaterial.h.
|
inline |
Inequality operator for the OdGiMapper class. The objects are not equal if at least one of the following conditions fails: projection methods are equal. u- and v-tiling methods are equal automatic transform methods are equal transform matrices are equal
mapper | [in] Mapper to be compared. |
Definition at line 2172 of file GiMaterial.h.
|
inline |
Assignment operator for the OdGiMapper class.
mapper | [in] Mapper to be assigned. |
Definition at line 2148 of file GiMaterial.h.
|
inline |
Equality operator for the OdGiMapper class. The objects are equal if: projection methods are equal. u- and v-tiling methods are equal automatic transform methods are equal transform matrices are equal
mapper | [in] Mapper to be compared. |
Definition at line 2162 of file GiMaterial.h.
|
inline |
Retrieves 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 2202 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 2196 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 2178 of file GiMaterial.h.
|
inline |
Applies the transformation matrix for this Mapper object.
tm | [in] Transformation matrix. |
Definition at line 2238 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 2184 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 2190 of file GiMaterial.h.
|
inline |
Retrieves the transformation matrix for this Mapper object.
Definition at line 2232 of file GiMaterial.h.
|
inline |
Retrieves the transformation matrix for this Mapper object.
Definition at line 2226 of file GiMaterial.h.
|
inline |
Retrieves 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 2208 of file GiMaterial.h.
|
inline |
Retrieves 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 2214 of file GiMaterial.h.
|
static |
Definition at line 1576 of file GiMaterial.h.