All Frameworks  Class Hierarchy  This Framework  Previous  Next  Indexes

DraftingInterfaces Interface CATIDrwLeader

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

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


interface CATIDrwLeader

Interface of leader objects.

See also:
CATIDrwEltWithLeader


Method Index


o AddInterruption(double[2],double[2])
Add a interruption to a leader.
o AddPoint(int&,double&,double&)
Add a point to a leader.
o GetAllAround(CATBoolean*)
Get the status of AllAround.
o GetAnchorPoint()
Get the anchor point of the leader on the annotation.
o GetAnchorPoint(int&,int&)
Get the anchor point of the leader on the annotation.
o GetInterruptions(double**,int*)
Get interruptions of leader path.
o GetMoveMode(CATBoolean*)
Get the status of MoveMode.
o GetNbInterruption(int*)
Get the number of interruptions of leader path.
o GetNbPoint()
Returns the number of points of a leader.
o GetPoint(int)
Returns a particular point of a leader.
o GetPoints()
Returns points of a leader.
o GetSymbolType()
Gets the ending symbol.
o ModifyPoint(int,double,double)
Modifies a particular point of a leader.
o RemoveInterruption(int)
Remove a interruption to a leader.
o RemovePoint(int)
Erase a particular point of a leader.
o SetAllAround(CATBoolean)
Set the status of AllAround.
o SetAnchorPoint(int&)
Set the anchor point of the leader on the annotation.
o SetAssociativeOrientation(CATBaseUnknown*,CATAssProjectingMode)
Puts orientation link between the leader extremity and a reference.
o SetAssociativePosition(CATBaseUnknown*,CATAssPositioningBehavior,CATAssProjectingMode)
Puts a positional link between the leader extremity and a reference.
o SetMoveMode(CATBoolean)
Set the status of MoveMode.
o SetSymbolType(int&)
Sets the ending symbol.

Methods


o AddInterruption
public virtual HRESULT AddInterruption( const double[2] iFirstPoint,
const double[2] iSecondPoint) = 0
Add a interruption to a leader.
Parameters:
iFirstPoint : First point coordinates.
iSecondPoint : Second point coordinates.
Returns:
S_OK
if the operation succeeded.
E_FAIL
if the operation failed.
o AddPoint
public virtual void AddPoint(int& iPointBefore,
double& iXpos,
double& iYpos) = 0
Add a point to a leader.
Parameters:
iPointBefore
The rank of the preceding point : 0 to GetNbPoint().
0 means anchor point.
GetNbPoint() means append at the end of leader
o GetAllAround
public virtual HRESULT GetAllAround(CATBoolean* oAllAround) = 0
Get the status of AllAround.
Parameters:
oAllAround : TRUE mean to display AllAround.
Returns:
S_OK
if the operation succeeded.
E_FAIL
if the operation failed.
o GetAnchorPoint
public virtual int GetAnchorPoint()= 0
Get the anchor point of the leader on the annotation.
See also:
CATIDrwEltWithLeader.GetLeaderAnchorPoints
o GetAnchorPoint
public virtual void GetAnchorPoint(int& oNum,
int& oFixed) = 0
Get the anchor point of the leader on the annotation.
See also:
CATIDrwEltWithLeader.GetLeaderAnchorPoints
o GetInterruptions
public virtual HRESULT GetInterruptions(double** oInterruptions,
int* oNbInterruptions) = 0
Get interruptions of leader path.
Parameters:
oInterruptions : List of interruptions coordinates (X1,Y1,X2,Y2,.....Xn,Yn).
oNbInterruptions : Number of interruptions.
Returns:
S_OK
if the operation succeeded.
E_FAIL
if the operation failed.
o GetMoveMode
public virtual HRESULT GetMoveMode(CATBoolean* oMoveMode) = 0
Get the status of MoveMode.
Parameters:
oMoveMode : TRUE mean to move with annotation.
Returns:
S_OK
if the operation succeeded.
E_FAIL
if the operation failed.
o GetNbInterruption
public virtual HRESULT GetNbInterruption(int* oNbInterruption) = 0
Get the number of interruptions of leader path.
Parameters:
oNbInterruption : Number of interruptions of leader path.
Returns:
S_OK
if the operation succeeded.
E_FAIL
if the operation failed.
o GetNbPoint
public virtual int GetNbPoint()= 0
Returns the number of points of a leader.
The anchor point is not taken into account.
Returns:
The number of points.
o GetPoint
public virtual CATMathPoint2D GetPoint(int iNoPoint) = 0
Returns a particular point of a leader.
To get the anchor point set NoPoint to 0.
Parameters:
iNoPoint
Tha anchor point index.
Returns:
The anchor point at index iNoPoint.
o GetPoints
public virtual CATListPtrCATMathPoint2D GetPoints()= 0
Returns points of a leader.
The anchor point is not in the list.
Returns:
The mathematical anchor point list.
o GetSymbolType
public virtual int GetSymbolType()= 0
Gets the ending symbol.
Returns:
The symbol type.
o ModifyPoint
public virtual void ModifyPoint(int iNoPoint,
double iNewX,
double iNewY) = 0
Modifies a particular point of a leader.
NoPoint is from 1 to GetNbPoint().
Parameters:
iNoPoint
The leader point to be modified
iNewX
The new X coordinate of this point
iNewY
The new Y coordinate of this point
o RemoveInterruption
public virtual HRESULT RemoveInterruption( const int iNum= 0) = 0
Remove a interruption to a leader.
Parameters:
iNum : Interruption number to delete.
- If iNum equals to 0, all interruptions will be removed.
Returns:
S_OK
if the operation succeeded.
E_FAIL
if the operation failed.
o RemovePoint
public virtual void RemovePoint(int iNoPoint) = 0
Erase a particular point of a leader.
Parameters:
iNoPoint

