ATTRIB_HH_ENT_GEOMBUILD_SURFACE
List of: Classes
Subjects: Healing, SAT Save and Restore
Contents: Healing

Purpose: Individual entity-level healing attribute class attached to surfaces in the geometry building phase.

Derivation: ATTRIB_HH_ENT_GEOMBUILD_SURFACE : ATTRIB_HH_ENT_GEOMBUILD_BASE : ATTRIB_HH_ENT : ATTRIB_HH : ATTRIB : ENTITY : ACIS_OBJECT : -

SAT Identifier: "attrib_hh_surface_geombuild"

Filename: heal/healhusk/attrib/surgmbld.hxx

Description: ATTRIB_HH_ENT_GEOMBUILD_SURFACE is the individual entity-level attribute class attached to surfaces during the geometry building phase. Individual entity-level attributes are attached to the individual entities of body being healed to store entity-specific information about each phase or subphase of the healing process. The individual entity-level attributes for each phase or subphase are managed by the aggregate attribute for that phase/subphase.

Data: protected int approx_fit;

Indicator of whether this is an exact or approximate fit surface. A value of 0 means exact fit; 1 means approximate fit.


protected int closure;

Indicator of whether this is a closed surface. A value of 0 means not closed; 1 means closed.


protected int continuity;

Indicator of whether this is a continuous surface. A value of 0 means continuos; 1 means discontinuous.


protected int degeneracy;

Indicator of whether this is a degenerate surface. A value of 0 means not degenerate; 1 means degenerate.


protected logical save_sw;

For future use.


protected int selfint;

Indicator of whether this is a self-intersecting surface. A value of 0 means not self-intersecting; 1 means self-intersecting.

Constructor: public: ATTRIB_HH_ENT_GEOMBUILD_SURFACE::


ATTRIB_HH_ENT_GEOMBUILD_SURFACE (


SURFACE* e // owning surface



= NULL


);


C++ initialize constructor requests memory for this object and populates it with the data supplied as arguments. Applications should call this constructor only with the overloaded new operator inherited from the ENTITY class (for example, x=new ATTRIB_HH_ENT_GEOMBUILD_SURFACE(...)), because this reserves the memory on the heap, a requirement to support roll back and history management.




Destructor: public: virtual void


ATTRIB_HH_ENT_GEOMBUILD_SURFACE::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.






protected: virtual ATTRIB_HH_ENT_GEOMBUILD_SURFACE::


~ATTRIB_HH_ENT_GEOMBUILD_SURFACE ();


This C++ destructor should never be called directly. Instead, applications should use the overloaded lose method inherited from the ENTITY class, because this supports history management. (For example, x=new ATTRIB_HH_ENT_GEOMBUILD_SURFACE(...) then later x->lose.)



Methods: public: int


ATTRIB_HH_ENT_GEOMBUILD_SURFACE::adv_check ();


Performs advanced checks on the owning surface. Checks for fit, closure, continuity, and self-intersection.






public: virtual void


ATTRIB_HH_ENT_GEOMBUILD_SURFACE::debug_ent (


FILE* // file pointer


) const;


Prints the type and address of this object, roll back pointer, attributes, and any unknown subtype information to the specified file. Refer to the ENTITY class for more details.






public: int ATTRIB_HH_ENT_GEOMBUILD_SURFACE::


get_approx_fit () const;


Gets the value of the indicator of whether this is an exact or approximate fit surface.






public: int ATTRIB_HH_ENT_GEOMBUILD_SURFACE::


get_closure () const;


Gets the value of the indicator of whether this is a closed surface.






public: int ATTRIB_HH_ENT_GEOMBUILD_SURFACE::


get_continuity () const;


Gets the value of the indicator of whether this is a continuous surface.






public: int ATTRIB_HH_ENT_GEOMBUILD_SURFACE::


get_degeneracy () const;


Gets the value of the indicator of whether this is a degenerate surface.






public: int ATTRIB_HH_ENT_GEOMBUILD_SURFACE::


get_quality () const;


Returns the surface quality based on values set in the attribute. Possible values are


0 Good quality. The surface is continuous, and the surface is not degenerate, and the surface does not self-intersect.

1 Poor quality. The surface is not continuous, or the surface is degenerate, or the surface self-intersects.


Returns UNSET if neither of these conditions is met.






public: int ATTRIB_HH_ENT_GEOMBUILD_SURFACE::


get_selfint () const;


Gets the value of the indicator of whether this is a self-intersecting surface.






public: virtual int


ATTRIB_HH_ENT_GEOMBUILD_SURFACE::identity (


int
// derivation level



= 0


) const;


If level is unspecified or 0, returns the type identifier ATTRIB_HH_TYPE. If level is specified, returns <class>_TYPE for that level of derivation from ENTITY. The level of this class is defined as ATTRIB_HH_ENT_GEOMBUILD_SURFACE_LEVEL.






public: virtual logical


ATTRIB_HH_ENT_GEOMBUILD_SURFACE::


is_deepcopyable () const;


Returns TRUE if this can be deep copied.






public: virtual logical


ATTRIB_HH_ENT_GEOMBUILD_SURFACE::


pattern_compatible () const;


Returns TRUE if this is pattern compatible.






public: void


ATTRIB_HH_ENT_GEOMBUILD_SURFACE::reset ();


Resets the attribute. Sets the continuity, degeneracy, self-intersection, closure, and fit indicators to UNSET.






public: void ATTRIB_HH_ENT_GEOMBUILD_SURFACE::


restore_common ();


The RESTORE_DEF macro expands to the restore_common method, which is used in reading information from a SAT file. This method is never called directly. It is called by a higher hierarchical function if an item in the SAT file is determined to be of this class type. An instance of this class will already have been created through the allocation constructor. This method then populates the class instance with the appropriate data from the SAT file.


if(restore_version_number >= TOL_MODELING_VERSION)


read_logical

This is the save_sw data item.






public: void


ATTRIB_HH_ENT_GEOMBUILD_SURFACE::set_approx_fit (


int q // new indicator


);


Sets the value of the approximate fit indicator.






public: void


ATTRIB_HH_ENT_GEOMBUILD_SURFACE::set_closure (


int q // new indicator


);


Sets the value of the closure indicator.






public: void


ATTRIB_HH_ENT_GEOMBUILD_SURFACE::set_continuity (


int q // new indicator


);


Sets the value of the continuity indicator.






public: void


ATTRIB_HH_ENT_GEOMBUILD_SURFACE::set_degeneracy (


int q // new indicator


);


Sets the value of the degeneracy indicator.






public: void


ATTRIB_HH_ENT_GEOMBUILD_SURFACE::set_selfint (


int q // new indicator


);


Sets the value of the self-intersection indicator.






public: virtual const char*


ATTRIB_HH_ENT_GEOMBUILD_SURFACE::


type_name () const;


Returns the string "attrib_hh_surface_geombuild".




Related Fncs: is_ATTRIB_HH_ENT_GEOMBUILD_SURFACE
PDF/HEAL/05CLE.PDF
HTM/DATA/HEAL/HEAL/05CLE/0008.HTM