Mathematics CATMathSetOfPoints

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


public class CATMathSetOfPoints

Class representing a set of CATMathPoints.

The size is defined by a number of CATMathPoints NbPoints. The index of the first CATMathPoint is 0.
The SetNumberOfPoints method enlarges the memory if needed, while the Compress inherited method releases the free unused memory.


Constructor and Destructor Index


o CATMathSetOfPoints()
Constructs an empty CATMathSetOfPoints with no point.
o CATMathSetOfPoints(CATLONG32)
o CATMathSetOfPoints(CATMathSetOfPoints&)
Copy constructor.
o CATMathSetOfPoints(CATLONG32,CATMathPoint[])
o ~CATMathSetOfPoints()
Destructor.

Method Index


o ComputeAffineSpace(CATMathPoint&,CATMathVector&,CATMathVector&,CATMathVector&,CATMathSetOfPoints::AffineSpace&,double&,double,double*)
o ComputeAffineSupport(CATMathPoint&,CATMathVector&,CATMathVector&,CATMathVector&,CATMathSetOfPoints::AffineSpace&,double&,double,double*)
Returns the type of the mean affine sub-space generated by this set of points.
o DistanceTo(CATMathPoint&,CATLONG32&)
Returns the distance between a CATMathPoint and this CATMathSetOfPoints.
o DistanceTo(CATMathSetOfPoints*,CATLONG32&,CATLONG32&)
Returns the distance between this CATMathSetOfPoints and another CATMathSetOfPoints.
o GetAffineSpace(CATMathPoint&,CATMathVector&,CATMathVector&,CATMathVector&,CATMathSetOfPoints::AffineSpace&)
o GetNumberOfPoints()
Returns the number of points of this CATMathSetOfPoints.
o GetPoint(CATLONG32)
Returns the CATMathPoint locating at a given row and column.
o GetPoint(CATLONG32,CATMathPoint&)
Retrieves the CATMathPoint locating at a index.
o GetPoints()
Returns the array of CATMathPoints.
o Set(CATLONG32,CATMathPoint[])
Constructs from an array of CATMathPoints.
o SetNumberOfPoints(CATLONG32)
o SetPoint(CATMathPoint&,CATLONG32)
Initializes the values of a CATMathPoint in the CATMathSetOfPoints.
o SetPointNumber(CATLONG32)
Allocates the memory for this CATMathSetOfPoints.
o SquareDistanceTo(CATMathPoint&,CATLONG32&)
Returns the square distance between a CATMathPoint and this CATMathSetOfPoints.
o SquareDistanceTo(CATMathSetOfPoints*,CATLONG32&,CATLONG32&)
Returns the square distance between this CATMathSetOfPoints and another CATMathSetOfPoints.

Enumerated Type Index


o AffineSpace
Defines the type of space generated by a set of points.

Constructor and Destructor


o CATMathSetOfPoints
public CATMathSetOfPoints()
Constructs an empty CATMathSetOfPoints with no point.
o CATMathSetOfPoints
public CATMathSetOfPoints( iNbPoints)
Deprecated:
V5R20 SetPointNumber Constructs a CATMathSetOfPoints of a given size.
The memory is allocated, but the values of the points are not initialized. Use SetPoint to initialize them.
o CATMathSetOfPoints
public CATMathSetOfPoints( const iSetToCopy)
Copy constructor.
o CATMathSetOfPoints
public CATMathSetOfPoints( iNbPoints,
const iPointsToCopy)
Deprecated:
V5R20 Set Constructs from an array of CATMathPoints.
o ~CATMathSetOfPoints
public ~CATMathSetOfPoints()
Destructor.

Methods


