All Frameworks Class Hierarchy This Framework Previous Next Indexes
DraftingInterfaces Interface CATIDftLeader
System.IUnknown
|
+---CATIDftLeader
Usage: an implementation of this interface is supplied and you must use it as is. You should not reimplement it.
interface CATIDftLeader
This interface give access to leader points and associativity.
- See also:
- CATIDftElementWithLeader
Method Index
- o
AddInterruption(double[2],double[2])
- Add a interruption to a leader.
- o
AddPoint(int,double [2])
- Adds a point on the leader.
- o
GetAllAround(CATBoolean*)
- Get the status of AllAround.
- o
GetAnchorElement(CATIDftElementWithLeader**,int*)
- Returns the father element and the anchor point of the leader.
- o
GetAnchorPoint(int*)
- Returns the anchor point of the leader.
- 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(int*)
- Returns the number of points on the leader.
- o
GetPoint(int,double [2])
- Returns a point of the leader.
- o
GetPoints(double**)
- Returns the list of points on the leader including the anchor point.
- o
GetSubSet(wchar_t*,IID,IUnknown**)
- Returns an interface to modify a subpart of the leader.
- o
GetSymbolType(SymbolType*)
- Returns the ending symbol of the leader.
- o
GetTarget(IUnknown**,int*)
- Returns the element targeted by the leader.
- o
ModifyPoint(int,double [2])
- Modifies a point on the leader.
- o
RemoveInterruption(int)
- Remove a interruption to a leader.
- o
RemovePoint(int)
- Removes a point on the leader.
- o
SetAllAround(CATBoolean)
- Set the status of AllAround.
- o
SetAnchorPoint(int)
- Sets the anchor point of the leader.
- o
SetMoveMode(CATBoolean)
- Set the status of MoveMode.
- o
SetSymbolType(SymbolType)
- Sets the ending symbol of the leader.
- o
SetTarget(IUnknown*,double[2],int)
- Sets the leader target.
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 HRESULT AddPoint( | const int | iPointBefore, |
| const double [2] | iPoint) = 0 |
-
Adds a point on the leader.
- Parameters:
-
- iPointBefore
- The point will be inserted at the iPointBefore+1 position.
Note : the end point of the leader is ranked 0 and the anchor point is equal to GetNbPoint().
- iPoint
- The point to add.
o GetAllAround
-
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 GetAnchorElement
-
Returns the father element and the anchor point of the leader.
This number is the rank of the point to use in the list returned by
CATIDftElementWithLeader::GetLeaderAnchorPoints().
- Parameters:
-
- oElmtWithLeader
-
- oAnchorPoint
-
- See also:
- CATIDftElementWithLeader
o GetAnchorPoint
public virtual HRESULT GetAnchorPoint( | int* | oAnchorPoint) = 0 |
-
Returns the anchor point of the leader.
This number is the rank of the point to use in the list returned by
CATIDftElementWithLeader::GetLeaderAnchorPoints().
- Parameters:
-
- oAnchorPoint
-
- See also:
- CATIDftElementWithLeader
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
-
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 HRESULT GetNbPoint( | int* | oNbPoint) = 0 |
-
Returns the number of points on the leader.
- Parameters:
-
- oNbPoint
- Note : the anchor point is not counted.
o GetPoint
public virtual HRESULT GetPoint( | const int | iNoPoint, |
| double [2] | oPoint) = 0 |
-
Returns a point of the leader.
Set iNoPoint to 0 to get the anchor point.
- Parameters:
-
- iNoPoint
- The rank of the point.
- oPoint
o GetPoints
public virtual HRESULT GetPoints( | double** | oPoints) = 0 |
-
Returns the list of points on the leader including the anchor point.
- Parameters:
-
- oPoints
- The point list. X1,Y1,X2,Y2,.....Xn,Yn
o GetSubSet
public virtual HRESULT GetSubSet( | const wchar_t* | iSubSet, |
| const IID | iItfName, |
| IUnknown** | oProperties) = 0 |
-
Returns an interface to modify a subpart of the leader.
- Parameters:
-
- iSubSet
- can be "Symbols","Lines"
- iItfName
- An ID on the interface to find.
- oProperties
- A pointer to the interface.
o GetSymbolType
public virtual HRESULT GetSymbolType( | SymbolType* | oSymbolType) = 0 |
-
Returns the ending symbol of the leader.
- Parameters:
-
- oSymbolType
o GetTarget
-
Returns the element targeted by the leader.
- Parameters:
-
- oTarget
- The targeted element.
- oInf
- Not used yet
o ModifyPoint
public virtual HRESULT ModifyPoint( | const int | iNoPoint, |
| const double [2] | iNewPoint) = 0 |
-
Modifies a point on the leader.
The anchor point (iNoPoint = 0) can't be modified
- Parameters:
-
- iNoPoint
- The point to modify.
- iNewPoint
- The new 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 HRESULT RemovePoint( | const int | iNoPoint | = -1) = 0 |
-
Removes a point on the leader.
- Parameters:
-
- iNoPoint
- The point to delete. If iNoPoint is set to -1, all points will be deleted.
o SetAllAround
-
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 HRESULT SetAnchorPoint( | const int | iAnchorPoint) = 0 |
-
Sets the anchor point of the leader.
This number is the rank of the point to use in the list returned by
CATIDftElementWithLeader::GetLeaderAnchorPoints().
- Parameters:
-
- iAnchorPoint
-
- See also:
- CATIDftElementWithLeader
o SetMoveMode
-
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 HRESULT SetSymbolType( | const SymbolType | iSymbolType) = 0 |
-
Sets the ending symbol of the leader.
- Parameters:
-
- iSymbolType
o SetTarget
public virtual HRESULT SetTarget( | IUnknown* | iTarget, |
| double[2] | iPos, |
| const int | iInf | = 0) = 0 |
-
Sets the leader target.
- Parameters:
-
- iTarget
- The targeted element.
- iPos
- The indication point.
- iInf
- Not used yet
This object is included in the file: CATIDftLeader.h
If needed, your Imakefile.mk should include the module: CATDraftingInterfaces