All Frameworks  Class Hierarchy  This Framework  Previous  Next  Indexes

VisualizationBase Class CATMappingOperator

System.IUnknown
  |
  +---System.IDispatch
    |
    +---System.CATBaseUnknown
      |
      +---System.CATEventSubscriber
        |
        +---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 CATMappingOperator& iOper)
Copy contructor

Methods


o AddReference
public void AddReference()
Increments the reference counter of the mapping operator.
o ComputeTextureCoordinates
public virtual void ComputeTextureCoordinates( const float[] iVertex,
const int iNbVertex,
const float[] iNormals,
const int iNbNormals,
const float[] iTuv,
const int iNbuv,
float[] oTexture) const
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 void ComputeTextureCoordinates( const float[] iVertex,
const int iNbVertex,
const float[] iNormals,
const int iNbNormals,
const float[] iTuv,
const int iNbuv,
float[] oTexture,
const CATBaseUnknown* iCell) const
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
public virtual int Destroy()
Deletes the mapping operator.
o GetId
public inline unsigned short GetId()const
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 int GetReferenceNumber()const
Returns the reference counter value of the mapping operator.
o NeedUVMesh
public virtual int NeedUVMesh()const
Indicates the need for surface parameters array iTuv.
o SubReference
public void 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: CATViz

Copyright © 2003, Dassault Systèmes. All rights reserved.