classHModelCache 06

" class="md">

 

static HModelCache* HModelCache::New const char *  name = NULL,
BOOL  embedded = TRUE
[static]
 

HModel * HModelCache::NewInstance HChor  ) 
 

This creates a new instance of a model and associates it with the HChor. But the resulting HModel pointer is only in existance inside the plugin. To actually insert the instance into the HChor the HModel pointer must be inserted into the HChor structure with a call to HChor::InsertChild(), otherwise you can work with the newly created instance in the chor, but the instance will disapear when the plugin exits.

Example:

   HChor *chor;
   HModelCache *hmc_new;
   HModel *working = hmc_new->NewInstance(chor);
   chor->InsertChildAtTail(working,TRUE);

void HModelCache::SetChanged BOOL  modified = TRUE  ) 
 

HSpline * HModelCache::StartSpline Vector p1,
Vector p2
 

Returns a pointer to the new HSpline that is created with the two control point positions passed in. Since a legal spline must have a least two control points, you must use this function to create new splines. You can add subsequent control points with HCP::AddCP().

Parameters:
p1  - position for the first HCP in the spline.
p2  - position for the second HCP in the spline.

The documentation for this class was generated from the following files:


This A:M SDK v12.0 documentation is maintained by Hash Inc. Please address any comments concerning this documentation to AMReports. If you have any information, knowledge, or documentation to share with the A:M developer community, please post them on the Hash SDK forum.

Generated on Thu Oct 27 11:46:56 2005 with doxygen 1.4.5 written by Dimitri van Heesch, © 1997-2001