Source code for Muscat.ImplicitGeometry.ImplicitGeometryFactory
# -*- coding: utf-8 -*-
#
# This file is subject to the terms and conditions defined in
# file 'LICENSE.txt', which is part of this source code package.
#
from Muscat.Helpers.Factory import Factory
[docs]
def RegisterClass(name, classtype, constructor=None, withError = True):
return ImplicitGeometryFactory.RegisterClass(name,classtype, constructor=constructor, withError = withError )
[docs]
def Create(name,ops=None):
return ImplicitGeometryFactory.Create(name,ops)
[docs]
class ImplicitGeometryFactory(Factory):
_Catalog = {}
_SetCatalog = set()
def __init__(self):
super().__init__()
[docs]
def InitAllImplicitGeometry():
import Muscat.ImplicitGeometry.ImplicitGeometryBase
import Muscat.ImplicitGeometry.ImplicitGeometryObjects
import Muscat.ImplicitGeometry.ImplicitGeometryOperators
[docs]
def CheckIntegrity():
obj = ImplicitGeometryFactory()
InitAllImplicitGeometry()
return "OK"
if __name__ == '__main__': # pragma: no cover
print(CheckIntegrity())