Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ delete_structure(3P) — PHIGS 1.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

DELETE STRUCTURE(3P)  —  SUNPHIGS LIBRARY

NAME

DELETE STRUCTURE − remove specified structure

SYNOPSIS

C Syntax

void
pdelstruct ( struct_id )
Pintstruct_id;structure identifier

FORTRAN Syntax

SUBROUTINE pdst ( STRID )
INTEGERSTRIDstructure identifier

Required PHIGS Operating States

(PHOP, ∗, ∗, ∗)

DESCRIPTION

Purpose

Use DELETE STRUCTURE to remove the specified structure from the Central Structure Store.  If the specified structure is closed, the subroutine removes the structure elements, structure identifier, and any references to the structure. If the structure is the currently open structure, the structure identifier is retained and remains open, but the structure contents and any references to the structure are deleted.

C Input Parameter

struct_id
Specifies the structure to be deleted.

FORTRAN Input Parameter

STRID
Specifies the structure to be deleted.

Execution

The effect of DELETE STRUCTURE when the specified structure is closed at the time the subroutine is called is different from the effect when structure identifier is the open structure.  The two situations are described below.  Deleting a Closed Structure If structure identifier is not the currently open structure, the DELETE STRUCTURE subroutine removes the specified structure from the PHIGS Central Structure Store. The subroutine deletes the structure identifier, structure contents, and all references to structure identifier contained in other structures. If the structure is posted to any workstations, it is unposted.  If the currently open structure contains an element referencing structure identifier, the element in the open structure is deleted and the remaining elements renumbered. If the element pointer is pointing to the deleted element, the pointer is set to the preceding element. If the element pointer is pointing to an element following the deleted element, the element pointer is updated such that it still refers to the same element. Deleting the Open Structure If structure identifier is the currently open structure, the result of DELETE STRUCTURE is to replace the open structure with an empty, unreferenced structure. The effect is the same as calling the following subroutines in sequence:

• CLOSE STRUCTURE

• DELETE STRUCTURE

• OPEN STRUCTURE

ERRORS

002Ignoring function, function requires state (PHOP, ∗, ∗, ∗)

SEE ALSO

DELETE ALL STRUCTURES (3P)
DELETE STRUCTURE NETWORK (3P)
DELETE STRUCTURES FROM ARCHIVE (3P)
EMPTY STRUCTURE (3P)

Sun Release 4.0  —  Last change: 31 July 1989

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026