uf_disp.h (查看源代码)
 
概述
This include file contains the prototypes and descriptions of the display
functions. The functions include temporary display, color table access and
model bounds access.

In addition, this file contains the prototypes for the public functions in the
UF_DISP module. This module is to be used to display UDO geometry. These
functions should be called from the user program. The user program can be
registered with the display, selection, fit and attention point callbacks.

This provides routines for:

Coneheads - describes the functions that enable you to display coneheads and
objects. The coneheads section describes the C include files, data
structures, and C functions available to you which enable you to
temporarily display coneheads, and get and set conehead attributes.

Features and Dimensions - describes the functions that enable you to display
sketch and rpo dimensions.

Batch Shade - describes the batch shade function.

Color Table Access - describes the functions that enable you to read and modify
colors or the value of any color.

Model Bounds - are functions that enable you to query model bounds.

Name Display - are functions that enable you to set/query the name view status
or the name display status.

Object Display - are routines that enable you to display temporary graphics
objects, regenerate the display, and display objects.

Overlay Graphics Primitives - are routines to render geometry using Overlay
Graphics Primitives (OGP). These functions are
intended to be used exclusively from motion
callbacks. Please see the discussion and example
provided with UF_UI_specify_screen_position. Note
that these functions do not create NX
objects, and the geometry they define is not
associated with any existing objects.

Overlay Graphics primitives give the appearance of being drawn on a transparent
overlay. That is, they are displayed on top of any previously displayed
geometry, and when they are erased, the display of the underlying geometry is
not affected. Overlay Graphics primitives are drawn in the same color as the
crosshair: either white or black, whichever will contrast better with
the current background color.

Because of the method used internally to render Overlay Graphics primitives,
on most workstation configurations, when a portion of one primitive overlaps
another primitive, the overlapping portion will not display at all. Visually,
it is as if they cancel each other out. Therefore, in the course of defining
the primitives, care should be taken to avoid overlapping geometry.

User Defined Object Display - are routines that display, fit, and perform
attention point/selection computations. Each routine is overloaded with these
operations. The overloading of multiple functions allows you to call the
routine once from an NX Open API program. You can control which operation the
routine participates in by selectively registering an NX Open API program using
the registration methods in uf_udobj.h.

Work Plane Emphasis is a mode where all objects that are not on the work plane
are dimmed through a color change. These de-emphasized objects are filtered
out of selection operations.

The work plane emphasis set consists of points, lines, arcs, conics splines,
planes datum planes, datum axes, coordinate systems (except the WCS and GFEM
coordinate systems), and edges. This option also employs an exclusion object
set, which consists of those objects not affected by work plane emphasis. The
exclusion object set consists of sketcher datums and degree of freedom
indicators, the WCS, and the Grid.

 


 
uf_disp_types.h (查看源代码)
 
概述
This include file contains the prototypes and descriptions of the display
functions. The functions include temporary display, color table access and
model bounds access.

In addition, this file contains the prototypes for the public functions in the
UF_DISP module. This module is to be used to display UDO geometry. These
functions should be called from the user program. The user program can be
registered with the display, selection, fit and attention point callbacks.

This provides routines for:

Coneheads - describes the functions that enable you to display coneheads and
objects. The coneheads section describes the C include files, data
structures, and C functions available to you which enable you to
temporarily display coneheads, and get and set conehead attributes.

Features and Dimensions - describes the functions that enable you to display
sketch and rpo dimensions.

Batch Shade - describes the batch shade function.

Color Table Access - describes the functions that enable you to read and modify
colors or the value of any color.

Model Bounds - are functions that enable you to query model bounds.

Name Display - are functions that enable you to set/query the name view status
or the name display status.

Object Display - are routines that enable you to display temporary graphics
objects, regenerate the display, and display objects.

Overlay Graphics Primitives - are routines to render geometry using Overlay
Graphics Primitives (OGP). These functions are
intended to be used exclusively from motion
callbacks. Please see the discussion and example
provided with UF_UI_specify_screen_position. Note
that these functions do not create NX
objects, and the geometry they define is not
associated with any existing objects.

