VrOne/Python Programming
|
ON-LINE REFERENCE DOCUMENTATION CARDINAL SYSTEMS, LLC 386-439-2525
|
VrOne/Python Configuration Class More...
The Configuration class allows
various VrOne configuration parameters to be viewed and changed.
Example:
from pycfg import *
Cfg = VrCfg ()
(VrVersion) = Cfg.GetVrVersion ()
Loads configuration from disk.
|
FileName |
Configuration file name. (0=Use
default) |
|
|
returns |
(ret) |
|
|
|
ret |
returns 0 = OK 1 = File did not
exist and was created. -1 = Could not open file. |
Records the current configuration.
|
returns |
(ret) |
|
|
|
ret |
0=Success, 1=Failed |
Returns the VrOne version string.
|
returns |
(VrVersion) |
|
|
|
VrVersion |
VrOne version string |
Sets whether or not VrOne uses
default directories.
|
UseDefaultDir |
0=Don't use default directories,
1=Use default directories |
Returns status of default
directory usage.
|
returns |
(ret) |
|
|
|
ret |
0=Not using default directories,
1=Using default directories |
Sets the default directory for a
program
|
ProgNum |
Program number |
|
DefaultDir |
Default directory |
Returns the default directory for
a program If UseDefaultDir is FALSE then NULL is returned
|
ProgNum |
Program number (see vrcfg.h) |
|
|
Override |
TRUE - Always return default
directory FALSE - If UseDefaultDir is FALSE then NULL is returned |
|
|
returns |
(ret) |
|
|
|
ret |
Default directory |
Get the current symbol filename.
|
returns |
(ret) |
|
|
|
ret |
Current symbol filename. |
Set the current symbol filename.
The specified symbol file will be loaded.
|
FileName |
Name of symbol file to load. |
Returns the directory that the
character set files are in.
|
returns |
(ret) |
|
|
|
ret |
Directory of character set
files. |
Returns the color table for screen
filename.
|
returns |
(ret) |
|
|
|
ret |
Color table for screen filename. |
Returns the color table for
plotting filename.
|
returns |
(ret) |
|
|
|
ret |
Color table for plotting
filename. |
Returns the color table override
filename.
|
returns |
(ret) |
|
|
|
ret |
color table override filename. |
Returns name of file containing
layer names.
|
returns |
(ret) |
|
|
|
ret |
Name of file containing layer
names. |
Returns the pen table filename.
|
returns |
(ret) |
|
|
|
ret |
Pen table filename. |
Sets the pen table filename.
|
FileName |
Pen table filename. |
Gets status of pen table usage.
|
returns |
(ret) |
|
|
|
ret |
0=Pen table not being used,
1=Pen table being used. |
Returns current background color.
|
returns |
(ret) |
|
|
|
ret |
Background color (1-255) |
Returns current search radius.
|
returns |
(ret) |
|
|
|
ret |
Current search radius. |
Returns current search dimension.
|
returns |
(ret) |
|
|
|
ret |
Current search dimension. |
Returns the spline chord length in
in or mm.
|
|
Returns the B-Spline increment
|
|
Returns the stroke distance for
wide lines.
|
|
Returns the stroke mode for wide
line.
|
|
Returns the fill distance for wide
lines.
|
|
Returns the minimum text size for
plotting.
|
|
Returns the minimum symbol size
for plotting.
|
|
Returns the default MBR offset
|
|
Sets the display line status.
|
DspLines |
0=Don't display lines, 1=Display
lines |
Gets the display line status.
|
returns |
(ret) |
|
|
|
ret |
0=Don't display lines, 1=Display
lines |
Sets the display splined line
status
|
DspSplines |
0=Don't display splined lines,
1=Display splined lines |
Gets the display splined line
status
|
returns |
(ret) |
|
|
|
ret |
0=Don't display splined lines,
1=Display splined lines |
Sets the display line fonts status
|
DspLfonts |
0=Don't display line fonts,
1=Display line fonts |
Gets the display line fonts status
|
returns |
(ret) |
|
|
|
ret |
0=Don't display line fonts,
1=Display line fonts |
Sets the display construction
lines status
|
DspConstr |
0=Don't display construction
line, 1=Display construction lines |
Gets the display construction
lines status
|
returns |
(ret) |
|
|
|
ret |
0=Don't display construction
line, 1=Display construction lines |
Sets the display line points flag.
|
DspLinePoints |
0=Don't display line points,
1=Display line points |
Gets the display line points flag.
|
returns |
(ret) |
|
|
|
ret |
0=Don't display line points,
1=Display line points |
Sets the display line elevations
flag.
|
DspLineElevs |
0=Don't display line elevations,
1=Display line elevations |
Gets the display line points flag.
|
returns |
(ret) |
|
|
|
ret |
0=Don't display line elevations,
1=Display line elevations |
Sets the display symbols flag.
|
DspSymbols |
0=Don't display symbols,
1=Display symbols |
Gets the display symbols flag.
|
returns |
(ret) |
|
|
|
ret |
0=Don't display symbols,
1=Display symbols |
Sets the display text flag.
|
DspText |
0=Don't display text, 1=Display
text |
Gets the display text flag.
|
returns |
(ret) |
|
|
|
ret |
0=Don't display text, 1=Display
text |
Sets the display interactive lines
flag.
|
DspILines |
0=Don't display interactive
lines, 1=Display interactive lines |
Gets the display interactive lines
flag.
|
returns |
(ret) |
|
|
|
ret |
0=Don't display interactive
lines, 1=Display interactive lines |
Sets the display interactive
symbols flag.
|
DspISymbols |
0=Don't display interactive
symbols, 1=Display interactive symbols |
Gets the display interactive
symbols flag.
|
returns |
(ret) |
|
|
|
ret |
0=Don't display interactive
symbols, 1=Display interactive symbols |
Sets the display interactive text
flag.
|
DspIText |
0=Don't display interactive
text, 1=Display interactive text |
Gets the display interactive text
flag.
|
returns |
(ret) |
|
|
|
ret |
0=Don't display interactive
text, 1=Display interactive text |
Sets the entity MBR offset used
when searching.
|
Offset |
MBR offset. |
Sets the color table override
filename.
|
ColorTableName |
Color table override filename |
Sets the spline chord length
|
SplineChord |
Spline chord length (in|mm) It
is expected that the parameter is in the proper units (inches or millimeter). |
Sets the B spline increment. Sets
the number of points that will be added between current points.
|
BSplineIncr |
|
Sets the cursor type
|
CursorType |
0=Cross 1=Dot |
Returns the cursor type
|
returns |
(ret) |
|
|
|
ret |
0=Cross 1=Dot |
Sets the cursor size
|
CursorSize |
Cursor size in pixels |
Returns the cursor size in pixels.
|
returns |
(ret) |
|
|
|
ret |
Cursor size in pixels |
Sets the cursor color.
|
CursorColor |
0=White 1=Black 2=Red 3=Green
4=Blue 5=Yellow |
Gets the cursor color.
|
returns |
(ret) |
|
|
|
ret |
0=White 1=Black 2=Red 3=Green
4=Blue 5=Yellow |
Sets the cursor mask size.
|
CursorSize |
Cursor mask size in pixels |
Gets the cursor mask size.
|
returns |
(ret) |
|
|
|
ret |
Cursor mask size in pixels |
Sets the cursor mask shape
|
CursorShape |
0=Square,1=Circle |
Gets the cursor mask shape
|
returns |
(ret) |
|
|
|
ret |
0=Square,1=Circle |
Sets the cursor track plane for
VrTwo.
|
TrackPlane |
0=VIEW_PLANE 1=GROUND_PLANE |
Gets the cursor track plane for
VrTwo.
|
returns |
(ret) |
|
|
|
ret |
0=VIEW_PLANE 1=GROUND_PLANE |
Returns the image pyramid
directory
|
|
Returns the image pyramid drive
|
|
Toggles the display of image
edges/names (Mono view only)
|
|
Sets the image edge display flag.
|
ImgEdges |
0=Don't display image edges,
1=Display image edges |
Gets the image edge display flag.
|
returns |
||