VisualizationFoundation CATMappingOperator
Usage: you must use this class as is. You should never derive it.
public class CATMappingOperator
Base class to create a mapping operator to apply textures.
Derive from this class and overload the method ComputeTextureCoordinates.
Constructor and Destructor Index
- o
CATMappingOperator()
- Constructs an empty mapping operator.
- o
CATMappingOperator(CATMappingOperator&)
- Copy contructor
Method Index
- o
AddReference()
- Increments the reference counter of the mapping operator.
- o
ComputeTextureCoordinates(float[],int,float[],int,float[],int,float[])
- Computes the texture coordinates for all vertices.
- o
ComputeTextureCoordinates(float[],int,float[],int,float[],int,float[],CATBaseUnknown*)
- Computes the texture coordinates for all vertices.
- o
Destroy()
- Deletes the mapping operator.
- o
GetId()
- Return the id of the mapping operator.
- o
GetReferenceNumber()
- Returns the reference counter value of the mapping operator.
- o
NeedUVMesh()
- Indicates the need for surface parameters array iTuv.
- o
SubReference()
- IDecrements the reference counter of the mapping operator.
Constructor and Destructor
o CATMappingOperator
public CATMappingOperator( | ) |
-
Constructs an empty mapping operator.
o CATMappingOperator
public CATMappingOperator( | const | iOper) |
-
Copy contructor
Methods
o AddReference
-
Increments the reference counter of the mapping operator.
o ComputeTextureCoordinates
public virtual ComputeTextureCoordinates( | const | iVertex, |
| const | iNbVertex, |
| const | iNormals, |
| const | iNbNormals, |
| const | iTuv, |
| const | iNbuv, |
| | oTexture) |
-
Computes the texture coordinates for all vertices.
- Parameters:
-
- iVertex
- Array containing the coordinates of every vertices,as a succession
of (x,y,z) sets.
- iNbVertex
- Number of vertices in iVertex.
- iNormals
- Array containing the coordinates of the normals at every vertices, as
a succession of (Nx,Ny,Nz) sets.
If the surface is plane, the only given set is valid for all vertices.
- iNormals
- Number of normal sets in iNormals.
- iTuv
- Array containing the parameters in of every vertices in the surface parametrization space,
as a succession of (u,v) sets.
This array must be required by the mapping operator through the method NeedUVMesh.
- iNbuv
- Number of parameter sets in iNbuv.
- oTexture
- Array containing the coordinates of texture coordinates for every vertices,
as a succession of (s,t,0) sets.
(0,0,0) always indicates the lower-left corner of the texture image.
(1,1,0) always indicates the upper-right corner of the texture image.
o ComputeTextureCoordinates
public virtual ComputeTextureCoordinates( | const | iVertex, |
| const | iNbVertex, |
| const | iNormales, |
| const | iNbNormales, |
| const | iTuv, |
| const | iNbuv, |
| | oTexture, |
| const | iCell) |
-
Computes the texture coordinates for all vertices. Overload this method only if you need access to the topological cell. Otherwise, use other method.
- Parameters:
-
- iVertex
- Array containing the coordinates of every vertices,as a succession
of (x,y,z) sets.
- iNbVertex
- Number of vertices in iVertex.
- iNormals
- Array containing the coordinates of the normals at every vertices, as
a succession of (Nx,Ny,Nz) sets.
If the surface is plane, the only given set is valid for all vertices.
- iNormals
- Number of normal sets in iNormals.
- iTuv
- Array containing the parameters in of every vertices in the surface parametrization space,
as a succession of (u,v) sets.
This array must be required by the mapping operator through the method NeedUVMesh.
- iNbuv
- Number of parameter sets in iNbuv.
- oTexture
- Array containing the coordinates of texture coordinates for every vertices,
as a succession of (s,t,0) sets.
(0,0,0) always indicates the lower-left corner of the texture image.
(1,1,0) always indicates the upper-right corner of the texture image.
- iCell
- Topological cell for which we are calculating the textures coordinates.
o Destroy
-
Deletes the mapping operator.
o GetId
-
Return the id of the mapping operator. This id is not persistent. It only serves to index different sets
of mapping coordinates on CATGraphicPrimitives.
o GetReferenceNumber
public GetReferenceNumber( | ) |
-
Returns the reference counter value of the mapping operator.
o NeedUVMesh
public virtual NeedUVMesh( | ) |
-
Indicates the need for surface parameters array iTuv.
- 0 : no need for surface parameters.
- 1 : require calculation of surface parameters.
o SubReference
-
IDecrements the reference counter of the mapping operator.
This object is included in the file: CATMappingOperator.h
If needed, your Imakefile.mk should include the module: CATVisFoundation
Copyright © 1999-2015, Dassault Systèmes. All rights reserved.