All Frameworks Class Hierarchy This Framework Previous Next Indexes
SketcherInterfaces Interface CATI2DHybConstraint
System.IUnknown
|
+---System.IDispatch
|
+---System.CATBaseUnknown
|
+---CATI2DHybConstraint
Usage: an implementation of this interface is supplied and you must use it as is. You should not reimplement it.
interface CATI2DHybConstraint
Interface to manage a hybrid constraint.
Role: This interface is used to manage a hybrid constraint.
Hybrid constraints are used to constrained 2D and 3D geometries
when those 3D geometries are in an other document.
- See also:
- CATISketchElement, CATISketchExternalReferences
Method Index
- o
AddConstraint()
- Plugs the hybrid constraint in the solver.
- o
Analyse(CATRawCollint&)
- Analyse the hybrid constraint and returns a list of POSSIBLE
constraint types according to the referenced elements.
- o
Get2DCstType(CAT2DCstType*)
- Returns the kind of the hybrid constraint.
- o
GetElements(CATListValCATBaseUnknown_var&,CATListValCATBaseUnknown_var&,CATListValCATBaseUnknown_var&)
- Retrieves the constrained geometries.
Methods
o AddConstraint
public virtual HRESULT AddConstraint( | )const = 0 |
-
Plugs the hybrid constraint in the solver.
The constrained 3D geometries are fixed in the dimensional system.
- Returns:
- HRESULT
o Analyse
-
Analyse the hybrid constraint and returns a list of POSSIBLE
constraint types according to the referenced elements.
The returned types are defined into CAT2DCstType.h.
Only the logical constraint types are returned, but not the dimension types.
Output:
oCstTypes : List of possible 2D logical constraint types on the referenced elements.
o Get2DCstType
-
Returns the kind of the hybrid constraint.
- Parameters:
-
- CAT2DCstType
- *oType
[out] The expected 2D constraint type.
- Returns:
- HRESULT
o GetElements
public virtual HRESULT GetElements( | CATListValCATBaseUnknown_var& | oFirstGeometries, |
| CATListValCATBaseUnknown_var& | oSecondGeometries, |
| CATListValCATBaseUnknown_var& | oThirdGeometries) const = 0 |
-
Retrieves the constrained geometries.
- Parameters:
-
- CATListValCATBaseUnknown_var&
- oFirstGeometries
[out] The first geometries
- CATListValCATBaseUnknown_var&
- oSecondGeometries
[out] The second geometries
- CATListValCATBaseUnknown_var&
- oThirdGeometries
[out] The third geometries
3D geometries must be given as CATPCurves
in the absolute axis system coordinates of the sketch.
Returns:
HRESULT
This object is included in the file: CATI2DHybConstraint.h
If needed, your Imakefile.mk should include the module: CATSketcherInterfaces