|
Purpose:
|
Represents the relationship between an edge and an entity.
|
|
|
Derivation:
|
edge_entity_rel : ACIS_OBJECT : -
|
|
|
Filename:
|
intr/intersct/sg_husk/query/edentrel.hxx
|
|
|
Description:
|
This class represents the relationship between an edge and an entity. The entity must be of the type
BODY,
FACE,
EDGE, or
POINT only.
|
|
|
References:
|
KERN
|
EDGE, ENTITY, curve_curve_int, curve_surf_int
|
|
|
Data:
|
public EDGE_BODY_INT *ebrel_data;
|
|
The edge-body intersection data.
|
|
|
public EDGE_EDGE_INT *edrel_data;
|
|
The edge-edge intersection data.
|
|
|
public EDGE_FACE_INT *efrel_data;
|
|
The edge-face intersection data.
|
|
|
public curve_curve_int *ccrel_data;
|
|
The curve-curve intersection data.
|
|
|
public curve_surf_int *csrel_data;
|
|
The curve-surface intersection data.
|
|
|
public logical no_relation;
|
|
The variable that indicates that there is no possible relation between the given edge and the given entity.
|
|
|
public sg_edge_ent_rel_union rel_type;
|
|
The relationship type, which is determined from the union.
|
|
|
Constructor:
|
public: edge_entity_rel::edge_entity_rel
();
|
|
|
C++ allocation constructor requests memory for this object but does not populate it.
|
|
|
|
|
|
|
public: edge_entity_rel::edge_entity_rel
(
|
|
|
EDGE*,
|
|
// edge
|
|
|
ENTITY*,
|
|
// entity
|
|
|
edge_entity_rel* next
|
|
// next pointer
|
|
|
|
= NULL,
|
|
|
const SPAtransf& edge_trans
|
// edge transform
|
|
|
|
= * (SPAtransf* ) NULL_REF,
|
|
|
const SPAtransf& ent_trans
|
// entity transform
|
|
|
|
= * (SPAtransf* ) NULL_REF
|
|
|
);
|
|
|
C++ initialize constructor requests memory for this object and populates it with the data supplied as arguments.
|
|
|
|
|
|
Destructor:
|
public: void edge_entity_rel::lose
();
|
|
|
Posts a delete bulletin to the bulletin board indicating the instance is no longer used in the active model. The
lose methods for attached attributes are also called. This is required because it has underlying entities associated with it.
|
|
|
|
|
Methods:
|
public: void edge_entity_rel::debug
(
|
|
|
FILE*,
|
// file name
|
|
|
const char* head
|
// heading text
|
|
|
|
= NULL
|
|
|
);
|
|
|
Writes debug information about
edge_entity_rel to standard output or the specified file.
|
|
|
|
|
|
|
public: EDGE* edge_entity_rel::edge
();
|
|
|
Returns the edge in the edge-entity relationship.
|
|
|
|
|
|
|
public: ENTITY* edge_entity_rel::entity
();
|
|
|
Returns the entity in the edge-entity relationship.
|
|
|
|
|
|
|
public: edge_entity_rel* edge_entity_rel::next
();
|
|
|
Returns the next pointer in the edge-entity relationship.
|
|
|
|
|
|
|
public: void edge_entity_rel::set_edge
(
|
|
|
EDGE* edge
|
// edge
|
|
|
);
|
|
|
Sets the edge in the edge-entity relationship.
|
|
|
|
|
|
|
public: void edge_entity_rel::set_entity
(
|
|
|
ENTITY* ent
|
// entity
|
|
|
);
|
|
|
Sets the entity in the edge-entity relationship.
|
|
|
|
|
|
|
public: void edge_entity_rel::set_next
(
|
|
|
edge_entity_rel* next
|
// next pointer
|
|
|
);
|
|
|
Sets the next pointer in the edge-entity relationship.
|