CFx SDK Documentation 2024 SP0
|
#include <GiMapperItem.h>
Classes | |
struct | MapInputTriangle |
struct | MapOutputCoords |
Public Types | |
enum | MappingIteratorType { kShellMapIt = 0 , kTriListMapIt , kPolyIt } |
Public Member Functions | |
ODRX_DECLARE_MEMBERS (OdGiMapperItemEntry) | |
virtual const OdGiMapper & | mapper () const =0 |
virtual void | setMapper (const OdGiMapper &pMapper, const OdGiMapper &pInheritMapper)=0 |
virtual void | setMapper (const OdGiMapper &pMapper, const OdGiMapper &pInheritMapper, const OdGeMatrix3d &tm)=0 |
virtual void | setMapper (const OdGiMapper &pMaterialMapper)=0 |
virtual void | setMapper (const OdGiMapper &pMaterialMapper, const OdGeMatrix3d &tm)=0 |
virtual const OdGeMatrix3d & | inputTransform () const =0 |
virtual void | setInputTransform (const OdGeMatrix3d &tm)=0 |
virtual const OdGeMatrix3d & | deviceTransform () const =0 |
virtual void | setDeviceTransform (const OdGeMatrix3d &dtm)=0 |
virtual const OdGeMatrix3d & | modelTransform () const =0 |
virtual void | setModelTransform (const OdGeMatrix3d &mtm)=0 |
virtual const OdGeMatrix3d & | objectTransform () const =0 |
virtual void | setObjectTransform (const OdGeMatrix3d &otm)=0 |
virtual const OdGeMatrix3d & | outputTransform () const =0 |
virtual void | setOutputTransform (const OdGeMatrix3d &tm)=0 |
virtual void | recomputeTransformations ()=0 |
virtual void | mapCoords (const MapInputTriangle &trg, MapOutputCoords &uv) const =0 |
virtual void | mapCoords (const OdGePoint3d *trg, OdGePoint2d *uv) const =0 |
virtual void | mapCoords (const double *trg, double *uv) const =0 |
virtual void | mapCoords (const MapInputTriangle &trg, const OdGeVector3d &normal, MapOutputCoords &uv) const =0 |
virtual void | mapCoords (const OdGePoint3d *trg, const OdGeVector3d &normal, OdGePoint2d *uv) const =0 |
virtual void | mapCoords (const double *trg, const double *normal, double *uv) const =0 |
virtual void | mapCoords (OdUInt32 nVerts, const OdGePoint3d *pVerts, OdGePoint2d *pUV, OdUInt32 nList=0, const OdInt32 *pIds=NULL, MappingIteratorType mapIt=kTriListMapIt, const OdGeVector3d *pNormal=NULL, const OdGeVector3d *pFaceNormals=NULL, const OdGeVector3d *pVertNormals=NULL, OdGiOrientationType oType=kOdGiNoOrientation)=0 |
virtual void | mapPredefinedCoords (const OdGePoint3d *pInUVW, OdGePoint2d *pOutUV, OdUInt32 nPoints) const =0 |
virtual bool | isEntityMapper () const =0 |
virtual bool | isObjectMatrixNeed () const =0 |
virtual bool | isModelMatrixNeed () const =0 |
virtual bool | isDependsFromObjectMatrix () const =0 |
virtual bool | isVertexTransformRequired () const =0 |
virtual void | setVertexTransform (OdInt32 nCount, const OdGePoint3d *pPoints)=0 |
virtual void | setVertexTransform (const OdGeExtents3d &exts)=0 |
virtual void | setObjectTransform (OdInt32 nCount, const OdGePoint3d *pPoints)=0 |
virtual void | setObjectTransform (const OdGeExtents3d &exts)=0 |
Public Member Functions inherited from OdRxObject | |
ODRX_HEAP_OPERATORS () | |
OdRxObject () | |
virtual | ~OdRxObject () |
virtual OdRxObject * | queryX (const OdRxClass *pClass) const |
virtual OdRxObject * | x (const OdRxClass *pClass) const |
virtual OdRxClass * | isA () const |
virtual void | addRef ()=0 |
virtual void | release ()=0 |
virtual long | numRefs () const |
bool | isKindOf (const OdRxClass *pClass) const |
virtual OdRxObjectPtr | clone () const |
virtual void | copyFrom (const OdRxObject *pSource) |
virtual OdRx::Ordering | comparedTo (const OdRxObject *pOther) const |
virtual bool | isEqualTo (const OdRxObject *pOther) const |
Additional Inherited Members | |
Static Public Member Functions inherited from OdRxObject | |
static OdRxObjectPtr | cast (const OdRxObject *pointer) |
static OdRxClass * | desc () |
Material mapper item entry for separate texture channel.
<group OdGi_Classes>
Definition at line 51 of file GiMapperItem.h.
Definition at line 231 of file GiMapperItem.h.
|
pure virtual |
Retrieves input vertices device transformation matrix.
|
pure virtual |
Retrieves input vertices transformation matrix.
|
pure virtual |
Checks whether a model matrix is needed for this mapper.
|
pure virtual |
Checks whether entity mapper is enabled.
|
pure virtual |
Checks whether a model matrix is needed for this mapper.
|
pure virtual |
Return true if mapper needs object matrix.
|
pure virtual |
Checks whether mapper requires a vertex transform. A vertex transform is required in case if mapper has automatic transform mode == kObject.
|
pure virtual |
Calculates texture coordinates for input triangle.
trg | [in] Input triangle coordinates (X, Y, Z). |
normal | [in] Input triangle normal (X, Y, Z). |
uv | [out] Output texture coordinates (U, V). |
|
pure virtual |
Calculates texture coordinates for input triangle.
trg | [in] Input triangle coordinates (X, Y, Z). |
uv | [out] Output texture coordinates (U, V). |
|
pure virtual |
Calculates texture coordinates for input triangle.
trg | [in] Input triangle coordinates (X, Y, Z). |
normal | [in] Input triangle normal (X, Y, Z). |
uv | [out] Output texture coordinates (U, V). |
|
pure virtual |
Calculates texture coordinates for input triangle.
trg | [in] Input triangle coordinates (X, Y, Z). |
uv | [out] Output texture coordinates (U, V). |
|
pure virtual |
Calculates texture coordinates for input triangle.
trg | [in] Input triangle coordinates (X, Y, Z). |
normal | [in] Input triangle normal (X, Y, Z). |
uv | [out] Output texture coordinates (U, V). |
|
pure virtual |
Calculate texture coordinates for input triangle.
trg | [in] Input triangle coordinates (X, Y, Z). |
uv | [out] Output texture coordinates (U, V). |
|
pure virtual |
Calculates texture coordinates for input shellmeshpolygon vertices.
nVerts | [in] Count of input vertices. |
pVerts | [in] Array of input vertices (should be equal to vertices count). |
pUV | [out] Output array of texture coordinates (should be equal to vertices count). |
nList | [in] Count of indices in indices array (include face sizes for shell-style arrays). |
pIds | [in] Vertex indices array. |
mapIt | [in] Type of indices iterator. |
pNormal | [in] Optional normal (if already precalculated and doesn't specified in face/vertex data). |
pFaceNormals | [in] Optional face normals array (have greater priority than optional normal). |
pVertNormals | [in] Optional vertex normals array (have greater priority than optional face normals). |
oType | [in] Used for calculation of normal if doesn't specified. |
|
pure virtual |
Retrieves a mapper (return result mapper combination for pMapper and pInheritMapper).
|
pure virtual |
Recalculates predefined texture coordinates using current material transformation.
pInUVW | [in] Input array of texture coordinates. |
pOutUV | [out] Output array of transformed texture coordinates. |
nPoints | [in] Count of input and output texture coordinates. |
|
pure virtual |
Retrieves model transformation matrix (used only for kModel mappers).
|
pure virtual |
Retrieves object transformation matrix (used only for kObject mappers).
OdGiMapperItemEntry::ODRX_DECLARE_MEMBERS | ( | OdGiMapperItemEntry | ) |
|
pure virtual |
Retrieves output texture coordinates transformation matrix.
|
pure virtual |
Recomputes transformation matrices.
|
pure virtual |
Sets input vertices device transformation matrix.
dtm | [in] Input device vertices inside the transform matrix. |
|
pure virtual |
Sets input vertices transformation matrix.
tm | [in] Input vertices inside the transform matrix. |
|
pure virtual |
Sets mapper combination.
pMapper | [in] Entity mapper. |
pInheritMapper | [in] Material (default) mapper. |
|
pure virtual |
Sets mapper combination and object/model matrix.
pMapper | [in] Entity mapper. |
pInheritMapper | [in] Material (default) mapper. |
tm | [in] Model or object matrix. |
|
pure virtual |
Sets mapper for material (entity mapper not specified).
pMaterialMapper | [in] Material mapper. |
|
pure virtual |
Sets mapper for material and object/model matrix.
pMaterialMapper | [in] Material mapper. |
tm | [in] Model or object matrix. |
|
pure virtual |
Sets model transformation matrix (used only for kModel mappers).
mtm | [in] Model transform vertices inside the transform matrix. |
|
pure virtual |
Sets object transform from extents.
exts | [in] Extents that defines object transform matrix. |
|
pure virtual |
Sets object transformation matrix (used only for kObject mappers).
otm | [in] Object transform vertices inside the transform matrix. |
|
pure virtual |
Sets vertex transform from points array.
nCount | [in] Number of points. |
pPoints | [in] Pointer to the array of points. |
|
pure virtual |
Sets output texture coordinates transformation matrix.
tm | [in] Output transform vertices inside the transform matrix. |
|
pure virtual |
Sets vertex transform from object extents.
exts | [in] Extents that defines vertex transform matrix. |
|
pure virtual |
Sets vertex transform from points array.
nCount | [in] Number of points. |
pPoints | [in] Pointer to the array of points. |