|
SHAPER
9.15.0
|
Interface to the root class of all topological shapes constructions. More...

Public Types | |
| enum | BuilderType { Unknown , OCCT_BRepBuilderAPI_MakeShape , OCCT_BOPAlgo_Builder , OCCT_BRepOffset_MakeOffset } |
| Builder type enum. More... | |
Public Member Functions | |
| GEOMALGOAPI_EXPORT | GeomAlgoAPI_MakeShape () |
| Empty constructor. More... | |
| GEOMALGOAPI_EXPORT | ~GeomAlgoAPI_MakeShape () |
| Destructor for remove myHist. More... | |
| template<class T > | |
| GeomAlgoAPI_MakeShape (T *theBuilder, const BuilderType theBuilderType=OCCT_BRepBuilderAPI_MakeShape) | |
| Constructor by builder and builder type. More... | |
| template<class T > | |
| void | initialize (T *theBuilder, const BuilderType theBuilderType=OCCT_BRepBuilderAPI_MakeShape) |
| Initializes internals. More... | |
| virtual GEOMALGOAPI_EXPORT void | build () |
| Execute the algorithm. More... | |
| GEOMALGOAPI_EXPORT bool | isDone () const |
| virtual GEOMALGOAPI_EXPORT const GeomShapePtr | shape () const |
| GEOMALGOAPI_EXPORT bool | isValid () const |
| GEOMALGOAPI_EXPORT std::shared_ptr< GeomAPI_DataMapOfShapeShape > | mapOfSubShapes () const |
| virtual GEOMALGOAPI_EXPORT void | generated (const GeomShapePtr theOldShape, ListOfShape &theNewShapes) |
| virtual GEOMALGOAPI_EXPORT void | modified (const GeomShapePtr theOldShape, ListOfShape &theNewShapes) |
| Get a list of new shapes, modified from the given old shape. More... | |
| GEOMALGOAPI_EXPORT void | modifiedCached (const GeomShapePtr theOldShape, ListOfShape &theNewShapes) |
| Get a list of new shapes, modified from the given old shape. More... | |
| virtual GEOMALGOAPI_EXPORT bool | isDeleted (const GeomShapePtr theOldShape) |
| virtual GEOMALGOAPI_EXPORT bool | check () |
| virtual GEOMALGOAPI_EXPORT void | prepareNamingFaces () |
| Prepare the naming of faces. More... | |
| GEOMALGOAPI_EXPORT std::map< std::string, GeomShapePtr > | getCreatedFaces () |
| GEOMALGOAPI_EXPORT std::string | getError () |
| GEOMALGOAPI_EXPORT bool | checkValid (std::string theMessage) |
| Check the validity of the produced shape. More... | |
| GEOMALGOAPI_EXPORT bool | isNewShapesCollected (GeomShapePtr theWholeOld, const int theShapeType) |
| Optimization of access the new shapes by old shapes for the limited set of needed new shapes. More... | |
| GEOMALGOAPI_EXPORT void | collectNewShapes (GeomShapePtr theWholeOld, const int theShapeType) |
| Optimization of access the new shapes by old shapes for the limited set of needed new shapes. More... | |
| GEOMALGOAPI_EXPORT void | cleanNewShapes (GeomShapePtr theWholeOld, const int theShapeType) |
| Clean cached data, created by collectNewShapes() method, called with the same arguments. More... | |
| GEOMALGOAPI_EXPORT GeomShapePtr | oldShapesForNew (GeomShapePtr theWholeOld, GeomShapePtr theNewShape, const int theShapeType) |
| Optimization of access the new shapes by old shapes for the limited set of needed new shapes. More... | |
| GEOMALGOAPI_EXPORT void | fixOrientation (GeomShapePtr &theShape) |
| Replaces theShape with shape from myMap. More... | |
| template<class T > | |
| T * | implPtr () |
| Returns the pointer to the impl. More... | |
| template<class T > | |
| const T * | implPtr () const |
| Returns the pointer to the impl. More... | |
| template<class T > | |
| const T & | impl () const |
| Returns the reference object of the impl. More... | |
| template<class T > | |
| void | setImpl (T *theImpl) |
| Updates the impl (deletes the old one) More... | |
| GEOMAPI_EXPORT bool | empty () const |
| Returns true if the impl is empty. More... | |
Protected Member Functions | |
| GEOMALGOAPI_EXPORT void | setBuilderType (const BuilderType theBuilderType) |
| Sets builder type. More... | |
| GEOMALGOAPI_EXPORT void | setDone (const bool theFlag) |
| Sets status of builder. More... | |
| GEOMALGOAPI_EXPORT void | setShape (const GeomShapePtr theShape) |
| Sets result shape. More... | |
| bool | isValidForHistory (const GeomShapePtr theShape) |
Protected Attributes | |
| std::shared_ptr< GeomAPI_DataMapOfShapeShape > | myMap |
| Data map to keep correct orientation of sub-shapes. More... | |
| std::string | myError |
| Error occurred during the execution of an algorithm. More... | |
| std::map< std::string, GeomShapePtr > | myCreatedFaces |
| Map of created faces with their name for naming. More... | |
Interface to the root class of all topological shapes constructions.
Builder type enum.
| GeomAlgoAPI_MakeShape::GeomAlgoAPI_MakeShape | ( | ) |
Empty constructor.
| GeomAlgoAPI_MakeShape::~GeomAlgoAPI_MakeShape | ( | ) |
Destructor for remove myHist.
|
inlineexplicit |
Constructor by builder and builder type.
| [in] | theBuilder | pointer to the builder. |
| [in] | theBuilderType | builder type. |
|
inline |
Initializes internals.
| [in] | theBuilder | pointer to the builder. |
| [in] | theBuilderType | builder type. |
|
inlinevirtual |
Execute the algorithm.
Reimplemented in GeomAlgoAPI_Tube, GeomAlgoAPI_Torus, GeomAlgoAPI_Sphere, GeomAlgoAPI_Ellipsoid, GeomAlgoAPI_Cylinder, GeomAlgoAPI_ConeSegment, GeomAlgoAPI_Cone, and GeomAlgoAPI_Box.
| bool GeomAlgoAPI_MakeShape::isDone | ( | ) | const |
|
virtual |
Reimplemented in GeomAlgoAPI_MakeShapeList.
| bool GeomAlgoAPI_MakeShape::isValid | ( | ) | const |
| std::shared_ptr< GeomAPI_DataMapOfShapeShape > GeomAlgoAPI_MakeShape::mapOfSubShapes | ( | ) | const |
|
virtual |
| [in] | theOldShape | base shape. |
| [out] | theNewShapes | shapes generated from theShape. Does not cleared! |
Reimplemented in GeomAlgoAPI_Pipe, GeomAlgoAPI_MakeShapeSet, GeomAlgoAPI_MakeShapeList, GeomAlgoAPI_Thickness, GeomAlgoAPI_Offset, GeomAlgoAPI_MakeShapeCustom, and GeomAlgoAPI_Fillet1D.
|
virtual |
Get a list of new shapes, modified from the given old shape.
| [in] | theOldShape | base shape. |
| [out] | theNewShapes | shapes modified from theOldShape. Does not cleared! |
Reimplemented in GeomAlgoAPI_UnifySameDomain, GeomAlgoAPI_Sewing, GeomAlgoAPI_MakeShapeCustom, GeomAlgoAPI_MakeShapeSet, GeomAlgoAPI_MakeShapeList, GeomAlgoAPI_MakeVolume, GeomAlgoAPI_Fillet1D, and GeomAlgoAPI_Boolean.
| void GeomAlgoAPI_MakeShape::modifiedCached | ( | const GeomShapePtr | theOldShape, |
| ListOfShape & | theNewShapes | ||
| ) |
Get a list of new shapes, modified from the given old shape.
Works correctly only in case if the modifications are cached. Check this with isNewShapesCollected().
| [in] | theOldShape | base shape. |
| [out] | theNewShapes | shapes modified from theOldShape. Does not cleared! |
|
virtual |
| [in] | theOldShape | base shape. |
Reimplemented in GeomAlgoAPI_MakeShapeList, and GeomAlgoAPI_MakeShapeCustom.
|
inlinevirtual |
Reimplemented in GeomAlgoAPI_Tube, GeomAlgoAPI_Torus, GeomAlgoAPI_Sphere, GeomAlgoAPI_Ellipsoid, GeomAlgoAPI_Cylinder, GeomAlgoAPI_ConeSegment, GeomAlgoAPI_Cone, and GeomAlgoAPI_Box.
|
virtual |
Prepare the naming of faces.
Reimplemented in GeomAlgoAPI_Box.
|
inline |
|
inline |
| bool GeomAlgoAPI_MakeShape::checkValid | ( | std::string | theMessage | ) |
Check the validity of the produced shape.
| bool GeomAlgoAPI_MakeShape::isNewShapesCollected | ( | GeomShapePtr | theWholeOld, |
| const int | theShapeType | ||
| ) |
Optimization of access the new shapes by old shapes for the limited set of needed new shapes.
| theWholeOld | the whole old shape |
| theShapeType | type of the sub-shapes that is used for optimization |
| void GeomAlgoAPI_MakeShape::collectNewShapes | ( | GeomShapePtr | theWholeOld, |
| const int | theShapeType | ||
| ) |
Optimization of access the new shapes by old shapes for the limited set of needed new shapes.
| theWholeOld | the whole old shape |
| theShapeType | type of the sub-shapes that is used for optimization |
| void GeomAlgoAPI_MakeShape::cleanNewShapes | ( | GeomShapePtr | theWholeOld, |
| const int | theShapeType | ||
| ) |
Clean cached data, created by collectNewShapes() method, called with the same arguments.
| theWholeOld | the whole old shape |
| theShapeType | type of the sub-shapes that is used for optimization |
| GeomShapePtr GeomAlgoAPI_MakeShape::oldShapesForNew | ( | GeomShapePtr | theWholeOld, |
| GeomShapePtr | theNewShape, | ||
| const int | theShapeType | ||
| ) |
Optimization of access the new shapes by old shapes for the limited set of needed new shapes.
| theWholeOld | the whole old shape |
| theNewShape | the whole new shape |
| theShapeType | type of the old sub-shapes |
| void GeomAlgoAPI_MakeShape::fixOrientation | ( | GeomShapePtr & | theShape | ) |
Replaces theShape with shape from myMap.
|
protected |
Sets builder type.
| [in] | theBuilderType | new builder type. |
|
protected |
Sets status of builder.
| [in] | theFlag | new status. |
|
protected |
Sets result shape.
| [in] | theShape | new shape. |
|
protected |
|
inlineinherited |
Returns the pointer to the impl.
|
inlineinherited |
Returns the pointer to the impl.
|
inlineinherited |
Returns the reference object of the impl.
|
inlineinherited |
Updates the impl (deletes the old one)
|
inherited |
Returns true if the impl is empty.
|
protected |
Data map to keep correct orientation of sub-shapes.
|
protected |
Error occurred during the execution of an algorithm.
|
protected |
Map of created faces with their name for naming.