Home

asm_model_info Class Reference
[Assembly Modeling]

Structure to contain information about an assembly modeling model. More...

#include <asm_model_info.hxx>

Inheritance diagram for asm_model_info:

Inheritance graph
[legend]
Collaboration diagram for asm_model_info:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 asm_model_info (const asm_model_info &other)
 Copy constructor.
 asm_model_info ()
 Default constructor.
wchar_t const * get_model_name () const
 Returns the model's name.
asm_model_infooperator= (const asm_model_info &other)
 Assignment operator.
void set_model_name (wchar_t const *new_name)
 Sets the model name field of the asm_model_info object.
 ~asm_model_info ()
 Destructor.

Public Attributes

logical model_has_asm
 Flag indicating whether or not the model contains an assembly.
double model_resabs
 Positional tolerance for this model.
double model_resnor
 Angular tolerance for this model.
double model_units
 Number of millimeters which make up one modeling unit in this model, for example, 1000 for a part in meters.


Detailed Description

Structure to contain information about an assembly modeling model.


Role: The asm_model_info object is intended to consolidate information about the properties of an asm_model object into a single class object. Its primary use is during ASAT save and restore. During save, each model being saved is queried for its model info, which is persisted to the ASAT file. During restore, this model info is passed to the entity manager factory that constructs the corresponding restored model's entity manager.

See also:
asm_model, asm_model_entity_mgr

Constructor & Destructor Documentation

asm_model_info::asm_model_info (  ) 

Default constructor.

asm_model_info::asm_model_info ( const asm_model_info other  ) 

Copy constructor.



Parameters:
other other model.

asm_model_info::~asm_model_info (  ) 

Destructor.


Member Function Documentation

wchar_t const* asm_model_info::get_model_name (  )  const

Returns the model's name.



Role: This method returns the customer-assigned name string associated with the model.

asm_model_info& asm_model_info::operator= ( const asm_model_info other  ) 

Assignment operator.



Parameters:
other other model.

void asm_model_info::set_model_name ( wchar_t const *  new_name  ) 

Sets the model name field of the asm_model_info object.



Role: This method allows the customer to assign a value to the model-name data member of this asm_model_info object. Note that the function asmi_model_get_info returns a copy of the model's information, so customers should not try to change the name of a model by calling asmi_model_get_info and then calling set_model_name on the result. Instead, they should call an appropriate method on the model's concrete entity manager object.


Member Data Documentation

Flag indicating whether or not the model contains an assembly.

Positional tolerance for this model.

Angular tolerance for this model.

Note that customers should NEVER change SPAresnor away from its initial value of 1.0e-10.

Number of millimeters which make up one modeling unit in this model, for example, 1000 for a part in meters.