All Frameworks  Class Hierarchy  This Framework  Previous  Next  Indexes

Mathematics Class CATMathGrid

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

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


public class CATMathGrid

Class handling the allocation of grids of CATMathGridOfPoints and CATMathGridOfVectors.

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


Constructor and Destructor Index


o ~CATMathGrid()
Destructor.

Method Index


o CopyIntoGrid(CATMathGrid&,CATLONG32,CATLONG32)
Copies a smaller grid into a subgrid of a larger one.
o GetNumberOfColumns()
Returns the number of columns of a CATMathGrid.
o GetNumberOfRows()
Returns the number of rows of a CATMathGrid.
o ResizeGrid(CATLONG32,CATLONG32)
Changes the number of rows and columns, without changing the total number of elements.
o ReverseColumnsOfGrid()
Vertical reverse of the grid.
o ReverseRowsOfGrid()
Horizontal reverse of the grid.
o SetNumberOfElements(CATLONG32,CATLONG32)
Modifies the dimension of a CATMathGrid.
o TransposeGrid()
Exchanges the rows and columns.
o operator =(CATMathGrid&)
Defines the affectation operator.

Constructor and Destructor


o ~CATMathGrid
public virtual ~CATMathGrid()
Destructor.

Methods


o CopyIntoGrid
public void CopyIntoGrid( const CATMathGrid& iSmallerGrid,
CATLONG32 iStartRow,
CATLONG32 iColStartColumn)
Copies a smaller grid into a subgrid of a larger one.
o GetNumberOfColumns
public INLINE CATLONG32 GetNumberOfColumns()const
Returns the number of columns of a CATMathGrid.
o GetNumberOfRows
public INLINE CATLONG32 GetNumberOfRows()const
Returns the number of rows of a CATMathGrid.
o ResizeGrid
public void ResizeGrid(CATLONG32 iCountRows,
CATLONG32 iCountColumns)
Changes the number of rows and columns, without changing the total number of elements.
If NbRows * NbColumns does not remain constant, an exception is arised.
o ReverseColumnsOfGrid
public void ReverseColumnsOfGrid()
Vertical reverse of the grid.
The last column becomes the first one, and so one.
o ReverseRowsOfGrid
public void ReverseRowsOfGrid()
Horizontal reverse of the grid.
The last row becomes the first one, and so one.
o SetNumberOfElements
public virtual void SetNumberOfElements(CATLONG32 iNbRows,
CATLONG32 iNbColumns)
Modifies the dimension of a CATMathGrid.
Re-allocates the memory if necessary.
o TransposeGrid
public void TransposeGrid()
Exchanges the rows and columns.
o operator =
public const CATMathGrid & operator =( const CATMathGrid& iGridToCopy)
Defines the affectation operator.

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

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