Overlay Graphics primitives give the appearance of being drawn on a transparent
overlay. That is, they are displayed on top of any previously displayed
geometry, and when they are erased, the display of the underlying geometry is
not affected. Overlay Graphics primitives are drawn in the same color as the
crosshair: either white or black, whichever will contrast better with
the current background color.

Because of the method used internally to render Overlay Graphics primitives,
on most workstation configurations, when a portion of one primitive overlaps
another primitive, the overlapping portion will not display at all. Visually,
it is as if they cancel each other out. Therefore, in the course of defining
the primitives, care should be taken to avoid overlapping geometry.

User Defined Object Display - are routines that display, fit, and perform
attention point/selection computations. Each routine is overloaded with these
operations. The overloading of multiple functions allows you to call the
routine once from an NX Open API program. You can control which operation the
routine participates in by selectively registering an NX Open API program using
the registration methods in uf_udobj.h.

Work Plane Emphasis is a mode where all objects that are not on the work plane
are dimmed through a color change. These de-emphasized objects are filtered
out of selection operations.

The work plane emphasis set consists of points, lines, arcs, conics splines,
planes datum planes, datum axes, coordinate systems (except the WCS and GFEM
coordinate systems), and edges. This option also employs an exclusion object
set, which consists of those objects not affected by work plane emphasis. The
exclusion object set consists of sketcher datums and degree of freedom
indicators, the WCS, and the Grid.

 


 
uf_disp_ugopenint.h (查看源代码)
 
概述
This include file contains the prototypes and descriptions of the display
functions. The functions include temporary display, color table access and
model bounds access.

In addition, this file contains the prototypes for the public functions in the
UF_DISP module. This module is to be used to display UDO geometry. These
functions should be called from the user program. The user program can be
registered with the display, selection, fit and attention point callbacks.

This provides routines for:

Coneheads - describes the functions that enable you to display coneheads and
objects. The coneheads section describes the C include files, data
structures, and C functions available to you which enable you to
temporarily display coneheads, and get and set conehead attributes.

Features and Dimensions - describes the functions that enable you to display
sketch and rpo dimensions.

Batch Shade - describes the batch shade function.

Color Table Access - describes the functions that enable you to read and modify
colors or the value of any color.

Model Bounds - are functions that enable you to query model bounds.

Name Display - are functions that enable you to set/query the name view status
or the name display status.

Object Display - are routines that enable you to display temporary graphics
objects, regenerate the display, and display objects.

Overlay Graphics Primitives - are routines to render geometry using Overlay
Graphics Primitives (OGP). These functions are
intended to be used exclusively from motion
callbacks. Please see the discussion and example
provided with UF_UI_specify_screen_position. Note
that these functions do not create NX
objects, and the geometry they define is not
associated with any existing objects.

Overlay Graphics primitives give the appearance of being drawn on a transparent
overlay. That is, they are displayed on top of any previously displayed
geometry, and when they are erased, the display of the underlying geometry is
not affected. Overlay Graphics primitives are drawn in the same color as the
crosshair: either white or black, whichever will contrast better with
the current background color.

Because of the method used internally to render Overlay Graphics primitives,
on most workstation configurations, when a portion of one primitive overlaps
another primitive, the overlapping portion will not display at all. Visually,
it is as if they cancel each other out. Therefore, in the course of defining
the primitives, care should be taken to avoid overlapping geometry.

User Defined Object Display - are routines that display, fit, and perform
attention point/selection computations. Each routine is overloaded with these
operations. The overloading of multiple functions allows you to call the
routine once from an Open API program. You can control which operation the
routine participates in by selectively registering an Open API program using
the registration methods in uf_udobj.h.

Work Plane Emphasis is a mode where all objects that are not on the work plane
are dimmed through a color change. These de-emphasized objects are filtered
out of selection operations.

The work plane emphasis set consists of points, lines, arcs, conics splines,
planes datum planes, datum axes, coordinate systems (except the WCS and GFEM
coordinate systems), and edges. This option also employs an exclusion object
set, which consists of those objects not affected by work plane emphasis. The
exclusion object set consists of sketcher datums and degree of freedom
indicators, the WCS, and the Grid.