![]() |
MapLink Pro .NET 11.1
Envitia MapLink Pro: The Ultimate Mapping Application Toolkit
|
This class category contains the Editor .NET API classes.
struct Envitia::MapLink::Editor::TSLNLocatorEvent |
This is the TSLNLocatorEvent class.
It is a structure used to describe locator (mouse) events occurring on the drawing surface.
Class Members | ||
---|---|---|
TSLNButtonType | m_buttonType | |
TSLNLocatorType | m_locatorType | |
TSLNModifierType | m_modifiers | |
int | m_x |
X coordinate of locator event, in TMC space. |
int | m_y |
Y coordinate of locator event, in TMC space. |
struct Envitia::MapLink::Editor::TSLNEchoCoord |
This component represents a dynamic echo coordinate.
It holds a position (in TMC space), and a type. The type indicates to the editor how the position should be interpreted. An array of these components should be passed by the operation to the TSLNUserOperationRequest::setDynamic Echo method.
A coordinate of type TSLNEchoCoordFixed is always fixed at the specified TMC position.
A coordinate of type TSLNEchoCoordMoving will move with the locator. The position is an offset from the locator position.
A coordinate of type TSLNEchoCoordConstrained will move with the locator, but may have the X or Y coordinate fixed, dependent upon the current constraint mode. An anchor point may be supplied to provide an offset from the locator. The anchor point position is subtracted from the TSLNEchoCoord position to determine the offset. If no anchor point is supplied, then the coordinate is fixed to the locator with no offset.
Class Members | ||
---|---|---|
TSLNEchoCoordType | m_type | Data Members for Associations. |
int | m_x |
The X TMC space location for the dynamic echo. May be absolute for fixed and constrained coordinates, or relative for moving coordinates. |
int | m_y |
The X TMC space location for the dynamic echo. May be absolute for fixed and constrained coordinates, or relative for moving coordinates. |
|
strong |
This enumeration defines the different types of cursor movement feedback that may be supplied to the application via the TSLNEditorRequest::onCursor Movement method.
|
strong |
This enumeration specifies the various dynamic echo styles. These generally move with some point(s) relative to the locator position.
Valid values are
TSLNDynamicEchoNone - No echo is drawn. No TSLNEchoCoords should be specified. No anchor point should be specified.
TSLNDynamicEchoSegments - N Line segments are drawn. N*2 TSLNEchoCoords are specified. These coords may be fixed, moving or constrained. For example, a simple rubber-banded line may be created by passing a fixed TSLNEchoCoord specifying the fixed end of the line and a moving TSLNEchoCoord with offset 0,0. If the moving end of the line may need to be constrained to some value (eg. a movepoint operation), then a fixed TSLNEchoCoord and a constrained TSLNEchoCoord should be specified. The position passed in the constrained TSLNEchoCoord should be the values that will be applied during a constraint. Optionally, an anchor point may be specified to give an offset from the locator for constrained values.
TSLNDynamicEchoRectangle - A rectangle is drawn. 2 TSLNEchoCoords are specified. These may be fixed, moving or constrained. An anchor point may be specified if constrained TSLEchoCoords are used.
TSLNDynamicEchoCorners - The corners of a rectangle are drawn. 2 TSLNEchoCoords are specified. These may be fixed, moving or constrained. An anchor point may be specified if constrained TSLNEchoCoords are used.
TSLNDynamicEchoScale - An equal scaling rectangle is drawn. 2 fixed TSLNEchoCoords are specified. These should be the rectangle that is to be scaled. An anchor point must be specified to indicate the scaling origin.
TSLNDynamicEchoParallel - An echo line parallel to the specified line is drawn. The intersection of the perpendicular from the locator position to the line segment is calculated. If the intersection is within the line segment, then the echo is a parallel line passing through the locator position, whose endpoints are perpendicular to the line segment endpoints. If the intersection is outside the line segment, then the echo is a parallel line whose endpoints are the current locator position and a perpendicular to the farthest end of the line segment. 2 fixed TSLNEchoCoords are specified. No anchor point is required.
TSLNDynamicEchoRay - An echo line extending from either end of the specified segment. The intersection of the perpendicular from the locator position to the line containing the specified segment is calculated. If the intersection is within the specified line segment, then no echo is drawn. Otherwise the echo is drawn from the intersection to the nearest endpoint of the segment. 2 fixed TSLNEchoCoords are specified, describing the line segment. No anchor point is required.
TSLNDynamicEchoPerpendicular - An echo line is drawn from the the current locator position to the intersection of the perpendicular from the locator position to the line containing the line segment. 2 (Fixed) TSLNEchoCoords are specified. No anchor point is required.
Enumerator | |
---|---|
TSLNDynamicEchoNone | |
TSLNDynamicEchoSegments | |
TSLNDynamicEchoRectangle | |
TSLNDynamicEchoCorners | |
TSLNDynamicEchoScale | |
TSLNDynamicEchoParallel | |
TSLNDynamicEchoRay | |
TSLNDynamicEchoPerpendicular |
|
strong |
This enumerated type indicates how the editor should interpret a TSLNEcho Coord for dynamic echo.
A coordinate of type TSLNEchoCoordFixed is always fixed at the specified TMC position.
A coordinate of type TSLNEchoCoordMoving will move with the locator. The position is an offset from the locator position.
A coordinate of type TSLNEchoCoordConstrained will move with the locator, but may have the X or Y coordinate fixed, dependent upon the current constraint mode. An anchor point may be supplied to provide an offset from the locator. The anchor point position is subtracted from the TSLNEchoCoord position to determine the offset. If no anchor point is supplied, then the coordinate is fixed to the locator with no offset.
Enumerator | |
---|---|
TSLNEchoCoordFixed | |
TSLNEchoCoordMoving | |
TSLNEchoCoordConstrained |
|
strong |
This is the TSLNEditorConstraintType enum
This is an enumerator for locator movement constraints. The enumerated values are.
TSLNEditorConstraintNone : No constraint is applied (Unequal scaling) when resizing from the edge. Movement is restricted to the vertical or horizontal direction when resizing from the centre vertical or horizontal axes.
TSLNEditorConstraintEqual : Equal scaling is applied.
TSLNEditorConstraintVertical : Movement is restricted to the vertical axis.
TSLNEditorConstraintHorizontal : Movement is restricted to the horizontal axis.
TSLNEditorConstraintAngle : Movement is restricted to the specified angle from the previous point.
TSLNEditorConstraintDistance : Movement is restricted to the specified distance from the previous point.
Enumerator | |
---|---|
TSLNEditorConstraintNone | |
TSLNEditorConstraintEqual | |
TSLNEditorConstraintVertical | |
TSLNEditorConstraintHorizontal | |
TSLNEditorConstraintAngle | |
TSLNEditorConstraintDistance |
|
strong |
This enumeration specifies the various fixed echo styles.
These are generally temporary primitives rendered into the data layer.
TSLNFixedEchoNone - There is no primitive echo
TSLNFixedEchoPoint - Symbols are placed at each location in the point array. The attributes of these symbols are specified in the configuration file.
TSLNFixedEchoLine - A single polyline is drawn connecting the points specified in the point array. The attributes of this line is specified in the configuration file.
Enumerator | |
---|---|
TSLNFixedEchoNone | |
TSLNFixedEchoPoint | |
TSLNFixedEchoLine |
|
strong |
This enumerated type specifies the basic type of a user operation.
Valid values are
TSLNOperationManipulation - These operations are meant to manipulate objects on the select list. The current operation is deactivated.
TSLNOperationPrimitive - These operations are meant to create objects for the select list. The current operation is deactivated and the select list is cleared before the operation is activated.
TSLNOperationAttribute - These are transient operations which do not affect the select list itself. The current operation is left active.
Enumerator | |
---|---|
TSLNOperationManipulation | |
TSLNOperationPrimitive | |
TSLNOperationAttribute |