All Frameworks Object Hierarchy This Framework Indexes
TCPTraceManagerGraphics (Object)
Interface used to modify the default graphical properties of TCP traces.
Role: This interface is used to overload the next TCP traces
and points graphical properties.
A TCP trace is the graphical output of a task simulation. This output
is the trajectory path generated by the TCP, defined by lines and points.
Each point represents the location of the TCP at a given time.
The following code snippet can be used to obtain a handle from a
product:
Dim MyRobot As Product
'retrieval of the product
...
'retrieval of the trace manager
Dim objDevice As TCPTraceManagerGraphics
set objDevice = MyRobot.GetTechnologicalObject("TCPTraceManagerGraphics")
Dim iR As Long
Dim iG As Long
Dim iB As Long
Dim iA As Long
'activate the trace
objDevice.SetTraceNextColor DNBTCPTraceRepLine,iR,iG,iB,iA
- See also:
- TCPTrace
- See also:
- TCPTraceManager
Method Index
-
SetNextThickness
- Set the TCP trace component (DNBTCPTraceReps) thickness(for line,
axis) for new points.
-
SetNextType
- Set the TCP trace component (DNBTCPTraceReps) type for new points.
-
SetTraceNextColor
- Set the TCP trace component (DNBTCPTraceReps) color for new points.
Methods
o Sub SetNextThickness( | | iRep, |
| | iThickness) |
-
Set the TCP trace component (DNBTCPTraceReps) thickness(for line,
axis) for new points.This method does not modify the type for the
complete path (as
TCPTrace.SetThickness does). Instead, it changes the current type to apply for newly created points. This method
is usefull, when the user interrupts the simulation and want to render
differently the next points to be created.
- Parameters:
-
- iRep
- DNBTCPTraceReps. Define the graphical object the method will be
applied on. Input parameter.
- iThickness
- Indicates the index width of the line in the range [1,55].
This index is pointing on the true width in pixel, recorded in the standard
(if there is one in the document) or in the setting. Input parameter.
o Sub SetNextType( | | iRep, |
| | iType) |
-
Set the TCP trace component (DNBTCPTraceReps) type for new points.
This method does not modify the type for the complete path (as
TCPTrace.SetType does). Instead, it changes the current type to apply
for newly created points. This method is usefull, when the user
interrupts the simulation and want to render differently the next points
to be created.
For points, legal values are :
- 1 : CROSS
- 2 : PLUS
- 3 : CONCENTRIC
For line and axis, legal values are :
- 1 : solid
- 2 : dotted
- 3 : dashed
- 4 : dot-dashed
- 5 : phantom
Call
< to see the changes applied.
- Parameters:
-
- iRep
- DNBTCPTraceReps. Define the graphical object the method will be
applied on. Input parameter.
- iType
- Long.Depends on the DNBTCPTraceReps. Input parameter.
- Returns:
- HRESULT Returns S_OK if it succeeds, otherwise E_FAIL.
o Sub SetTraceNextColor( | | iRep, |
| | iR, |
| | iG, |
| | iB, |
| | iA) |
-
Set the TCP trace component (DNBTCPTraceReps) color for new points.
This method does not modify the complete color path (as
TCPTrace.SetColor does). Instead, it changes the current color to
apply for newly created points. This method is usefull, when the user
interrupts the simulation and want to render differently the next points
to be created.
- Parameters:
-
- iRep
- DNBTCPTraceReps. Define the graphical object the method will be
applied on. Input parameter.
- iR
- Long. Red color component from 0 to 255. Input parameter.
- iG
- Long. Green color component from 0 to 255. Input parameter.
- iB
- Long. Blue color component from 0 to 255. Input parameter.
- iA
- Long. Alpha color component from 0 to 255. Input parameter.