draw lines
draw lines enables you to create both 2D and 3D lines interactively with the mouse.
The mouse gesture for line creation is: hold the Ctrl key and click the left mouse button in the viewer. The first click establishes the beginning point of the line and each subsequent click adds the next point. The Probe Action setting controls whether a probe adds a new point to the current line or repositions the selected point.
draw lines allows adding points that are outside the model extents. Unlike most modules, which create mesh data from upstream inputs, draw lines receives its input from the viewer and passes the resulting line data on to other modules. Because the lines are saved with your application, they are recreated exactly when the application is loaded.
There are two drawing styles:
- Top View Mode creates lines at the elevation given by Z Top. The viewer must be in a Top View to draw in this mode, but you may pick points anywhere in the viewer.
- Object Mode creates 3D lines by probing objects in your model. The viewer can be in any orientation, but points can only be created where an object is probed.
Ports
| Direction | Name | Type | Description |
|---|---|---|---|
| Output | Output Field | Field | A field containing the created lines. |
| Output | Output Glyphs | Field | A field containing the created glyphs. |
| Output | SampleData | Renderable | A renderable object displaying the lines. |
Properties
| Property | Type | Description |
|---|---|---|
| Probe Action | Choice: None, Reset Position, Add Point | Allows for the changing of the current line coordinates or for adding new coordinates at the probed location. |
| Drawing Style | Choice: Top View Mode, Object Mode | Selects how coordinates are picked. In Top View Mode, the viewer must be in Top View, any point in the viewer can be selected, and the Z coordinate is the Z Top value. In Object Mode, the viewer can be in any rotation, and only probing on objects will give coordinates. |
| Z Top | Double | The Z value used when creating lines in Top View Mode. |
| Coordinate Units | String | The coordinate units of the lines. This control behaves differently than other linked controls: the first time a point is created the control unlinks and checks the coordinate units of additional points against the set units. |
| Display Lines | Boolean | Turns visibility of the created lines on or off. |
| Display Glyphs | Boolean | Turns visibility of the created glyphs on or off. |
| Line List | Line List | The list of lines and their coordinates created so far. Selecting the Closed toggle creates a line segment from the last point added to the first point. |
| Current Line | Line | The line selected from the Line List, showing its coordinates for editing. |
| ELF File Name | File | Writes the created lines to an ELF file. |
Glyph Settings
| Property | Type | Description |
|---|---|---|
| Generated Glyph | Choice: Sphere, Cube, Cone, Cylinder, Polygon, Disk, Point | The type of glyph that is automatically generated at each point. |
| Glyph Size | Double | Scales the glyphs in all directions. The default is automatically computed based on your input data. |
| Sphere Subdivisions | Integer | The number of subdivisions to use for spheres. Larger numbers create more detailed sphere representations. |
| Glyph Resolution | Integer | The resolution for generated cone, polygon, cylinder, and disk glyphs. |
| Primary Axis Factor | Double | The scale factor for the primary axis of the glyph. |
| Secondary Axis Factor | Double | The scale factor for the secondary axis of the glyph. |
| Heading Dip | Heading/Dip | The heading and dip values used to align the glyphs to a constant orientation. |
| Roll | Double | The roll of the glyph along its primary axis. |
| Include Center Data | Boolean | Includes the center point of each glyph as a cell data component. This allows you to probe onto the glyph and return its center instead of the position on the outside of the glyph. |