GeometryFacade : Add static getInternalType and setInternalType
This commit is contained in:
@@ -178,6 +178,22 @@ bool GeometryFacade::isInternalAligned(const Part::Geometry* geometry)
|
||||
return gf->isInternalAligned();
|
||||
}
|
||||
|
||||
InternalType::InternalType GeometryFacade::getInternalType(const Part::Geometry* geometry)
|
||||
{
|
||||
throwOnNullPtr(geometry);
|
||||
|
||||
auto gf = GeometryFacade::getFacade(geometry);
|
||||
return gf->getInternalType();
|
||||
}
|
||||
|
||||
void GeometryFacade::setInternalType(Part::Geometry* geometry, InternalType::InternalType type)
|
||||
{
|
||||
throwOnNullPtr(geometry);
|
||||
|
||||
auto gf = GeometryFacade::getFacade(geometry);
|
||||
gf->setInternalType(type);
|
||||
}
|
||||
|
||||
bool GeometryFacade::getBlocked(const Part::Geometry* geometry)
|
||||
{
|
||||
throwOnNullPtr(geometry);
|
||||
|
||||
@@ -128,6 +128,8 @@ public: // Utility methods
|
||||
static void setConstruction(Part::Geometry* geometry, bool construction);
|
||||
static bool isInternalType(const Part::Geometry* geometry, InternalType::InternalType type);
|
||||
static bool isInternalAligned(const Part::Geometry* geometry);
|
||||
static InternalType::InternalType getInternalType(const Part::Geometry* geometry);
|
||||
static void setInternalType(Part::Geometry* geometry, InternalType::InternalType type);
|
||||
static bool getBlocked(const Part::Geometry* geometry);
|
||||
|
||||
public:
|
||||
|
||||
Reference in New Issue
Block a user