All Frameworks  Class Hierarchy  This Framework  Previous  Next  Indexes

SketcherInterfaces Interface CATISketchEditor

System.IUnknown
  |
  +---System.IDispatch
    |
    +---System.CATBaseUnknown
      |
      +---CATISketchEditor
 

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


interface CATISketchEditor

The methods of this interface provide the client with the functionality for handling the sketch's geometry.
Role: This interface is used to manage the geometry with the variational constraint solver.


Method Index


o CloseEdition(int,int)
Close edition.
o Evaluate()
Evaluation of geometric elements with respect to constraints.
o Evaluate(CATListValCATI2DWFGeometry_var&)
Geometry evaluation with soft reference.
o InEdition()
Tells if edition is opened.
o OpenEdition(int)
Open edition.
o ResetGroup(int)
Reset the current group of geometric elements.
o SaveEdition()
Save edition.
o SetGroup(CATListValCATI2DWFGeometry_var&,int,double*)
Set the current group of geometric elements.
o Transform(CATListValCATI2DWFGeometry_var&,CATMathTransformation2D*,double*,double*)
Transformation and evaluation of a group of geometric element.
o TransformGroup(CATMathTransformation2D&,CAT2DSolvingMode,double*)
Transformation of the current group of geometric elements under constraints.

Methods


o CloseEdition
public virtual HRESULT CloseEdition( const int iUnload=0,
const int iValuateAttr=0) = 0
Close edition.
Returns:
HRESULT
o Evaluate
public virtual HRESULT Evaluate()= 0
Evaluation of geometric elements with respect to constraints.
Returns:
HRESULT
o Evaluate
public virtual HRESULT Evaluate( const CATListValCATI2DWFGeometry_var& iSoftReferences) = 0
Geometry evaluation with soft reference.
Parameters:
const
CATLISTV(CATI2DWFGeometry_var) &iSoftReference [in] The list of handlers corresponding to the soft reference elements. The solver tries to keep fixed these elements (the first one is the more prioritary).
Returns:
HRESULT
o InEdition
public virtual int InEdition()= 0
Tells if edition is opened.
Returns:
int
1
The shetch is in edition.
0
The sketch is not in edition.
o OpenEdition
public virtual HRESULT OpenEdition( const int iValuateAttr=0) = 0
Open edition.
Returns:
HRESULT
o ResetGroup
public virtual HRESULT ResetGroup( const int iContext=0) = 0
Reset the current group of geometric elements.
Parameters:
const
int iContext [in] The manipulation ending mode.
0
The manipulation ends as usual.
Returns:
HRESULT
o SaveEdition
public virtual HRESULT SaveEdition()= 0
Save edition.
Returns:
HRESULT
o SetGroup
public virtual HRESULT SetGroup( const CATListValCATI2DWFGeometry_var& iGeoms,
const int iContext=1,
const double* iDragPoint=NULL )= 0
Set the current group of geometric elements.
Parameters:
const
CATLISTV(CATI2DWFGeometry_var) &iGeoms [in] The list of handlers corresponding to the elements to be manipulated.
const
int iContext [in] The manipulation mode.
0
The movable geometric elements are considered.
1
The end-points of movable curves are automatically added.
Returns:
HRESULT
o Transform
public virtual HRESULT Transform( const CATListValCATI2DWFGeometry_var& iGeoms,
CATMathTransformation2D* pTransfos,
double* iRadiiX=NULL,
double* iRadiiY=NULL) = 0
Transformation and evaluation of a group of geometric element.
Parameters:
const
CATLISTV(CATI2DWFGeometry_var) &iGeoms [in] The list of handlers corresponding to geometric elements to transform.
CATMathTransformation2D
*ioTransfos [in] The array of transformations to apply to geometric elements (same size than the list).
double
*iRadiiX [in] The array of (major-)radii to modify on circles and ellipses (same size than the list). This argument is optional.
double
*iRadiiY [in] The array of minor-radii to modify on ellipses (same size than the list). This argument is optional.
Returns:
HRESULT
o TransformGroup
public virtual HRESULT TransformGroup(CATMathTransformation2D& ioTransfo,
const CAT2DSolvingMode iSolvingMode=Solving2DMode_MinimumMove,
const double* iRadius=NULL) = 0
Transformation of the current group of geometric elements under constraints.
Parameters:
CATMathTransformation2D
&ioTransfo [inout] The 2D transformation to apply if possible.
const
CAT2DSolvingMode iSolvingMode [in] The solving mode. This argument is optional.
Returns:
HRESULT

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

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