CATMecModExtendItf CATMmrShapeFeaturePropertiesAdapter

Usage: you can derive this class.


public class CATMmrShapeFeaturePropertiesAdapter

Adapter class for the CATIShapeFeatureProperties interface.
Role: This class enables to implement the interface. Create a new class deriving from the current one, and reimplement the necessary methods among the four following methods:


Constructor and Destructor Index


o CATMmrShapeFeaturePropertiesAdapter()
Constructs the class.
o ~CATMmrShapeFeaturePropertiesAdapter()

Method Index


o CanBePatterned()
Returns if the current feature can be patterned.
o GetPolarity()
Returns the polarity of the solid feature.
o GiveMeYourBRepSpecifications(CATLISTV(CATIMmiUseMfBRep_var)&)
Returns all the BRep specifications.
o GiveMeYourFavoriteSketches(CATLISTV(CATIMmiMechanicalFeature_var)&)
Returns specific sketches.
o IsAContextualFeature()
Returns if the current solid feature is contextual.
o IsAFreeFormFeature()
Returns if the current solid feature is a form feature.

Constructor and Destructor


o CATMmrShapeFeaturePropertiesAdapter
public CATMmrShapeFeaturePropertiesAdapter()
Constructs the class.
o ~CATMmrShapeFeaturePropertiesAdapter
public virtual ~CATMmrShapeFeaturePropertiesAdapter()

Methods


o CanBePatterned
public virtual CanBePatterned()
Returns if the current feature can be patterned.
Returns:
An integer value.
Legal values:
  • 1 the current feature can be patterned.
  • 0 the current feature cannot be patterned.
The default implementation returns 0.
o GetPolarity
public virtual GetPolarity()
Returns the polarity of the solid feature.
Role:This method returns the polarity of the solid feature. The polarity of a feature enables to know if the feature adds or removes matter.
Returns:
The polarity of the feature:
  • EltAdd: The solid feature adds matter
  • EltRemove: The solid feature removes matter
The default implementation returns EltAdd.
o GiveMeYourBRepSpecifications
public virtual GiveMeYourBRepSpecifications( ioListOfBreps)
Returns all the BRep specifications.
Role: This method returns all the BRep ( ) features which are specifications of this solid feature.
The default implementation returns an empty list.
o GiveMeYourFavoriteSketches
public virtual GiveMeYourFavoriteSketches( ioListOfSketches)
Returns specific sketches.
Role:This method returns specific referenced sketches of the solid feature. These sketches will be used in two cases: The default implementation returns an empty list.
o IsAContextualFeature
public virtual IsAContextualFeature()
Returns if the current solid feature is contextual.
Role:This method enables you to know if the solid feature is a contextual feature or not.
Returns:
An integer value.
Legal values:
  • 1 the current feature is contextual.
  • 0 the current feature is not contextual.
For the features representing a boolean operation ( Add, Assemble, Remove, Intersect and Union Trim) the value is 0.
o IsAFreeFormFeature
public virtual IsAFreeFormFeature()
Returns if the current solid feature is a form feature.
Role:This method enables you to know if the solid feature is a form feature or not.
Returns:
An integer value.
Legal values:
  • 1 the current feature is a form feature.
  • 0 the current feature is not a form feature.
For the features representing a boolean operation ( Add, Assemble, Remove, Intersect and Union Trim) the value is 0.

This object is included in the file: CATMmrShapeFeaturePropertiesAdapter.h
If needed, your Imakefile.mk should include the module: CATMecModExtendItf

Copyright © 1999-2014, Dassault Systèmes. All rights reserved.