mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-18 14:31:39 +00:00
Remove all references to _newclass from wrapper code
This commit is contained in:
@@ -197,13 +197,12 @@ struct ShapeRTTI : public boost::static_visitor<PyObject*>
|
|||||||
|
|
||||||
%extend IfcGeom::Representation::Triangulation {
|
%extend IfcGeom::Representation::Triangulation {
|
||||||
%pythoncode %{
|
%pythoncode %{
|
||||||
if _newclass:
|
# Hide the getters with read-only property implementations
|
||||||
# Hide the getters with read-only property implementations
|
id = property(id)
|
||||||
id = property(id)
|
faces = property(faces)
|
||||||
faces = property(faces)
|
edges = property(edges)
|
||||||
edges = property(edges)
|
material_ids = property(material_ids)
|
||||||
material_ids = property(material_ids)
|
materials = property(materials)
|
||||||
materials = property(materials)
|
|
||||||
%}
|
%}
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -211,91 +210,82 @@ struct ShapeRTTI : public boost::static_visitor<PyObject*>
|
|||||||
// would appear before templated getter functions are defined.
|
// would appear before templated getter functions are defined.
|
||||||
%extend IfcGeom::Representation::Triangulation<float> {
|
%extend IfcGeom::Representation::Triangulation<float> {
|
||||||
%pythoncode %{
|
%pythoncode %{
|
||||||
if _newclass:
|
# Hide the getters with read-only property implementations
|
||||||
# Hide the getters with read-only property implementations
|
verts = property(verts)
|
||||||
verts = property(verts)
|
normals = property(normals)
|
||||||
normals = property(normals)
|
|
||||||
%}
|
%}
|
||||||
};
|
};
|
||||||
%extend IfcGeom::Representation::Triangulation<double> {
|
%extend IfcGeom::Representation::Triangulation<double> {
|
||||||
%pythoncode %{
|
%pythoncode %{
|
||||||
if _newclass:
|
# Hide the getters with read-only property implementations
|
||||||
# Hide the getters with read-only property implementations
|
verts = property(verts)
|
||||||
verts = property(verts)
|
normals = property(normals)
|
||||||
normals = property(normals)
|
|
||||||
%}
|
%}
|
||||||
};
|
};
|
||||||
|
|
||||||
%extend IfcGeom::Representation::Serialization {
|
%extend IfcGeom::Representation::Serialization {
|
||||||
%pythoncode %{
|
%pythoncode %{
|
||||||
if _newclass:
|
# Hide the getters with read-only property implementations
|
||||||
# Hide the getters with read-only property implementations
|
id = property(id)
|
||||||
id = property(id)
|
brep_data = property(brep_data)
|
||||||
brep_data = property(brep_data)
|
surface_styles = property(surface_styles)
|
||||||
surface_styles = property(surface_styles)
|
|
||||||
%}
|
%}
|
||||||
};
|
};
|
||||||
|
|
||||||
%extend IfcGeom::Element {
|
%extend IfcGeom::Element {
|
||||||
%pythoncode %{
|
%pythoncode %{
|
||||||
if _newclass:
|
# Hide the getters with read-only property implementations
|
||||||
# Hide the getters with read-only property implementations
|
id = property(id)
|
||||||
id = property(id)
|
parent_id = property(parent_id)
|
||||||
parent_id = property(parent_id)
|
name = property(name)
|
||||||
name = property(name)
|
type = property(type)
|
||||||
type = property(type)
|
guid = property(guid)
|
||||||
guid = property(guid)
|
context = property(context)
|
||||||
context = property(context)
|
unique_id = property(unique_id)
|
||||||
unique_id = property(unique_id)
|
transformation = property(transformation)
|
||||||
transformation = property(transformation)
|
|
||||||
%}
|
%}
|
||||||
};
|
};
|
||||||
|
|
||||||
%extend IfcGeom::TriangulationElement {
|
%extend IfcGeom::TriangulationElement {
|
||||||
%pythoncode %{
|
%pythoncode %{
|
||||||
if _newclass:
|
# Hide the getters with read-only property implementations
|
||||||
# Hide the getters with read-only property implementations
|
geometry = property(geometry)
|
||||||
geometry = property(geometry)
|
|
||||||
%}
|
%}
|
||||||
};
|
};
|
||||||
|
|
||||||
%extend IfcGeom::SerializedElement {
|
%extend IfcGeom::SerializedElement {
|
||||||
%pythoncode %{
|
%pythoncode %{
|
||||||
if _newclass:
|
# Hide the getters with read-only property implementations
|
||||||
# Hide the getters with read-only property implementations
|
geometry = property(geometry)
|
||||||
geometry = property(geometry)
|
|
||||||
%}
|
%}
|
||||||
};
|
};
|
||||||
|
|
||||||
%extend IfcGeom::Material {
|
%extend IfcGeom::Material {
|
||||||
%pythoncode %{
|
%pythoncode %{
|
||||||
if _newclass:
|
# Hide the getters with read-only property implementations
|
||||||
# Hide the getters with read-only property implementations
|
has_diffuse = property(hasDiffuse)
|
||||||
has_diffuse = property(hasDiffuse)
|
has_specular = property(hasSpecular)
|
||||||
has_specular = property(hasSpecular)
|
has_transparency = property(hasTransparency)
|
||||||
has_transparency = property(hasTransparency)
|
has_specularity = property(hasSpecularity)
|
||||||
has_specularity = property(hasSpecularity)
|
diffuse = property(diffuse)
|
||||||
diffuse = property(diffuse)
|
specular = property(specular)
|
||||||
specular = property(specular)
|
transparency = property(transparency)
|
||||||
transparency = property(transparency)
|
specularity = property(specularity)
|
||||||
specularity = property(specularity)
|
name = property(name)
|
||||||
name = property(name)
|
|
||||||
%}
|
%}
|
||||||
};
|
};
|
||||||
|
|
||||||
%extend IfcGeom::Transformation {
|
%extend IfcGeom::Transformation {
|
||||||
%pythoncode %{
|
%pythoncode %{
|
||||||
if _newclass:
|
# Hide the getters with read-only property implementations
|
||||||
# Hide the getters with read-only property implementations
|
matrix = property(matrix)
|
||||||
matrix = property(matrix)
|
|
||||||
%}
|
%}
|
||||||
};
|
};
|
||||||
|
|
||||||
%extend IfcGeom::Matrix {
|
%extend IfcGeom::Matrix {
|
||||||
%pythoncode %{
|
%pythoncode %{
|
||||||
if _newclass:
|
# Hide the getters with read-only property implementations
|
||||||
# Hide the getters with read-only property implementations
|
data = property(data)
|
||||||
data = property(data)
|
|
||||||
%}
|
%}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -99,9 +99,8 @@ private:
|
|||||||
}
|
}
|
||||||
|
|
||||||
%pythoncode %{
|
%pythoncode %{
|
||||||
if _newclass:
|
# Hide the getters with read-only property implementations
|
||||||
# Hide the getters with read-only property implementations
|
header = property(header)
|
||||||
header = property(header)
|
|
||||||
%}
|
%}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -346,62 +345,58 @@ private:
|
|||||||
|
|
||||||
%extend IfcParse::IfcSpfHeader {
|
%extend IfcParse::IfcSpfHeader {
|
||||||
%pythoncode %{
|
%pythoncode %{
|
||||||
if _newclass:
|
# Hide the getters with read-only property implementations
|
||||||
# Hide the getters with read-only property implementations
|
file_description = property(file_description)
|
||||||
file_description = property(file_description)
|
file_name = property(file_name)
|
||||||
file_name = property(file_name)
|
file_schema = property(file_schema)
|
||||||
file_schema = property(file_schema)
|
|
||||||
%}
|
%}
|
||||||
};
|
};
|
||||||
|
|
||||||
%extend IfcParse::FileDescription {
|
%extend IfcParse::FileDescription {
|
||||||
%pythoncode %{
|
%pythoncode %{
|
||||||
if _newclass:
|
# Hide the getters with read-write property implementations
|
||||||
# Hide the getters with read-write property implementations
|
__swig_getmethods__["description"] = description
|
||||||
__swig_getmethods__["description"] = description
|
__swig_setmethods__["description"] = description
|
||||||
__swig_setmethods__["description"] = description
|
description = property(description, description)
|
||||||
description = property(description, description)
|
__swig_getmethods__["implementation_level"] = implementation_level
|
||||||
__swig_getmethods__["implementation_level"] = implementation_level
|
__swig_setmethods__["implementation_level"] = implementation_level
|
||||||
__swig_setmethods__["implementation_level"] = implementation_level
|
implementation_level = property(implementation_level, implementation_level)
|
||||||
implementation_level = property(implementation_level, implementation_level)
|
|
||||||
%}
|
%}
|
||||||
};
|
};
|
||||||
|
|
||||||
%extend IfcParse::FileName {
|
%extend IfcParse::FileName {
|
||||||
%pythoncode %{
|
%pythoncode %{
|
||||||
if _newclass:
|
# Hide the getters with read-write property implementations
|
||||||
# Hide the getters with read-write property implementations
|
__swig_getmethods__["name"] = name
|
||||||
__swig_getmethods__["name"] = name
|
__swig_setmethods__["name"] = name
|
||||||
__swig_setmethods__["name"] = name
|
name = property(name, name)
|
||||||
name = property(name, name)
|
__swig_getmethods__["time_stamp"] = time_stamp
|
||||||
__swig_getmethods__["time_stamp"] = time_stamp
|
__swig_setmethods__["time_stamp"] = time_stamp
|
||||||
__swig_setmethods__["time_stamp"] = time_stamp
|
time_stamp = property(time_stamp, time_stamp)
|
||||||
time_stamp = property(time_stamp, time_stamp)
|
__swig_getmethods__["author"] = author
|
||||||
__swig_getmethods__["author"] = author
|
__swig_setmethods__["author"] = author
|
||||||
__swig_setmethods__["author"] = author
|
author = property(author, author)
|
||||||
author = property(author, author)
|
__swig_getmethods__["organization"] = organization
|
||||||
__swig_getmethods__["organization"] = organization
|
__swig_setmethods__["organization"] = organization
|
||||||
__swig_setmethods__["organization"] = organization
|
organization = property(organization, organization)
|
||||||
organization = property(organization, organization)
|
__swig_getmethods__["preprocessor_version"] = preprocessor_version
|
||||||
__swig_getmethods__["preprocessor_version"] = preprocessor_version
|
__swig_setmethods__["preprocessor_version"] = preprocessor_version
|
||||||
__swig_setmethods__["preprocessor_version"] = preprocessor_version
|
preprocessor_version = property(preprocessor_version, preprocessor_version)
|
||||||
preprocessor_version = property(preprocessor_version, preprocessor_version)
|
__swig_getmethods__["originating_system"] = originating_system
|
||||||
__swig_getmethods__["originating_system"] = originating_system
|
__swig_setmethods__["originating_system"] = originating_system
|
||||||
__swig_setmethods__["originating_system"] = originating_system
|
originating_system = property(originating_system, originating_system)
|
||||||
originating_system = property(originating_system, originating_system)
|
__swig_getmethods__["authorization"] = authorization
|
||||||
__swig_getmethods__["authorization"] = authorization
|
__swig_setmethods__["authorization"] = authorization
|
||||||
__swig_setmethods__["authorization"] = authorization
|
authorization = property(authorization, authorization)
|
||||||
authorization = property(authorization, authorization)
|
|
||||||
%}
|
%}
|
||||||
};
|
};
|
||||||
|
|
||||||
%extend IfcParse::FileSchema {
|
%extend IfcParse::FileSchema {
|
||||||
%pythoncode %{
|
%pythoncode %{
|
||||||
if _newclass:
|
# Hide the getters with read-write property implementations
|
||||||
# Hide the getters with read-write property implementations
|
__swig_getmethods__["schema_identifiers"] = schema_identifiers
|
||||||
__swig_getmethods__["schema_identifiers"] = schema_identifiers
|
__swig_setmethods__["schema_identifiers"] = schema_identifiers
|
||||||
__swig_setmethods__["schema_identifiers"] = schema_identifiers
|
schema_identifiers = property(schema_identifiers, schema_identifiers)
|
||||||
schema_identifiers = property(schema_identifiers, schema_identifiers)
|
|
||||||
%}
|
%}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user