IObjectGenerator_DG Interface
- Create
- Create1
- Create2
The returned object is an interface. Its name is the type string prepended with 'I'. For an examle, a call to Create("Array_DG", ..) returns IArray_DG interface.
Exception: In x64 DG Kernel edition Create("Mesh", ..) returns IMesh64
Not all interfaces can be obtained this way. For an example, IBRepShape_DG is an abstract base interface. The object, which implements it, must be constructed as BRepSolid_DG, etc. concrete type.
The table below may be out of date after updates so it is recomended to try name of the required interface (without the leading I)
Implemented type string values
2DPointArray_DG |
BRepSolid_DG |
Line2d_DG |
Appearance_DG |
BRepVertex_DG |
Line_DG |
Arc |
BRepWire_DG |
MapUnkn_DG |
ArcSplineCurve |
BSplineCurve2d_DG |
Matrix_DG |
Array_DG |
BSplineCurve_DG |
Mesh |
ArrayInt_DG |
BSplineCurveInterpolator_DG |
Model_DG |
ArrayDouble_DG |
BSplineSurface_DG |
Move |
Blob |
Circle2d_DG |
PathCollisionDetector |
Box_DG |
Circle_DG |
Pipe |
BRepBuilder_DG |
Cone_DG |
Plane_DG |
BRepBuilderEx_DG |
CylindricalSurface_DG |
PointArray_DG |
BRepChamfer_DG |
Dictionary_DG |
PointMatrix_DG |
BRepCompositeSolid_DG |
EntityArray_DG |
Polygon3D_DG |
BRepCompound_DG |
Entity_DG |
ShapeArray_DG |
BRepDraftAngle_DG |
ESPAlgorithm |
Sphere_DG |
BRepEdge_DG |
Frame2d_DG |
StickyLabel |
BRepFace_DG |
FrameArray_DG |
SurfacePoint_DG |
BRepFeaturePrism_DG |
Frame_DG |
Torus_DG |
BRepFillet_DG |
Geometry_DG* |
VectorOperation_DG |
BRepGeometry_DG |
KO_BRepExtrema_DistShapeShape |
VirtualView |
BRepShell_DG |
List_DG |
WireArrayToSurfaceBuilder_DG |
*) By default (Create method) IGeometry_DG is constructed as BRep type. To construct other types of geometry use Create2() method with params containing string item named "Type"
and value one of geometry types: "BRep", "Mesh", etc.
See IEntity_DG.SetGeometryType(). See an example below.
Deprecated
CutEffect_KC |
KO_Geom_Plane |
KO_TColStd_Array1OfBoolean |
Dictionary_KC |
KO_Geom_BSplineSurface |
KO_TColStd_Array1OfInteger |
Ellipse_KC |
KO_Graphic2d_Point |
KO_TColStd_Array1OfReal |
KO_BRep_Builder |
KO_Graphic2d_Text |
KO_TColStd_Array2OfReal |
KO_BRep_Tool |
KO_gp_Ax1 |
KO_TColgp_Array2OfPnt |
KO_BRepBuilderAPI_MakeEdge |
KO_gp_Ax2 |
KO_TopoDS_Builder |
KO_BRepBuilderAPI_MakeFace |
KO_gp_Ax22d |
KO_TopoDS_Compound |
KO_BRepBuilderAPI_MakeWire |
KO_gp_Ax2d |
KO_TopoDS_CompSolid |
KO_BRepOffsetAPI_ThruSections |
KO_gp_Ax3 |
KO_TopoDS_Edge |
KO_BRepPrimAPI_MakePrism |
KO_gp_Circ |
KO_TopoDS_Face |
KO_Geom2d_Geometry |
KO_gp_Circ2d |
KO_TopoDS_Shape |
KO_Geom2d_Circle |
KO_gp_Cone |
KO_TopoDS_Shell |
KO_Geom2d_Conic |
KO_gp_Cylinder |
KO_TopoDS_Solid |
KO_Geom2d_Curve |
KO_gp_Sphere |
KO_TopoDS_Vertex |
KO_Geom2d_Line |
KO_gp_Torus |
KO_TopoDS_Wire |
KO_GeomAPI_Interpolate |
KO_gp_Pln |
Label3D_KC |
KO_GeomAPI_PointsToBSpline |
KO_gp_Quaternion |
Measurement_KC |
KO_Geom_BSplineCurve |
KO_gp_Trsf |
PrizmInfinite_KC |
KO_Geom_Circle |
KO_TColgp_Array1OfPnt |
StripArcLine_KC |
KO_Geom_CylindricalSurface |
KO_TColgp_Array1OfVec |
TextSection_KC |
KO_Geom_Line |
|
|
Object Create(string type)
See the comments above
Object Create1(string type, Object iParam)
iParam - a parameter specific for the requested type.
See the comments above for the other parameters
Object Create2(string type, IDictionary_DG params)
The method allows specifying additional data for the construction. Use call similar to:
IDictionary_DG params = iObjectGenerator_DG.Create("Dictionary_DG") as IDictionary_DG;
to create the dictionary.The first imeplemented case is: type="Geometry_DG" and params contains "Type" string with value one of geometry types: "BRep", "Mesh", etc.
See IEntity_DG.SetGeometryType().
Example:
params.SetString("Type", "Mesh");
IGeometry_DG iGeom = iObjectGenerator_DG.Create2("Geometry_DG", params) as IGeometry_DG;
IMesh iMesh = iGeom as IMesh;
|