MachiningUIUseItf Interface DELIMfgPrismaticReworkArea

Usage: an implementation of this interface is supplied and you must use it as is. You should not reimplement it.


interface DELIMfgPrismaticReworkArea

Interface to manage a user rework feature.

Role: CATIMfgPrismaticReworkArea has methods to manage a user rework feature.


Method Index


o Compute()
Computes resulting contours of the Mfg2DRAFeature.
o GetPrismaticMachiningArea(CATBaseUnknown_var&)
Retrieves the Mfg2DMAFeature of the Mfg2DRAFeature.
o GetResultingContours(CATListOfInt&,CATListOfInt&,CATLISTP(CATMathPoint2D)&,CATListOfInt&,CATListOfInt&)
Retrieves resulting contours once they have been computed on the Mfg2DRAFeature.
o SetPrismaticMachiningArea(CATBaseUnknown_var&)
Initializes the Mfg2DRAFeature with a Mfg2DMAFeature.

Methods


o Compute
public virtual Compute()
Computes resulting contours of the Mfg2DRAFeature.
o GetPrismaticMachiningArea
public virtual GetPrismaticMachiningArea( oManufacturingArea)
Retrieves the Mfg2DMAFeature of the Mfg2DRAFeature.
o GetResultingContours
public virtual GetResultingContours( oContourType,
oNbOfPointsByContour,
oListOfPoints,
oPointType,
oHardness)
Retrieves resulting contours once they have been computed on the Mfg2DRAFeature.
Parameters:
oContourType
returns the type for each contour
Legal values:
"0": Corner
"1": Channel
"2": Island
oNbOfPointsByContour
returns the number of points for each contour
oListOfPoints
2D (x,y) coordinates for each point
oPointType
returns the type for each point
Legal values:
"0": Center -> the corresponding point is the middle of an arc of a circle whose beginning point is Point-1 and whose ending point is Point+1.
"1": Other -> the corresponding point can be the beginning or the end of a segment or the beginning or the end of a circle.
oHardness
returns the hardness mode for each point
The hardness to take into account for a segment or an arc of a circle is the one defined for the first point of the element.
Legal values:
"0": Hard
"1": Soft
Example:
The following example determines the first contour of a Mfg2DRAFeature
 int index = 1;

 CATMathPoint2D * StartPoint = oListOfPoints[index];
 CATMathPoint2D * MiddlePoint = NULL;
 CATMathPoint2D * EndPoint = NULL;

 int IsSoft = oHardness[index];

 index++;

 while (index <= oNbOfPointsByContour[1])
 {

   if (oListOfPoints[index] == 1) // it's not the middle of an arc of a circle, so it is the end of a segment
   {
     EndPoint = oListOfPoints[index];
 
     // creation of the segment [StartPoint/EndPoint] with Hardness mode = IsSoft
   }
   else     // circle
   {
     MiddlePoint = oListOfPoints[index];
     index++;
     if (index > oNbOfPointsByContour[1])
     {
       index = 1;
       // if this point is the center of a circle, then there's an error
       if (oListOfPoints[index] == 0) {ERROR}
     }

     EndPoint = oListOfPoints[index];

     // creation of the circle [StartPoint/MiddlePoint/EndPoint] with Hardness mode = IsSoft
   }
 
   StartPoint = EndPoint;
   MiddlePoint = NULL;
   EndPoint = NULL;

   IsSoft = oHardness[index];

   if(index == 1)
   {
     index = oNbOfPointsByContour[1] + 1; // to exit the while loop
   }
 }  // end while loop
 
o SetPrismaticMachiningArea
public virtual SetPrismaticMachiningArea( iManufacturingArea)
Initializes the Mfg2DRAFeature with a Mfg2DMAFeature.

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

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