place_text

General Module Function

place_text replaces both Text3D and MultiText3D and provides a means to interactively place 2D and 3D renderable text strings or to read an EMT file to place the text.  

 

Module Input Ports

place_text has tthree input ports

  1. The first (purple port) connects to the Viewers only output port.

  2. The second (grey-brown) connects to Explode_and_Scale to inherit the Z_Exaggeration factor.

  3. The third (grey-green) connects to Explode_and_Scale to inherit the explode distance

 

Module Output Ports

place_text has three output ports.

  1. The first is a pass-through for the Z-Exaggeration

  2. The second is a pass-through for explode distance

  3. The third is a red port which sends the renderable text strings to the EVS viewer.

 

Module Control Panel

The control panel for place_text is shown above.  The panel is in two sections.  The first has the default values for all new text strings that you create by probing.  The lower section has many of the same parameters, but allows you to edit the values for these parameters for each string whether the string was created by probing or input from an EMT file.  

 

 

EMT FILE FORMAT:

Lines beginning with "#" are comments

Lines beginning with "FONT" are font specification lines (more later)

Lines beginning with "END" specify the end of the file (this is optional, but if you want to have anything after the last command or data line, precede it with an "END" statement.

All other lines are DATA lines specifying the x-y-z coordinates of a string and the text for that string.

Blank lines are ignored.

The FONT specification lines contain the following information:

Size: The font size is the height of a typical Capitol letter in true user units

Justification: The justification options are the same as in post_samples labeling.

Plane: The plane options are the same as in post_samples labeling.

Orientation: The orientation options are the same as in post_samples labeling.  

Red, Green, Blue: These 3 numbers determine the font color.

Resolution: The resolution parameter is the same as in post_samples labeling.

Depth: The parameter is the same as in post_samples labeling.

Bevel%: The Bevel percentage is the same as in post_samples labeling.

Font Face: The Font Face options are the same as in post_samples labeling.

 

The DATA lines contain four columns of information:

X coordinate

Y coordinate

Z coordinate

Text: Everything on the line after the z coordinate (and trailing spaces) is the text to be placed at the above coordinate.

# FONT Size Just. Plane Orient R G B Resolution Depth Bevel% Font Face

FONT, 4, MC, XZ, +X, 0.8, 0.8, 0.8, 3, 0, 0, Arial

# X, Y, Z, Bore

11566.34, 12850.59, 8.5, B-30

11586.34, 13050.59, 12.5, B-31

11381.7, 12747.5, 2.5, B-33

11414.4, 12781.1, 3, B-34

11410.29, 12724.69, 4.5, B-4

11427, 12780.9, 7.5, B-42

11086.52, 12830.67, 5.5, B-49

11211.87, 12710.75, 3, B-50

11199.04, 12810.16, 5, B-51

11496.34, 12753.59, 2.5, B-53

11209.35, 12993.94, 3, B-57

11301.97, 13079.66, 5.5, B-58

11286.77, 13026.7, 3, B-59

 

# FONT Size Just. Plane Orient R G B Resolution Depth Bevel% Font Face

FONT, 6, MC, XZ, +X, 1, 0.5, 0.5, 3, 0.1, 0, Arial

11393.47, 12948.9, 4.5, B-60

11309.03, 12948.99, 5, B-56

11248.75, 12870.91, 4, B-48

11259.67, 12819.29, 3, B-46

11298, 12808.63, 4, B-52

11338, 12830.8, 5, B-38

11401.73, 12897.77, 5, B-45

11416.9, 12819.45, 3.5, B-44

 

# FONT, Size, Justification, Plane, Orientation, Red, Green, Blue, Resolution, Depth, Bevel%, Font Face

FONT, 8, MC, XZ, +X, 1, 0, 0, 3, .3, 0, Arial Bold

11340.49, 12892.61, 3.5, B-47

11251.3, 12929.27, 3, B-75

END

© 1994-2018 ctech.com