|
Open CASCADE Technology 6.5.2
|
This class intended to setup / retrieve default triangulation algorithm.
Use BRepMesh_DiscretFactory::Get() static method to retrieve global Factory instance.
Use BRepMesh_DiscretFactory::Discret() method to retrieve meshing tool.
#include <BRepMesh_DiscretFactory.hxx>
Public Member Functions | |
| void * | operator new (size_t, void *anAddress) |
| void * | operator new (size_t size) |
| void | operator delete (void *anAddress) |
| const TColStd_MapOfAsciiString & | Names () const |
| Returns the list of registered meshing algorithms. | |
| Standard_Boolean | SetDefaultName (const TCollection_AsciiString &theName) |
| Setup meshing algorithm by name. Returns true if requested tool is available. On fail Factory will continue to use previous algo. | |
| const TCollection_AsciiString & | DefaultName () const |
| Returns name for current meshing algorithm. | |
| Standard_Boolean | SetFunctionName (const TCollection_AsciiString &theFuncName) |
| Advanced function. Changes function name to retrieve from plugin. Returns true if requested tool is available. On fail Factory will continue to use previous algo. | |
| Standard_Boolean | SetDefault (const TCollection_AsciiString &theName, const TCollection_AsciiString &theFuncName="DISCRETALGO") |
| Setup meshing algorithm that should be created by this Factory. Returns true if requested tool is available. On fail Factory will continue to use previous algo. Call ::ErrorStatus() method to retrieve fault reason. | |
| const TCollection_AsciiString & | FunctionName () const |
| Returns function name that should be exported by plugin. | |
| Handle_BRepMesh_DiscretRoot | Discret (const TopoDS_Shape &theShape, const Standard_Real theDeflection, const Standard_Real theAngle) |
| Returns triangulation algorithm instance. | |
| BRepMesh_FactoryError | ErrorStatus () const |
| Returns error status for last meshing algorithm switch. | |
Static Public Member Functions | |
| static BRepMesh_DiscretFactory & | Get () |
| Returns the global factory instance. | |
Protected Member Functions | |
| BRepMesh_DiscretFactory () | |
| virtual | ~BRepMesh_DiscretFactory () |
| void | Clear () |
Protected Attributes | |
| BRepMesh_PluginEntryType | myPluginEntry |
| BRepMesh_FactoryError | myErrorStatus |
| TColStd_MapOfAsciiString | myNames |
| TCollection_AsciiString | myDefaultName |
| TCollection_AsciiString | myFunctionName |
| Plugin_MapOfFunctions | myFactoryMethods |
| BRepMesh_DiscretFactory::BRepMesh_DiscretFactory | ( | ) | [protected] |
| virtual BRepMesh_DiscretFactory::~BRepMesh_DiscretFactory | ( | ) | [protected, virtual] |
| void BRepMesh_DiscretFactory::Clear | ( | ) | [protected] |
| const TCollection_AsciiString& BRepMesh_DiscretFactory::DefaultName | ( | ) | const |
| Handle_BRepMesh_DiscretRoot BRepMesh_DiscretFactory::Discret | ( | const TopoDS_Shape & | theShape, |
| const Standard_Real | theDeflection, | ||
| const Standard_Real | theAngle | ||
| ) |
| BRepMesh_FactoryError BRepMesh_DiscretFactory::ErrorStatus | ( | ) | const |
| const TCollection_AsciiString& BRepMesh_DiscretFactory::FunctionName | ( | ) | const |
| static BRepMesh_DiscretFactory& BRepMesh_DiscretFactory::Get | ( | ) | [static] |
| const TColStd_MapOfAsciiString& BRepMesh_DiscretFactory::Names | ( | ) | const |
| void BRepMesh_DiscretFactory::operator delete | ( | void * | anAddress | ) | [inline] |
| void* BRepMesh_DiscretFactory::operator new | ( | size_t | size | ) | [inline] |
| void* BRepMesh_DiscretFactory::operator new | ( | size_t | , |
| void * | anAddress | ||
| ) | [inline] |
| Standard_Boolean BRepMesh_DiscretFactory::SetDefault | ( | const TCollection_AsciiString & | theName, |
| const TCollection_AsciiString & | theFuncName = "DISCRETALGO" |
||
| ) |
| Standard_Boolean BRepMesh_DiscretFactory::SetDefaultName | ( | const TCollection_AsciiString & | theName | ) |
| Standard_Boolean BRepMesh_DiscretFactory::SetFunctionName | ( | const TCollection_AsciiString & | theFuncName | ) |
1.7.4