NoPoint is from 1 to GetNbPoint().
-1 means erase all points.
o SetAllAround
public virtual HRESULT SetAllAround(CATBoolean iAllAround= FALSE) = 0
Set the status of AllAround.
Parameters:
iAllAround : TRUE mean to display AllAround.
Returns:
S_OK
if the operation succeeded.
E_FAIL
if the operation failed.
o SetAnchorPoint
public virtual void SetAnchorPoint(int& iAnchorPoint) = 0
Set the anchor point of the leader on the annotation.
See also:
CATIDrwEltWithLeader.GetLeaderAnchorPoints
o SetAssociativeOrientation
public virtual HRESULT SetAssociativeOrientation(CATBaseUnknown* ipRef,
CATAssProjectingMode iProjMode=Ass_Contour) = 0
Puts orientation link between the leader extremity and a reference.
Parameters:
iRef
The reference. All elements which implements the CATIDrwMarkupable interface can be used (annotations, geometry, ...).
iProjMode
The projection mode (On curve, follow hot points, Extensionlines of dimensions...).
Default : projected on the curve.
Returns:
HRESULT
S_OK
Orientation link has been created
E_FAIL
No orientation link created
o SetAssociativePosition
public virtual HRESULT SetAssociativePosition(CATBaseUnknown* ipRef,
CATAssPositioningBehavior iPosBehavior=Ass_Relative,
CATAssProjectingMode iProjMode=Ass_Contour) = 0
Puts a positional link between the leader extremity and a reference.
Parameters:
iRef
The reference. All elements which implements the CATIDrwMarkupable interface can be used (annotations, geometry, ...).
iPosBehavior
Relative or absolute.
iProjMode
The projection mode (On curve, follow hot points, Extensionlines of dimensions...).
Default : projected on the curve.
Returns:
HRESULT
S_OK
Positional link has been created
E_FAIL
No positional link created
o SetMoveMode
public virtual HRESULT SetMoveMode(CATBoolean iMoveMode= FALSE) = 0
Set the status of MoveMode.
Parameters:
iMoveMode : TRUE mean to move with annotation.
Returns:
S_OK
if the operation succeeded.
E_FAIL
if the operation failed.
o SetSymbolType
public virtual void SetSymbolType(int& SymbolType) = 0
Sets the ending symbol.
Parameters:
iSymbolType
The symbol type.

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

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