C3D Toolkit  Kernel - 118072, Vision - 2.18.1.1852
MtDimensionDriver Class Reference

A driver over dimensional constraints providing parametric reposition features. More...

#include <gcm_dimension_driver.h>

+ Inheritance diagram for MtDimensionDriver:
+ Collaboration diagram for MtDimensionDriver:

Public Member Functions

SPtr< MtGeomSolver > Solver ()
 Accesses the captured solver instance.
 
MtResultCode3D AttachGeom (const ItGeom &geom)
 Adds a geometric object to the ones targeted for reposition.
 
MtResultCode3D DetachGeom (const ItGeom &geom)
 Removes a geometric object from the ones targeted for reposition.
 
MtResultCode3D AttachConstraint (const ItConstraintItem &constraint)
 Adds a (dimensional) constraint to the main reposition-driving ones.
 
MtResultCode3D DetachConstraint (const ItConstraintItem &constraint)
 Removes a (dimensional) constraint from the main reposition-driving ones.
 
void Enable ()
 Turns this driver on, thus constraining the mobility of geometric objects within the supplied environment.
 
void Disable ()
 Turns this driver off, thus removing all extra constraints.
 
- Public Member Functions inherited from MtRefItem
refcount_t AddRef () const
 Adds a reference to this object.
 
refcount_t Release () const
 Releases a reference to this object.
 
refcount_t GetUseCount () const
 Returns a number of objects referring to this.
 

Friends

SPtr< MtDimensionDriver > GCM_CreateDimensionDriver (SPtr< MtGeomSolver > solver)
 Creates a driver instance for dimensional constraints. More...
 

Detailed Description

A driver over dimensional constraints providing parametric reposition features.

An instance of this class captures a geometric system for its own time and, when is active, automatically constrains mobility of objects which are subject to specializable dimensional constraints but not targeted for reposition. The implementation is based on the public API.

Friends And Related Function Documentation

◆ GCM_CreateDimensionDriver

SPtr<MtDimensionDriver> GCM_CreateDimensionDriver ( SPtr< MtGeomSolver >  solver)
friend

Creates a driver instance for dimensional constraints.

Parameters
[in]solver- A pointer to a solver instance for capturing.
Returns
A pointer to the created driver instance.

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