Mathematics 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)
-
- o
CATMathGridOfVectors(CATMathGridOfVectors&)
- Copy constructor.
- o
CATMathGridOfVectors(CATLONG32,CATLONG32,CATMathVector[])
-
- o
~CATMathGridOfVectors()
- Destructor
Method Index
- o
ApplyTransformation(CATMathTransformation&)
- Transforms the CATMathVectors of a CATMathGridOfVectors.
- o
GetOneVector(CATLONG32,CATLONG32,CATMathVector&)
- Retrieves the CATMathVector locating at a given row and column.
- o
GetVector(CATLONG32,CATLONG32)
-
- o
GetVector(CATLONG32,CATLONG32,CATMathVector&)
-
- o
GetVectors()
- Returns the array of CATMathVectors sorted row by row.
- o
Set(CATLONG32,CATLONG32,CATMathVector[])
- Modifies the set from an array of CATMathVectors, assuming it is ordered row
after row.
- o
SetNumberOfVectors(CATLONG32,CATLONG32)
-
- o
SetOneVector(CATMathVector&,CATLONG32,CATLONG32)
- Initializes the values of a CATMathVector in the CATMathGridOfVectors.
- o
SetVector(CATMathVector&,CATLONG32,CATLONG32)
-
- o
SetVectorNumber(CATLONG32,CATLONG32)
- Sets a new size to this CATMathGridOfVectors.
Constructor and Destructor
o CATMathGridOfVectors
public CATMathGridOfVectors( | ) |
-
Constructs an empty CATMathGridOfVectors with 0 row and 0 column.
o CATMathGridOfVectors
public CATMathGridOfVectors( | | iNbRows, |
| | iNbColumns) |
-
- Deprecated:
- V5R20 SetVectorNumber
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( | const | iGridToCopy) |
-
Copy constructor.
o CATMathGridOfVectors
public CATMathGridOfVectors( | | iNbRows, |
| | iNbColumns, |
| const | iArrayVector) |
-
- Deprecated:
- V5R20 Set
Constructs from an array of CATMathVectors, assuming it is ordered row
after row.
o ~CATMathGridOfVectors
public virtual ~CATMathGridOfVectors( | ) |
-
Destructor
Methods
o ApplyTransformation
public virtual ApplyTransformation( | const | iTransfo) |
-
Transforms the CATMathVectors of a CATMathGridOfVectors.
o GetOneVector
public GetOneVector( | | iRow, |
| | iColumn, |
| | ioVector) |
-
Retrieves the CATMathVector locating at a given row and column.
The indexes iRow and iColumn start at 0.
- Returns:
- E_FAIL if the given indexes are uncompatible, S_OK otherwise.
o GetVector
public GetVector( | | iRow, |
| | iColumn) |
-
- Deprecated:
- V5R20 GetOneVector
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 GetVector( | | iRow, |
| | iColumn, |
| | ioVector) |
-
- Deprecated:
- V5R20 GetOneVector
Retrieves the CATMathVector locating at a given row and column.
The indexes iRow and iColumn start at 0.
o GetVectors
-
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 Set
public Set( | | iNbRows, |
| | iNbColumns, |
| const | iArrayVector) |
-
Modifies the set from an array of CATMathVectors, assuming it is ordered row
after row.
- Returns:
- E_FAIL if the given indexes are inconsistent, S_OK otherwise.
o SetNumberOfVectors
public SetNumberOfVectors( | | iCountRows, |
| | iCountColumns) |
-
- Deprecated:
- V5R20 SetVectorNumber
Sets a new size to this CATMathGridOfVectors.
o SetOneVector
public SetOneVector( | const | iVector, |
| | iRow, |
| | iColumn) |
-
Initializes the values of a CATMathVector in the CATMathGridOfVectors.
The indexes iRow and iColumn start at 0.
- Returns:
- E_FAIL if the given indexes are uncompatible, S_OK otherwise.
o SetVector
public SetVector( | const | iVector, |
| | iRow, |
| | iColumn) |
-
- Deprecated:
- V5R20 SetOneVector
Initializes the values of a CATMathVector in the CATMathGridOfVectors.
The indexes iRow and iColumn start at 0.
o SetVectorNumber
public SetVectorNumber( | | iCountRows, |
| | iCountColumns) |
-
Sets a new size to this CATMathGridOfVectors.
- Returns:
- E_FAIL if the given indexes are not positive, S_OK otherwise.
This object is included in the file: CATMathGridOfVectors.h
If needed, your Imakefile.mk should include the module: CATMathematics
Copyright © 1999-2014, Dassault Systèmes. All rights reserved.