CATGSMUseItf Interface CATIGSMUseGridSet
Usage: an implementation of this interface is supplied and you must use it as is. You should not reimplement it.
interface CATIGSMUseGridSet
Interface to GridSet feature.
Role: Allows you to access/modify data of the GridSet feature.
GridSet feature allows to generate sets of parallel GridFaces.
- See also:
-
- See also:
- ,
Method Index
- o
AddExtremeFace(double,CATIGSMUseGridSubset_var&,CATBoolean,CATIGSMUseGridFace_var&)
- Adds a face at the end of GridSet.
- o
AddFace(double,CATIGSMUseGridSubset_var&,CATIGSMUseGridFace_var&)
- Adds a face.
- o
AddSubset(CATUnicodeString&,CATIGSMUseGridSubset_var&)
- Adds a subset.
- o
Build(CATListOfDouble,CATListOfCATUnicodeString)
- Build or modify a GridSet.
- o
ChangeFaceRelOffset(CATIGSMUseGridFace_var&,double)
- Changes the relative offset of a face (It also moves next faces).
- o
ChangeFaceSubset(CATIGSMUseGridFace_var&,CATIGSMUseGridSubset_var&)
- Changes the subset aggregation of a face.
- o
ChangeSubsetPrefix(CATIGSMUseGridSubset_var&,CATUnicodeString&)
- Changes the prefix of a subset.
- o
GetDirection(CATIGSMUseDirection_var&)
- Gets the direction.
- o
GetExtremeFaces(CATIGSMUseGridFace_var&,CATIGSMUseGridFace_var&,double&,double&)
- Gets the both (before and after origin) farthest GridFace according to origin.
- o
GetFace(double,CATIGSMUseGridFace_var&)
- Gets a face.
- o
GetFaces(CATLISTV(CATIMmiMechanicalFeature_var)&)
- Gets all faces.
- o
GetFacesSorted(CATLISTV(CATIMmiMechanicalFeature_var)&)
- Gets all faces sorted by absolute offsets.
- o
GetFacesSorted(CATLISTV(CATIMmiMechanicalFeature_var)&,CATListOfDouble&)
- Gets all faces sorted by absolute offsets.
- o
GetFacesSorted(CATLISTV(CATIMmiMechanicalFeature_var)&,CATIGSMUseGridFace_var&,CATLISTV(CATIMmiMechanicalFeature_var)&)
- Gets all GridFaces (except the origin one) sorted by absolute offsets.
- o
GetFacesSorted(CATLISTV(CATIMmiMechanicalFeature_var)&,CATIGSMUseGridFace_var&,CATLISTV(CATIMmiMechanicalFeature_var)&,CATListOfDouble&,CATListOfDouble&)
- Gets all GridFaces (except the origin one) sorted by absolute offsets.
- o
GetNbFaces(int&)
- Gets the number of faces.
- o
GetNbFaces(int&,CATBoolean&,int&)
- Gets the number of faces.
- o
GetNbSubsets(int&)
- Gets the number of subsets.
- o
GetOrientation(CATBoolean&)
- Gets the orientation.
- o
GetOrigin(CATIMmiMechanicalFeature_var&)
- Gets the origin.
- o
GetSubset(CATUnicodeString&,CATIGSMUseGridSubset_var&)
- Gets a subset.
- o
GetSubsets(CATLISTV(CATIMmiMechanicalFeature_var)&)
- Gets all subsets.
- o
GetVisibleExtremeFaces(CATIGSMUseGridFace_var&,CATIGSMUseGridFace_var&,double&,double&)
- Gets the both (before and after origin) farthest GridFaces, among visible ones, according to origin.
- o
InvertOrientation()
- Inverts the GridSet's orientation.
- o
RemoveExtremeFaces(int,int)
- Shrink GridSet (deleted faces are extreme ones).
- o
RemoveFace(CATIGSMUseGridFace_var&)
- Removes a face (It also moves next faces).
- o
RemoveFaces()
- Removes all GridFaces.
- o
RemoveSubset(CATIGSMUseGridSubset_var&)
- Removes a subset and all its agregated faces.
- o
RemoveSubsets()
- Removes all subsets and all faces.
- o
SetDirection(CATIGSMUseDirection_var&)
- Sets the direction.
- o
SetOrientation(CATBoolean)
- Sets the orientation.
- o
SetOrigin(CATIMmiMechanicalFeature_var&)
- Sets the origin.
Methods
o AddExtremeFace
public virtual AddExtremeFace( | | iRelOffset, |
| const | ihISubset, |
| | iAfterOrigin, |
| | ohIFace) |
-
Adds a face at the end of GridSet.
Remark: In a same GridSet, two GridFaces could not have the same offset.
- Parameters:
-
- iRelOffset
- The relative offset of the face to add according to the extremum face.
- ihISubset
- The subset where the face must be aggregated.
- iAfterOrigin
- Determine at which extremity the face must be added.
- ohIFace
- The created face.
- Returns:
- S_OK if the face has been created
E_INVALIDARG if "ihISubset" is equal to NULL_VAR or if "iRelOffset" is less than or equal to 0
E_FAIL if an error occured
- See also:
-
- See also:
-
o AddFace
public virtual AddFace( | | iAbsOffset, |
| const | ihISubset, |
| | ohIFace) |
-
Adds a face.
Remark: In a same GridSet, two GridFaces could not have the same offset.
- Parameters:
-
- iAbsOffset
- The absolute offset of the face to add.
- ihISubset
- The subset where the face must be aggregated.
- ohIFace
- The created face.
- Returns:
- S_OK if the face has been created
E_INVALIDARG if "ihISubset" is equal to NULL_VAR or if a face with the same offset already exist
E_FAIL if an error occured
- See also:
-
- See also:
-
o AddSubset
public virtual AddSubset( | const | iPrefix, |
| | ohISubset) |
-
Adds a subset.
Remark: in a same GridSet, two GridSubsets could not have the same prefix.
- Parameters:
-
- iPrefix
- The prefix of the subset to add.
- ohISubset
- The created subset.
- Returns:
- S_OK if the subset has been created
E_INVALIDARG if a subset with the same prefix already exist or if prefix is an empty string
E_FAIL if an error occured
- See also:
-
o Build
public virtual Build( | | iAbsOffsets, |
| | iSubsetsPrefix) |
-
Build or modify a GridSet.
Remark: In modification cases, existing faces are re-used (but not subsets).
The face order is kept to avoid losing associativities.
- Parameters:
-
- iAbsOffsets
- The absolute offsets where the faces must be created.
- iSubsetsPrefix
- The prefix of subsets where to add the faces.
The subset prefix must be specified for each face.
- Returns:
- S_OK all is done
E_INVALIDARG if lists does not have the same size or if 2 faces have the same absolute offsets
E_FAIL an error occured
o ChangeFaceRelOffset
public virtual ChangeFaceRelOffset( | const | ihIFace, |
| | iRelOffset) |
-
Changes the relative offset of a face (It also moves next faces).
- Parameters:
-
- ihIFace
- The face where the offset must be changed.
- iRelOffset
- The new relative offset (in absolute value).
- Returns:
- S_OK if the face has been moved
E_INVALIDARG if "ihIFace" is equal to NULL_var, "iRelOffset" is smaller than zero.
E_FAIL if an error occured
- See also:
-
o ChangeFaceSubset
public virtual ChangeFaceSubset( | const | ihIFace, |
| const | ihISubset) |
-
Changes the subset aggregation of a face.
- Parameters:
-
- ihIFace
- The face where the subset must be changed.
- ihISubset
- The new subset.
- Returns:
- S_OK if the face has been moved
E_INVALIDARG if "ihIFace" or "ihISubset" is NULL_var
E_FAIL if an error occured
- See also:
-
- See also:
-
o ChangeSubsetPrefix
public virtual ChangeSubsetPrefix( | const | ihISubset, |
| const | iPrefix) |
-
Changes the prefix of a subset.
- Parameters:
-
- ihISubset
- The subset where the prefix must be changed.
- iPrefix
- The new prefix.
- Returns:
- S_OK if the prefix has been changed
E_INVALIDARG if a subset with the same prefix already exist or if "ihISubset" is equal to NULL_var
E_FAIL if an error occured
- See also:
-
- See also:
-
o GetDirection
public virtual GetDirection( | | ohIDirection) |
-
Gets the direction.
- Parameters:
-
- ohIDirection
- GridSet's direction.
- See also:
-
o GetExtremeFaces
public virtual GetExtremeFaces( | | ohIFaceBfr, |
| | ohIFaceAft, |
| | oAbsOffsetBfr, |
| | oAbsOffsetAft) |
-
Gets the both (before and after origin) farthest GridFace according to origin.
- Parameters:
-
- ohIFaceBfr
- The farthest GridFace before origin
Return NULL_var if there is (no GridFace before origin) and (no GridFace at origin)
- ohIFaceAft
- The farthest GridFace after origin
Return NULL_var if there is (no GridFace after origin) and (no GridFace at origin)
- oAbsOffsetBfr
- Signed absolute offset (in model unit (mm)) of "ohIFaceBfr"
Return 0.0 if there is (no GridFace before origin) and (no GridFace at origin)
- oAbsOffsetAft
- Signed absolute offset (in model unit (mm)) of "ohIFaceAft"
Return 0.0 if there is (no GridFace after origin) and (no GridFace at origin)
- See also:
-
o GetFace
public virtual GetFace( | | iAbsOffset, |
| | ohIFace) |
-
Gets a face.
- Parameters:
-
- iAbsOffset
- The absolute offset to retrieve.
- ohIFace
- The returned face (NULL_var if not found).
- Returns:
- S_OK if the face was found
E_INVALIDARG if the face was not found
E_FAIL if an error occured
- See also:
-
o GetFaces
public virtual GetFaces( | | oLstFaces) |
-
Gets all faces.
- Parameters:
-
- oLstFaces
- List of faces.
- See also:
-
o GetFacesSorted
public virtual GetFacesSorted( | | oLstFaces) |
-
Gets all faces sorted by absolute offsets.
- Parameters:
-
- oLstFaces
- List of faces sorted by absolute offsets (increasing order).
- See also:
-
o GetFacesSorted
public virtual GetFacesSorted( | | oLstFaces, |
| | oLstAbsOffsets) |
-
Gets all faces sorted by absolute offsets.
- Parameters:
-
- oLstFaces
- List of faces sorted by absolute offsets (increasing order).
- oLstAbsOffsets
- List of absolute offsets (in model unit (mm)) of "oLstFaces".
- See also:
-
o GetFacesSorted
public virtual GetFacesSorted( | | oLstFacesBfr, |
| | ohIOriginFace, |
| | oLstFacesAft) |
-
Gets all GridFaces (except the origin one) sorted by absolute offsets.
- Parameters:
-
- oLstFacesBfr
- List of GridFaces (before the origin) sorted by absolute offsets (decreasing order).
- oOriginFace
- The origin face.
- oLstFacesAft
- List of GridFaces (after the origin) sorted by absolute offsets (increasing order).
- See also:
-
o GetFacesSorted
public virtual GetFacesSorted( | | oLstFacesBfr, |
| | ohIOriginFace, |
| | oLstFacesAft, |
| | oLstAbsOffsetsBfr, |
| | oLstAbsOffsetsAft) |
-
Gets all GridFaces (except the origin one) sorted by absolute offsets.
- Parameters:
-
- oLstFacesBfr
- List of GridFaces (before the origin) sorted by absolute offsets (decreasing order).
- oOriginFace
- The origin face.
- oLstFacesAft
- List of GridFaces (after the origin) sorted by absolute offsets (increasing order).
- oLstAbsOffsetsBfr
- List of absolute offsets (in model unit (mm)) of "oLstFacesBfr".
- oLstAbsOffsetsAft
- List of absolute offsets (in model unit (mm)) of "oFacesAftOrg".
- See also:
-
o GetNbFaces
public virtual GetNbFaces( | | oNbFaces) |
-
Gets the number of faces.
- Parameters:
-
- oNbFaces
- The number of faces.
o GetNbFaces
public virtual GetNbFaces( | | oNbFacesBfr, |
| | oOriginFaceExist, |
| | oNbFacesAft) |
-
Gets the number of faces.
- Parameters:
-
- oNbFacesBfr
- The number of faces before origin.
- oOriginFaceExist
- If this subset contains the origin face.
- oNbFacesAft
- The number of faces after origin.
o GetNbSubsets
public virtual GetNbSubsets( | | oNbSubsets) |
-
Gets the number of subsets.
- Parameters:
-
- oNbSubsets
- The number of subsets.
o GetOrientation
public virtual GetOrientation( | | oOrient) |
-
Gets the orientation.
- Parameters:
-
- oOrient
- GridSet's orientation.
(TRUE means that orientation is the same as direction)
o GetOrigin
public virtual GetOrigin( | | ohIOrigin) |
-
Gets the origin.
- Parameters:
-
- ohIOrigin
- GridSet's origin: a point.
- See also:
-
o GetSubset
public virtual GetSubset( | const | iPrefix, |
| | ohISubset) |
-
Gets a subset.
- Parameters:
-
- iPrefix
- The prefix to retrieve.
- ohISubset
- The returned subset (NULL_var if not found).
- Returns:
- S_OK if the subset has been found
E_INVALIDARG if the prefix has not been found
E_FAIL if an error occured
- See also:
-
o GetSubsets
public virtual GetSubsets( | | oLstSubsets) |
-
Gets all subsets.
- Parameters:
-
- oLstSubsets
- List of subsets.
- See also:
-
o GetVisibleExtremeFaces
public virtual GetVisibleExtremeFaces( | | ohIFaceBfr, |
| | ohIFaceAft, |
| | oAbsOffsetBfr, |
| | oAbsOffsetAft) |
-
Gets the both (before and after origin) farthest GridFaces, among visible ones, according to origin.
- Parameters:
-
- ohIFaceBfr
- The farthest not hidden GridFace before origin
Return NULL_var if there is (no GridFace before origin) and (no GridFace at origin)
- ohIFaceAft
- The farthest not hidden GridFace after origin
Return NULL_var if there is (no GridFace after origin) and (no GridFace at origin)
- oAbsOffsetBfr
- Signed absolute offset (in model unit (mm)) of "ohIFaceBfr"
- oAbsOffsetAft
- Signed absolute offset (in model unit (mm)) of "ohIFaceAft"
- See also:
-
o InvertOrientation
public virtual InvertOrientation( | ) |
-
Inverts the GridSet's orientation.
o RemoveExtremeFaces
public virtual RemoveExtremeFaces( | | iNbToCropBfr, |
| | iNbToCropAft) |
-
Shrink GridSet (deleted faces are extreme ones).
The origin face will never been deleted with this method.
- Parameters:
-
- iNbToCropBfr
- Number of before origin GridFace to remove
- iNbToCropAft
- Number of after origin GridFace to remove
o RemoveFace
public virtual RemoveFace( | | iohIFace) |
-
Removes a face (It also moves next faces).
- Parameters:
-
- iohIFace
- The face to remove.
"iohIFace" is set to NULL_var if the remove operation ended successfully.
- Returns:
- S_OK if the face has been removed
E_INVALIDARG if "iohIFace" is equal to NULL_var
E_FAIL if an error occured
- See also:
-
o RemoveFaces
public virtual RemoveFaces( | ) |
-
Removes all GridFaces.
o RemoveSubset
public virtual RemoveSubset( | | iohISubset) |
-
Removes a subset and all its agregated faces.
- Parameters:
-
- iohISubset
- The subset to remove.
"iohISubset" is set to NULL_var if the remove operation ended successfully.
- Returns:
- S_OK if the subset has been removed
E_INVALIDARG if "iohISubset" is equal to NULL_var
E_FAIL if an error occured
- See also:
-
o RemoveSubsets
public virtual RemoveSubsets( | ) |
-
Removes all subsets and all faces.
o SetDirection
public virtual SetDirection( | const | ihIDirection) |
-
Sets the direction.
- Parameters:
-
- ihIDirection
- GridSet's direction.
- Returns:
- S_OK if the direction has been set
S_FALSE if the direction was already "ihIDirection"
E_FAIL if an error occured
- See also:
-
o SetOrientation
public virtual SetOrientation( | | iOrient) |
-
Sets the orientation.
- Parameters:
-
- iOrient
- GridSet's orientation.
(TRUE means that orientation will be the same as direction)
- Returns:
- S_OK if the orientation has been set
S_FALSE if the orientation was already "iOrient"
E_FAIL if an error occured
o SetOrigin
public virtual SetOrigin( | const | ihIOrigin) |
-
Sets the origin.
- Parameters:
-
- ihIOrigin
- GridSet's origin: a point.
- Returns:
- S_OK if the origin has been set
S_FALSE if the origin was already "ihIOrigin"
E_FAIL if an error occured
- See also:
-
This object is included in the file: CATIGSMUseGridSet.h
If needed, your Imakefile.mk should include the module: CATGSMUseItf
Copyright © 1999-2014, Dassault Systèmes. All rights reserved.