All Frameworks  Class Hierarchy  This Framework  Previous  Next  Indexes

Mathematics Class CATMathGridOfVectors

Mathematics.CATCGMVirtual
  |
  +---Mathematics.CATMathExtendableSet
    |
    +---Mathematics.CATMathGrid
      |
      +---CATMathGridOfVectors
 

Usage: you must use this class as is. You should never derive it.


public class CATMathGridOfVectors

Class representing a bi-dimensionnal grid of CATMathVectors.

The size is defined by a number of rows NbRows and a number of columns NbColumns.
The SetNumberOfVectors method enlarges the memory if needed, while the Compress inherited method releases the free unused memory.


Constructor and Destructor Index


o CATMathGridOfVectors()
Constructs an empty CATMathGridOfVectors with 0 row and 0 column.
o CATMathGridOfVectors(CATLONG32,CATLONG32)
Constructs a CATMathGridOfVectors of a given size.
o CATMathGridOfVectors(CATLONG32,CATLONG32,CATMathVector[])
Constructs from an array of CATMathVectors, assuming it is ordered row after row.
o CATMathGridOfVectors(CATMathGridOfVectors&)
Copy constructor.
o ~CATMathGridOfVectors()
Destructor

Method Index


o ApplyTransformation(CATMathTransformation&)
Transforms the CATMathVectors of a CATMathGridOfVectors.
o GetVector(CATLONG32,CATLONG32)
Returns the CATMathVector locating at a given row and column.
o GetVector(CATLONG32,CATLONG32,CATMathVector&)
Retrieves the CATMathVector locating at a given row and column.
o GetVectors()
Returns the array of CATMathVectors sorted row by row.
o SetNumberOfVectors(CATLONG32,CATLONG32)
Sets a new size to this CATMathGridOfVectors.
o SetVector(CATMathVector&,CATLONG32,CATLONG32)
Initializes the values of a CATMathVector in the CATMathGridOfVectors.

Constructor and Destructor


o CATMathGridOfVectors
public CATMathGridOfVectors()
Constructs an empty CATMathGridOfVectors with 0 row and 0 column.
o CATMathGridOfVectors
public CATMathGridOfVectors(CATLONG32 iNbRows,
CATLONG32 iNbColumns)
Constructs a CATMathGridOfVectors of a given size.
The memory is allocated, but the values of the vectors are not initialized. Use SetVector to initialize them.
o CATMathGridOfVectors
public CATMathGridOfVectors(CATLONG32 inBRows,
CATLONG32 inBColumns,
const CATMathVector[] iArrayVector)
Constructs from an array of CATMathVectors, assuming it is ordered row after row.
o CATMathGridOfVectors
public CATMathGridOfVectors( const CATMathGridOfVectors& iGridToCopy)
Copy constructor.
o ~CATMathGridOfVectors
public virtual ~CATMathGridOfVectors()
Destructor

Methods


o ApplyTransformation
public virtual void ApplyTransformation( const CATMathTransformation& iTransfo)
Transforms the CATMathVectors of a CATMathGridOfVectors.
o GetVector
public CATMathVector GetVector(CATLONG32 iRow,
CATLONG32 iColumn) const
Returns the CATMathVector locating at a given row and column.
The indexes iRow and iColumn start at 0.
Use preferently the second method signature if you want to avoid an useless constructor.
o GetVector
public void GetVector(CATLONG32 iRow,
CATLONG32 iColumn,
CATMathVector& ioVector) const
Retrieves the CATMathVector locating at a given row and column.
The indexes iRow and iColumn start at 0.
o GetVectors
public CATMathVector * GetVectors()const
Returns the array of CATMathVectors sorted row by row.
A CATMathVector at the (iRow,iColumn) location is accessed using the formula iRow*NbRows+iColumn in the returned array.
Note that the returned array is used by the CATMathGridOfVectors and must not be deleted.
o SetNumberOfVectors
public void SetNumberOfVectors(CATLONG32 iCountRows,
CATLONG32 iCountColumns)
Sets a new size to this CATMathGridOfVectors.
o SetVector
public void SetVector( const CATMathVector& iVector,
CATLONG32 iRow,
CATLONG32 iColumn)
Initializes the values of a CATMathVector in the CATMathGridOfVectors.
The indexes iRow and iColumn start at 0.

This object is included in the file: CATMathGridOfVectors.h
If needed, your Imakefile.mk should include the module: CATMathematics

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