o ComputeAffineSpace
public ComputeAffineSpace( ioOrigin,
ioVector1,
ioVector2,
ioVector3,
ioAffineSpace,
oDistance,
iTol,
weights= NULL)
Deprecated:
V5R15 ComputeAffineSupport Throws an error if an error occurs Returns the type of the mean affine sub-space generated by this set of points. Note that it does not return the type of the affine space of the smallest dimension passing through the points. The SPACE type is returned in very specific cases. The LINE and POINT types are returned in cases of degeneracy. In a general case, the PLANE type is returned and this is the mean plane which is calculated.
Parameters:
ioAffineSpace
The type of space generated by the set of points. According to it, different types of data are computed:
POINT
Only the ioOrigin is valued.
LINE
The ioOrigin and the ioVector1 are valuated.
PLANE
The ioOrigin and the first two vectors are valuated.
SPACE
The ioOrigin and the three vectors are valuated.
iTol
geometrical tolerance to decide if the set of points are in the affine support
iweights
array of weights of the Points in the Set used to compute an inertial matrix and the centre of mass.
o ComputeAffineSupport
public ComputeAffineSupport( ioOrigin,
ioVector1,
ioVector2,
ioVector3,
ioAffineSpace,
oDistance,
iTol,
weights= NULL)
Returns the type of the mean affine sub-space generated by this set of points. Note that it does not return the type of the affine space of the smallest dimension passing through the points. The SPACE type is returned in very specific cases. The LINE and POINT types are returned in cases of degeneracy. In a general case, the PLANE type is returned and this is the mean plane which is calculated.
Parameters:
ioAffineSpace
The type of space generated by the set of points. According to it, different types of data are computed:
POINT
Only the ioOrigin is valued.
LINE
The ioOrigin and the ioVector1 are valuated.
PLANE
The ioOrigin and the first two vectors are valuated.
SPACE
The ioOrigin and the three vectors are valuated.
iTol
geometrical tolerance to decide if the set of points are in the affine support
iweights
array of weights of the Points in the Set used to compute an inertial matrix and the centre of mass.
Returns:
E_FAIL if an error occurs , S_OK otherwise.
o DistanceTo
public DistanceTo( const iP,
ioIndex)
Returns the distance between a CATMathPoint and this CATMathSetOfPoints.
Parameters:
iP
The point to which the distance is computed.
ioIndex
The index (beginning at 0) of a point of this to which the distance is minimum.
o DistanceTo
public DistanceTo( const iSetOfPoints2,
ioIndex1,
ioIndex2)
Returns the distance between this CATMathSetOfPoints and another CATMathSetOfPoints.
Parameters:
iSetOfPoints2
The other set of points.
ioIndex1
The index (beginning at 0) of the point of this to which the distance is minimum.
ioIndex2
The index (beginning at 0) of the point of iSetOfPoints2 to which the distance is minimum.
o GetAffineSpace
public GetAffineSpace( ioOrigin,
ioVector1,
ioVector2,
ioVector3,
ioAffineSpace)
Deprecated:
V5R20 ComputeAffineSupport Throws an error if an error occurs Returns the type of the mean affine sub-space generated by this set of points. Note that it does not return the type of the affine space of the smallest dimension passing through the points. The SPACE type is returned in very specific cases. The LINE and POINT types are returned in cases of degeneracy. In a general case, the PLANE type is returned and this is the mean plane which is calculated.
Parameters:
ioAffineSpace
The type of space generated by the set of points. According to it, different types of data are computed:
POINT
Only the ioOrigin is valued.
LINE
The ioOrigin and the ioVector1 are valuated.
PLANE
The ioOrigin and the first two vectors are valuated.
SPACE
The ioOrigin and the three vectors are valuated.
o GetNumberOfPoints
public GetNumberOfPoints()
Returns the number of points of this CATMathSetOfPoints.
o GetPoint
public GetPoint( iIndexPoint)
Returns the CATMathPoint locating at a given row and column.
The index iIndexPoint starts at 0.
Use preferently the second method signature if you want to avoid an useless constructor.
o GetPoint
public GetPoint( iIndexPoint,
ioPoint)
Retrieves the CATMathPoint locating at a index.
The index iIndexPoint starts at 0.
o GetPoints
public GetPoints()
Returns the array of CATMathPoints.
Note that the returned array is used by the CATMathSetOfPoints and must not be deleted.
o Set
public Set( iNbPoints,
const iPointsToCopy)
Constructs from an array of CATMathPoints.
o SetNumberOfPoints
public SetNumberOfPoints( iCountPoints)
Deprecated:
V5R20 SetPointNumber Allocates the memory for this CATMathSetOfPoints.
o SetPoint
public SetPoint( const iPoint,
iIndex)
Initializes the values of a CATMathPoint in the CATMathSetOfPoints.
The index iIndexPoint starts at 0.
o SetPointNumber
public SetPointNumber( iCountPoints)
Allocates the memory for this CATMathSetOfPoints.
Returns:
E_FAIL if the given data is not positive, S_OK otherwise.
o SquareDistanceTo
public SquareDistanceTo( const iP,
ioIndex)
Returns the square distance between a CATMathPoint and this CATMathSetOfPoints.
Parameters:
iP
The point to which the distance is computed.
ioIndex
The index (beginning at 0) of the point of this to which the distance is minimum.
o SquareDistanceTo
public SquareDistanceTo( const iSetOfPoints2,
ioIndex1,
ioIndex2)
Returns the square distance between this CATMathSetOfPoints and another CATMathSetOfPoints.
Parameters:
iSetOfPoints2
The other set of points.
ioIndex1
The index (beginning at 0) of the point of this to which the distance is minimum.
ioIndex2
The index (beginning at 0) of the point of iSetOfPoints2 to which the distance is minimum.

Enumerated Types


o AffineSpace
enum AffineSpace {
  POINT,
  LINE,
  PLANE,
  SPACE
}
Defines the type of space generated by a set of points.
Parameters:
POINT
All the points are at the same position.
LINE
The points are aligned on a line.
PLANE
The points are lying on a plane.
SPACE
The points represent the space .

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

Copyright © 1999-2014, Dassault Systèmes. All rights reserved.