Best JavaScript code snippet using mountebank
api.mjs
Source:api.mjs
1const isReturn = { isReturn: true };2const isNullable = { isNullable: true };3const isErrorBool = { isErrorBool: true };4const ignore = { ignore: true };5const isRaw = { isRaw: true };6const isOnHeap = { isOnStack: false };7export default {8 classes: {9 RefItem: {10 rawHeader: "reference_item.h",11 freeFunctionName: "::DeleteItem",12 protectedDestructor: true,13 functions: [14 "refcount_t GetUseCount()",15 "void AddRef()",16 ]17 },18 Function: {19 rawHeader: ["function.h"]20 },21 CubicFunction: {22 rawHeader: ["func_cubic_function.h"],23 dependencies: ["Function.h"],24 extends: "Function",25 initializers: ["double value1, double value2"],26 functions: [27 "bool InsertValue(double t, double newValue)"28 ]29 },30 AttributeContainer: {31 rawHeader: "attribute_container.h",32 functions: [33 "void SetStyle(int s)",34 "int GetStyle()",35 "void AttributesConvert(MbAttributeContainer & other)",36 ],37 },38 SpaceItem: {39 rawHeader: "space_item.h",40 extends: "RefItem",41 dependencies: ["RefItem.h", "RegDuplicate.h", "RegTransform.h", "Matrix3D.h", "Vector3D.h", "Axis3D.h", "Cube.h"],42 functions: [43 "MbeSpaceType IsA()",44 "MbeSpaceType Type()",45 "MbeSpaceType Family()",46 { signature: "MbItem * Cast()", isManual: true },47 "void Transform(const MbMatrix3D & mat, MbRegTransform * iReg = NULL)",48 "void Move(const MbVector3D & v, MbRegTransform * iReg = NULL)",49 "void Rotate(const MbAxis3D & axis, double angle, MbRegTransform * iReg = NULL )",50 "void Refresh()",51 // { signature: "MbSpaceItem * Duplicate(MbRegDuplicate * iReg = NULL)", isManual: true },52 { signature: "MbSpaceItem & Duplicate(MbRegDuplicate * iReg = NULL)", return: { isOnStack: false } },53 "void AddYourGabaritTo(MbCube & cube)",54 ]55 },56 ControlData3D: {57 rawHeader: "mb_data.h",58 dependencies: ["CartPoint3D.h"],59 functions: [60 "size_t Count()",61 { signature: "bool GetPoint(size_t i, MbCartPoint3D & p)", return: isErrorBool, p: isReturn },62 "bool SetPoint(size_t i, MbCartPoint3D & p)",63 "size_t TotalCount()",64 "size_t ShareCount()",65 "void ResetIndex()",66 ],67 },68 Creator: {69 rawHeader: "creator.h",70 extends: "RefItem",71 dependencies: ["RefItem.h", "ControlData3D.h", "SpaceItem.h", "SNameMaker.h", "FaceShell.h"],72 functions: [73 "MbeCreatorType IsA()",74 "MbeCreatorType Type()",75 { signature: "MbCreator * Cast()", isManual: true },76 { signature: "void GetBasisPoints(MbControlData3D & cd)", cd: isReturn },77 "void SetBasisPoints(const MbControlData3D & cd)",78 { signature: "void GetBasisItems(RPArray<MbSpaceItem> & items)", items: isReturn },79 "size_t GetCreatorsCount(MbeCreatorType ct)",80 { signature: "const MbSNameMaker & GetYourNameMaker()", return: isOnHeap },81 "MbeProcessState GetStatus()",82 "void SetStatus(MbeProcessState l)",83 { signature: "bool CreateShell(MbFaceShell *& shell, MbeCopyMode sameShell, RPArray<MbSpaceItem> * items = NULL)", items: isReturn, shell: { isInput: true }, return: { name: "success" } },84 "SimpleName GetMainName()",85 ]86 },87 Transactions: {88 rawHeader: "creator_transaction.h",89 dependencies: ["Creator.h", "SpaceItem.h"],90 functions: [91 "size_t GetCreatorsCount()",92 "const MbCreator * GetCreator(size_t ind)",93 "MbCreator * SetCreator(size_t ind)",94 "MbCreator * DetachCreator(size_t ind)",95 "bool AddCreator(const MbCreator * creator, bool addSame = false)",96 { signature: "bool GetCreators(RPArray<MbCreator> & creators)", creators: isReturn, return: isErrorBool },97 "bool DeleteCreator(size_t ind)",98 "size_t GetActiveCreatorsCount()",99 ]100 },101 Model: {102 rawHeader: "model.h",103 dependencies: ["Item.h", "Path.h", "Matrix3D.h", "ModelAddon.h", "Transactions.h", "Axis3D.h"],104 initializers: [""],105 extends: ["RefItem", "AttributeContainer", "Transactions"],106 functions: [107 "MbItem * AddItem(MbItem & item, SimpleName n = c3d::UNDEFINED_SNAME)",108 "size_t ItemsCount()",109 { signature: "void GetItems(RPArray<MbItem> & items)", items: isReturn },110 "bool DetachItem(MbItem * item, bool resetName = true)",111 "void DeleteItem(MbItem * item, bool resetName = true)",112 {113 signature: "const MbItem * GetItemByName(SimpleName n, MbPath & path, MbMatrix3D & from)",114 path: isReturn, from: isReturn, return: { name: "item" }115 },116 {117 signature: "bool NearestMesh(MbeSpaceType sType, MbeTopologyType tType, MbePlaneType pType, const MbAxis3D & axis, double maxDistance, bool gridPriority, MbItem *& find, SimpleName & findName, MbRefItem *& element, SimpleName & elementName, MbPath & path, MbMatrix3D & from)",118 return: { name: 'success' }, find: isReturn, findName: isReturn, element: isReturn, elementName: isReturn, path: isReturn, from: isReturn,119 },120 ],121 },122 Item: {123 rawHeader: "model_item.h",124 dependencies: ["ProgressIndicator.h", "Mesh.h", "StepData.h", "FormNote.h", "RegDuplicate.h", "AttributeContainer.h", "SpaceItem.h", "Transactions.h", "Creator.h", "ControlData3D.h"],125 extends: ["SpaceItem", "AttributeContainer", "Transactions"],126 functions: [127 "MbItem * CreateMesh(const MbStepData & stepData, const MbFormNote & note, MbRegDuplicate * iReg = NULL)",128 {129 signature: "void CalculateMesh(const MbStepData & stepData, const MbFormNote & note, MbMesh & mesh)",130 mesh: isReturn131 },132 "SimpleName GetItemName()",133 { signature: "MbItem * Cast()", isManual: true },134 { signature: "bool RebuildItem(MbeCopyMode sameShell, RPArray<MbSpaceItem> * items, ProgressIndicator * progInd = NULL)", items: isReturn, return: isErrorBool, progInd: isRaw },135 "const MbItem * GetItemByPath(const MbPath & path, size_t ind, MbMatrix3D & from, size_t currInd = 0)"136 ],137 },138 TopItem: {139 rawHeader: "topology_item.h",140 extends: "RefItem",141 dependencies: ["RefItem.h"]142 },143 Path: {144 rawHeader: "name_item.h"145 },146 Rect: {147 rawHeader: "mb_rect.h",148 functions: [149 "double GetTop()",150 "double GetBottom()",151 "double GetLeft()",152 "double GetRight()",153 ]154 },155 Cube: {156 rawHeader: "mb_cube.h",157 dependencies: ["CartPoint3D.h", "Matrix3D.h", "Placement3D.h", "Rect.h"],158 initializers: [159 "",160 "const MbCartPoint3D & p0, const MbCartPoint3D & p1, bool normalize = false"161 ],162 functions: [163 { signature: "bool CalculateMatrix(size_t pIndex, const MbCartPoint3D & point, const MbCartPoint3D & fixedPoint, bool useFixed, bool isotropy, MbMatrix3D & matrix)", matrix: isReturn },164 { signature: "void ProjectionRect(const MbPlacement3D & place, MbRect & rect)", rect: isReturn }165 ],166 fields: [167 "MbCartPoint3D pmin",168 "MbCartPoint3D pmax",169 ]170 },171 BooleanFlags: {172 rawHeader: "op_boolean_flags.h",173 initializers: [""],174 functions: [175 "void InitBoolean(bool _closed, bool _allowNonIntersecting = false)",176 "void InitCutting(bool _closed, bool _allowNonIntersecting = false)",177 "void SetMergingFaces(bool s)",178 "void SetMergingEdges(bool s)",179 ]180 },181 SurfaceOffsetCurveParams: {182 rawHeader: "op_curve_parameter.h",183 dependencies: ["Face.h", "Axis3D.h", "SNameMaker.h"],184 initializers: ["const MbFace & f, const MbAxis3D & a, double d, const MbSNameMaker & nm)"],185 },186 Surface: {187 rawHeader: "surface.h",188 extends: "SpaceItem",189 dependencies: ["SpaceItem.h", "Placement3D.h", "CartPoint.h", "Rect2D.h"],190 functions: [191 { signature: "MbSurface * Cast()", isManual: true },192 { signature: "const MbSurface & GetSurface()", return: isOnHeap },193 "double GetUEpsilon()",194 "double GetVEpsilon()",195 "double GetUMid()",196 "double GetVMid()",197 "double GetUMin()",198 "double GetUMax()",199 "double GetVMin()",200 "double GetVMax()",201 "double GetRadius()",202 { signature: "void PointOn(MbCartPoint & uv, MbCartPoint3D & p)", p: isReturn, isUninheritable: true },203 { signature: "void Normal(double &u, double &v, MbVector3D & result)", result: isReturn },204 { signature: "bool GetPlacement(MbPlacement3D * place, bool exact = false)", place: isReturn, return: isErrorBool, isUninheritable: true },205 { signature: "bool NearDirectPointProjection(const MbCartPoint3D & pnt, const MbVector3D & vect, double & u, double & v, bool ext, MbRect2D * uvRange = nullptr, bool onlyPositiveDirection = false)", return: isErrorBool, u: isReturn, v: isReturn }206 ]207 },208 Solid: {209 rawHeader: "solid.h",210 extends: "Item",211 dependencies: ["StepData.h", "FormNote.h", "Item.h", "CurveEdge.h", "Face.h", "FaceShell.h", "Creator.h"],212 initializers: [213 "MbFaceShell * shell, MbCreator * creator"214 ],215 functions: [216 { signature: "void GetEdges(RPArray<MbCurveEdge> & edges)", edges: isReturn },217 { signature: "void GetFaces(RPArray<MbFace> & faces)", faces: isReturn },218 "const MbFace * FindFaceByName(const MbName & name)",219 "const MbFace * FindFaceByHash(const SimpleName h)",220 "const MbFace * GetFace(size_t index)",221 "MbCurveEdge * GetEdge(size_t index)",222 "MbCurveEdge * FindEdgeByName(const MbName & name)",223 "MbFaceShell * GetShell()",224 "size_t GetFaceIndex(const MbFace & face)",225 "size_t GetEdgeIndex(const MbCurveEdge & edge)",226 { signature: "void GetBasisPoints(MbControlData3D & cd)", cd: isReturn },227 "void SetBasisPoints(const MbControlData3D & cd)",228 { signature: "void GetItems(RPArray<MbTopologyItem> items)", items: isReturn },229 "bool IsClosed()",230 "const MbCube GetCube()",231 ]232 },233 Assembly: {234 rawHeader: "assembly.h",235 extends: "Item",236 dependencies: ["Item.h"],237 functions: [238 { signature: "void GetItems(RPArray<MbItem> & items)", items: isReturn },239 ]240 },241 RegTransform: {242 rawHeader: "item_registrator.h"243 },244 PlaneItem: {245 rawHeader: "plane_item.h",246 extends: "RefItem",247 dependencies: ["RefItem.h", "RegTransform.h", "Vector.h", "Surface.h", "Matrix.h"],248 functions: [249 "MbePlaneType IsA()",250 "MbePlaneType Type()",251 "MbePlaneType Family()",252 { signature: "MbPlaneItem * Cast()", isManual: true },253 { signature: "void Move(const MbVector & to, MbRegTransform * iReg = NULL, const MbSurface * newSurface = NULL)", newSurface: isReturn },254 "void Transform(const MbMatrix & matr, MbRegTransform * iReg = NULL, const MbSurface * newSurface = NULL)",255 { signature: "MbPlaneItem & Duplicate(MbRegDuplicate * dup = NULL)", return: isOnHeap },256 ]257 },258 Curve: {259 rawHeader: "curve.h",260 extends: "PlaneItem",261 dependencies: ["PlaneItem.h"],262 functions: [263 { signature: "MbCurve3D * Cast()", isManual: true },264 "void Inverse(MbRegTransform * iReg = NULL)",265 "MbCurve * Trimmed(double t1, double t2, int sense)",266 "bool IsStraight(bool ignoreParams = false)",267 "bool IsClosed()",268 "bool IsBounded()",269 "double GetTMax()",270 "double GetTMin()",271 "double GetPeriod()",272 { signature: "bool GetWeightCentre(MbCartPoint & point)", point: isReturn, return: isErrorBool },273 { signature: "void GetLimitPoint(ptrdiff_t number, MbCartPoint & point)", point: isReturn },274 { signature: "void PointOn(double &t, MbCartPoint &p)", p: isReturn },275 { signature: "void _PointOn(double &t, MbCartPoint &p)", p: isReturn },276 { signature: "void Explore(double & t, bool ext, MbCartPoint & pnt, MbVector & fir, MbVector * sec, MbVector * thir)", pnt: isReturn, fir: isReturn, sec: isReturn, thir: isReturn },277 { signature: "void FirstDer(double &t, MbVector &v)", v: isReturn },278 { signature: "void _FirstDer(double &t, MbVector &v)", v: isReturn },279 { signature: "void SecondDer(double &t, MbVector &v)", v: isReturn },280 { signature: "void _SecondDer(double &t, MbVector &v)", v: isReturn },281 { signature: "void Tangent(double &t, MbVector &v)", v: isReturn },282 { signature: "void _Tangent(double &t, MbVector &v)", v: isReturn },283 { signature: "void Normal(double &t, MbVector &v)", v: isReturn },284 { signature: "void _Normal(double &t, MbVector &v)", v: isReturn },285 "MbeItemLocation PointRelative(const MbCartPoint &pnt, double eps=Math::LengthEps)",286 "MbeLocation PointLocation(const MbCartPoint &pnt, double eps=Math::LengthEps)"287 ],288 },289 PolyCurve: {290 rawHeader: "cur_polycurve.h",291 extends: "Curve",292 dependencies: ["Curve.h"],293 },294 Polyline: {295 rawHeader: "cur_polyline.h",296 extends: "PolyCurve",297 dependencies: ["PolyCurve.h"],298 },299 Contour: {300 rawHeader: "cur_contour.h",301 extends: "Curve",302 dependencies: ["Curve.h"],303 initializers: [304 "const RPArray<MbCurve> & curves, bool sameCurves",305 ],306 functions: [307 "double GetArea(double sag = 1*Math::deviateSag)",308 "size_t GetSegmentsCount()",309 "const MbCurve * GetSegment(size_t i)",310 "bool AddCurveWithRuledCheck(MbCurve & newCur, double absEps, bool toEndOnly = false, bool checkSame = true, VERSION version = Math::DefaultMathVersion())",311 { signature: "void GetCornerParams(SArray<double> & params)", params: isReturn }312 ]313 },314 ContourWithBreaks: {315 rawHeader: "cur_contour_with_breaks.h",316 dependencies: ["Contour.h"],317 extends: "Contour",318 },319 PlanarCheckParams: {320 rawHeader: "mb_data.h",321 cppClassName: "_PlanarCheckParams",322 rawClassName: "PlanarCheckParams",323 jsClassName: "PlanarCheckParams",324 initializers: ["double accuracy"]325 },326 Rect1D: {327 rawHeader: "mb_rect1d.h",328 },329 Curve3D: {330 rawHeader: "curve3d.h",331 extends: "SpaceItem",332 dependencies: ["SpaceItem.h", "Placement3D.h", "Curve.h", "_PlanarCheckParams.h", "Rect1D.h", "ControlData3D.h"],333 functions: [334 { signature: "MbItem * Cast()", isManual: true },335 {336 signature: "bool GetPlaneCurve(MbCurve *& curve2d, MbPlacement3D & placement, bool saveParams, PlanarCheckParams params = PlanarCheckParams())",337 placement: isReturn,338 return: isErrorBool,339 },340 "bool IsPlanar(double accuracy = METRIC_EPSILON)",341 "bool IsClosed()",342 "bool IsTouch()",343 "double GetTMax()",344 "double GetTMin()",345 "double GetPeriod()",346 "bool IsPeriodic()",347 "bool IsStraight(bool ignoreParams = false)",348 "MbCurve3D * Trimmed(double t1, double t2, int sense)",349 // "MbVector3D GetLimitTangent(ptrdiff_t number)",350 { signature: "void Normal(double & t, MbVector3D & n)", n: isReturn },351 { signature: "void Tangent(double & t, MbVector3D & tan)", tan: isReturn },352 { signature: "void BNormal(double & t, MbVector3D & b)", b: isReturn },353 { signature: "void GetCentre(MbCartPoint3D & c)", c: isReturn },354 { signature: "void GetLimitPoint(ptrdiff_t number, MbCartPoint3D & point)", point: isReturn },355 { signature: "void PointOn(double & t, MbCartPoint3D & p)", p: isReturn },356 { signature: "void _PointOn(double & t, MbCartPoint3D & p)", p: isReturn },357 { signature: "bool NearPointProjection(const MbCartPoint3D & pnt, double & t, bool ext, MbRect1D * tRange = NULL)", tRange: isNullable, t: isReturn, return: { name: "success" } },358 { signature: "bool GetSurfaceCurve(MbCurve *& curve2d, MbSurface *& surface, VERSION version = Math::DefaultMathVersion())", return: isErrorBool },359 { signature: "void GetWeightCentre(MbCartPoint3D & point)", point: isReturn },360 { signature: "const MbCurve3D & GetBasisCurve()", return: isOnHeap },361 { signature: "void GetBasisPoints(MbControlData3D & cd)", cd: isReturn },362 "void SetBasisPoints(const MbControlData3D & cd)",363 "void Inverse()",364 "MbCurve * GetProjection(const MbPlacement3D &place, VERSION version = Math::DefaultMathVersion())",365 ]366 },367 Rect2D: {368 rawHeader: "mb_rect2d.h"369 },370 TrimmedCurve3D: {371 rawHeader: "cur_trimmed_curve3d.h",372 extends: "Curve3D",373 dependencies: ["Curve3D.h"],374 },375 OffsetCurve3D: {376 rawHeader: "cur_offset_curve3d.h",377 extends: "Curve3D",378 dependencies: ["Curve3D.h"],379 },380 SurfaceCurve: {381 rawHeader: "cur_surface_curve.h",382 extends: "Curve3D",383 dependencies: ["Curve3D.h"],384 },385 Spiral: {386 rawHeader: "cur_spiral.h",387 extends: "Curve3D",388 dependencies: ["Curve3D.h"],389 },390 ConeSpiral: {391 rawHeader: "cur_cone_spiral.h",392 extends: "Spiral",393 dependencies: ["Spiral.h"],394 },395 CurveSpiral: {396 rawHeader: "cur_curve_spiral.h",397 extends: "Spiral",398 dependencies: ["Spiral.h"],399 },400 PlaneCurve: {401 rawHeader: "cur_plane_curve.h",402 extends: "Curve3D",403 dependencies: ["Curve3D.h", "Placement3D.h"],404 initializers: [405 "const MbPlacement3D & placement, const MbCurve & init, bool same"406 ],407 functions: [408 "const MbPlacement3D & GetPlacement()",409 { signature: "MbItem * Cast()", isManual: true },410 ]411 },412 Contour3D: {413 rawHeader: "cur_contour3d.h",414 extends: "Curve3D",415 dependencies: ["Curve3D.h", "CartPoint3D.h", "Vector3D.h"],416 initializers: [""],417 functions: [418 { signature: "bool AddCurveWithRuledCheck(MbCurve3D & curve, double absEps = Math::metricPrecision, bool toEndOnly = false, bool checkSame = true, VERSION version = Math::DefaultMathVersion())", return: isErrorBool },419 "size_t GetSegmentsCount()",420 { signature: "void GetSegments(RPArray<MbCurve3D> & segments)", segments: isReturn },421 { signature: "void FindCorner(size_t index, MbCartPoint3D &t)", t: isReturn },422 { signature: "bool GetCornerAngle(size_t index, MbCartPoint3D & origin, MbVector3D & axis, MbVector3D & tau, double & angle, double angleEps = (double)Math::AngleEps)", origin: isReturn, axis: isReturn, tau: isReturn, angle: isReturn, return: isErrorBool },423 "bool Init(const SArray<MbCartPoint3D> & points)",424 { signature: "MbItem * Cast()", isManual: true },425 "void DeleteSegment(size_t index)",426 ]427 },428 Plane: {429 rawHeader: "surf_plane.h",430 extends: "Surface",431 dependencies: ["CartPoint3D.h", "Surface.h"],432 initializers: [433 "const MbCartPoint3D & c0, const MbCartPoint3D & c1, const MbCartPoint3D & c2",434 "const MbPlacement3D & placement, double distance"435 ]436 },437 CartPoint: {438 rawHeader: "mb_cart_point.h",439 initializers: [440 "double xx, double yy"441 ],442 fields: [443 "double x",444 "double y",445 ],446 },447 CartPoint3D: {448 rawHeader: "mb_cart_point3d.h",449 dependencies: ["Vector3D.h"],450 initializers: [451 "double xx, double yy, double zz"452 ],453 fields: [454 "double x",455 "double y",456 "double z"457 ],458 functions: [459 "MbCartPoint3D & Move(const MbVector3D & to)",460 ]461 },462 ElementarySurface: {463 rawHeader: "surf_elementary_surface.h",464 extends: "Surface",465 dependencies: ["Surface.h"]466 },467 TorusSurface: {468 rawHeader: "surf_torus_surface.h",469 dependencies: ["ElementarySurface.h"],470 extends: "ElementarySurface",471 functions: [472 "double GetMajorRadius()",473 "double GetMinorRadius()",474 ]475 },476 FaceShell: {477 rawHeader: "topology_faceset.h",478 extends: "TopItem",479 dependencies: ["TopItem.h", "CurveEdge.h"],480 initializers: [""],481 functions: [482 { signature: "void GetBoundaryEdges(RPArray<MbCurveEdge> & edges)", edges: isReturn },483 ]484 },485 ElementarySolid: {486 rawHeader: "cr_elementary_solid.h",487 extends: "Creator",488 dependencies: ["SNameMaker.h", "CartPoint3D.h", "FaceShell.h", "Creator.h"],489 initializers: [490 ],491 // functions: [492 // "bool CreateShell(MbFaceShell *& result, MbeCopyMode sameShell)"493 // ]494 },495 SphereSurface: {496 rawHeader: "surf_sphere_surface.h",497 extends: "ElementarySurface",498 dependencies: ["ElementarySurface.h", "CartPoint3D.h"],499 initializers: [500 "const MbCartPoint3D & centre, double r"501 ]502 },503 Instance: {504 rawHeader: "instance.h",505 extends: "Item",506 dependencies: ["Item.h"],507 functions: [508 "const MbItem * GetItem()"509 ]510 },511 SpaceInstance: {512 rawHeader: "space_instance.h",513 extends: "Item",514 dependencies: ["Item.h", "Surface.h", "Curve3D.h"],515 initializers: [516 "MbSurface & surf",517 "MbCurve3D & curve"518 ],519 functions: [520 "const MbSpaceItem * GetSpaceItem()",521 // "MbSpaceItem & Duplicate(MbRegDuplicate * iReg = NULL)",522 { signature: "void GetBasisPoints(MbControlData3D & cd)", cd: isReturn },523 "void SetBasisPoints(const MbControlData3D & cd)"524 ]525 },526 PlaneInstance: {527 rawHeader: "plane_instance.h",528 extends: "Item",529 dependencies: ["Item.h", "PlaneItem.h", "Placement3D.h"],530 initializers: [531 "const MbPlaneItem & item, const MbPlacement3D & placement"532 ],533 functions: [534 "const MbPlacement3D & GetPlacement()",535 "size_t PlaneItemsCount()",536 "const MbPlaneItem * GetPlaneItem(size_t ind = 0)",537 ]538 },539 Region: {540 rawHeader: "region.h",541 extends: "PlaneItem",542 dependencies: ["PlaneItem.h", "Contour.h"],543 functions: [544 { signature: "void DetachContours(RPArray<MbContour> & dstContours)", dstContours: isReturn },545 "size_t GetContoursCount()",546 "MbContour * SetContour(size_t k)",547 "const MbContour * GetContour(size_t k)",548 "const MbContour * GetOutContour()",549 "bool SetCorrect()",550 ]551 },552 Direction: {553 rawHeader: "mb_vector.h",554 initializers: [555 "double a"556 ]557 },558 Line: {559 rawHeader: "cur_line.h",560 extends: "Curve",561 dependencies: ["Curve.h", "CartPoint.h"],562 initializers: [563 "const MbCartPoint & p1, const MbCartPoint & p2"564 ]565 },566 LineSegment: {567 rawHeader: "cur_line_segment.h",568 extends: "Curve",569 dependencies: ["Curve.h", "CartPoint.h"],570 initializers: [571 "const MbCartPoint & p1, const MbCartPoint & p2"572 ],573 functions: [574 "const MbCartPoint & GetPoint1()",575 "const MbCartPoint & GetPoint2()",576 ]577 },578 Line3D: {579 rawHeader: "cur_line3d.h",580 extends: "Curve3D",581 dependencies: ["Curve3D.h", "CartPoint3D.h"],582 initializers: [583 "const MbCartPoint3D & p1, const MbCartPoint3D & p2"584 ]585 },586 Vector: {587 rawHeader: "mb_vector.h",588 initializers: [589 "double xx, double yy"590 ],591 fields: [592 "double x",593 "double y",594 ]595 },596 Vector3D: {597 rawHeader: "mb_vector3d.h",598 dependencies: ["CartPoint3D.h"],599 initializers: [600 "double a, double b, double c",601 "const MbCartPoint3D & p1, const MbCartPoint3D & p2"602 ],603 fields: [604 "double x",605 "double y",606 "double z"607 ],608 functions: [609 "bool Colinear(const MbVector3D & other, double eps = Math::angleRegion)",610 ]611 },612 Axis3D: {613 rawHeader: "mb_axis3d.h",614 dependencies: ["Placement3D.h", "CartPoint3D.h"],615 initializers: [616 "const MbAxis3D & axis",617 "const MbVector3D & v",618 "const MbCartPoint3D & pnt0, const MbVector3D & dir",619 ],620 functions: [621 "void Rotate(const MbAxis3D & axis, double angle)",622 "void Move(const MbVector3D & to)",623 ]624 },625 Placement: {626 rawHeader: "mb_placement.h",627 dependencies: ["CartPoint.h", "Vector.h"],628 initializers: ["const MbCartPoint & o, const MbVector & x, const MbVector & y"],629 },630 Placement3D: {631 rawHeader: "mb_placement3d.h",632 dependencies: ["Axis3D.h", "Vector3D.h", "Matrix.h"],633 initializers: [634 "",635 "const MbCartPoint3D & org, const MbVector3D & axisZ, const MbVector3D & axisX, bool l = false",636 "const MbCartPoint3D & org, const MbVector3D & axisZ, bool l = false",637 "const MbPlacement3D & place",638 ],639 functions: [640 "MbPlacement3D & InitYZ(const MbCartPoint3D &p, const MbVector3D &axisY, const MbVector3D &axisZ)",641 "MbPlacement3D & Move(const MbVector3D & to)",642 "MbPlacement3D & Rotate(const MbAxis3D & axis, double angle)",643 "MbPlacement3D & Scale(double sx, double sy, double sz)",644 "void SetAxisX(const MbVector3D & a)",645 "void SetAxisY(const MbVector3D & a)",646 "void SetAxisZ(const MbVector3D & a)",647 "const MbCartPoint3D & GetOrigin()",648 "void SetOrigin(const MbCartPoint3D & o)",649 "const MbVector3D & GetAxisZ()",650 "const MbVector3D & GetAxisY()",651 "const MbVector3D & GetAxisX()",652 "void Normalize()",653 "void Reset()",654 "void Invert()",655 "double GetXEpsilon()",656 "double GetYEpsilon()",657 { signature: "void PointProjection(const MbCartPoint3D &p, double &x, double &y)", x: isReturn, y: isReturn },658 "MbeItemLocation PointRelative(const MbCartPoint3D &pnt, double eps = Math::angleRegion)",659 { signature: "bool GetMatrixToPlace(const MbPlacement3D & p, MbMatrix & matrix, double eps = Math::angleRegion)", matrix: isReturn, return: ignore },660 { signature: "void GetVectorFrom(double x1, double y1, double z1, MbVector3D & v, MbeLocalSystemType3D type = ls_CartesianSystem)", v: isReturn },661 { signature: "void GetPointFrom(double x1, double y1, double z1, MbCartPoint3D & p, MbeLocalSystemType3D type = ls_CartesianSystem)", p: isReturn },662 { signature: "void GetPointInto(MbCartPoint3D & p, MbeLocalSystemType3D type = ls_CartesianSystem)" }663 ]664 },665 FormNote: {666 rawHeader: "mb_data.h",667 initializers: [668 "bool wire, bool grid, bool seam, bool exact, bool quad"669 ],670 functions: [671 "bool Wire()",672 "bool Grid()",673 "bool Seam()",674 "bool Quad()",675 "bool Fair()",676 ],677 },678 FloatAxis3D: {679 rawHeader: "mesh_float_point3d.h",680 dependencies: ["Axis3D.h"],681 initializers: [682 "const MbAxis3D & initAxis",683 "const MbCartPoint3D &initOrigin, const MbVector3D &initAxisZ",684 ],685 },686 FloatPoint3D: {687 rawHeader: "mesh_float_point3d.h",688 fields: ["float x", "float y", "float z"],689 },690 Mesh: {691 rawHeader: "mesh.h",692 extends: "Item",693 dependencies: ["Item.h", "Grid.h", "FloatAxis3D.h", "FloatPoint3D.h", "Axis3D.h", "Matrix3D.h", "Path.h"],694 initializers: ["bool doExact"],695 functions: [696 { signature: "void GetBuffers(RPArray<MeshBuffer> & result)", isManual: true, result: isReturn },697 { signature: "Float32Array GetApexes()", isManual: true },698 { signature: "void GetEdges(bool outlinesOnly = false, RPArray<EdgeBuffer> &result)", isManual: true, result: isReturn },699 "MbeSpaceType GetMeshType()",700 "void ConvertAllToTriangles()",701 "bool IsClosed()",702 "MbGrid * AddGrid()",703 {704 signature: "void AddGrid(MbGrid & gr)",705 jsName: "AddExistingGrid",706 },707 { signature: "void GetGrids(RPArray<MbGrid> & result)", result: isReturn },708 "void CreateGridSearchTrees(bool forcedNew = false)",709 {710 signature: "bool LineIntersection(const MbFloatAxis3D & line, MbFloatPoint3D & crossPnt, float & tRes)",711 crossPnt: isReturn, tRes: isReturn,712 },713 {714 signature: "bool NearestMesh(MbeSpaceType sType, MbeTopologyType tType, MbePlaneType pType, const MbAxis3D & axis, double maxDistance, bool gridPriority, double & t, double & dMin, MbItem *& find, SimpleName & findName, MbRefItem *& element, SimpleName & elementName, MbPath & path, MbMatrix3D & from)",715 return: { name: 'success' }, t: isReturn, dMin: isReturn, find: isReturn, findName: isReturn, element: isReturn, elementName: isReturn, path: isReturn, from: isReturn,716 },717 ]718 },719 RegDuplicate: {720 rawHeader: "item_registrator.h",721 dependencies: ["RefItem.h"],722 functions: [723 "bool IsReg(const MbRefItem * srcItem, MbRefItem *& cpyItem)",724 "void SetReg(const MbRefItem * srcItem, MbRefItem * cpyItem)",725 ],726 },727 AutoRegDuplicate: {728 rawHeader: "item_registrator.h",729 },730 NameMaker: {731 rawHeader: "name_item.h",732 extends: "RefItem",733 dependencies: ["RefItem.h", "TopologyItem.h"],734 functions: [735 "bool IsChild(const MbTopologyItem & t)",736 "SimpleName GetMainName()",737 ]738 },739 SNameMaker: {740 rawHeader: "name_item.h",741 extends: "NameMaker",742 dependencies: ["NameMaker.h"],743 initializers: [744 "SimpleName _mainName, MbSNameMaker::ESides _sideAdd, SimpleName _buttAdd",745 ],746 functions: [747 "void Add(const SimpleName & ent)"748 ]749 },750 StepData: {751 rawHeader: "mb_data.h",752 initializers: [753 "MbeStepType t, double sag",754 "",755 ],756 functions: [757 "void SetSag(double s)",758 "void SetAngle(double a)",759 "void SetLength(double l)",760 "void SetMaxCount(size_t c)",761 "double GetSag()",762 "double GetAngle()",763 "double GetLength()",764 "void SetStepType(MbeStepType t, bool add = true)",765 "void Init(MbeStepType t, double s, double a, double l, size_t c = 0)"766 ]767 },768 Name: {769 rawHeader: "name_item.h",770 functions: [771 "SimpleName Hash()",772 "SimpleName GetFirstName()",773 "SimpleName GetMainName()",774 ]775 },776 Path: {777 rawHeader: "name_item.h",778 functions: [779 "size_t Count()",780 ]781 },782 Matrix: {783 rawHeader: "mb_matrix.h",784 dependencies: ["Placement.h"],785 initializers: ["", "const MbPlacement & place"],786 functions: [787 "void Scale(double s)",788 "void ScaleX(double s)",789 "void ScaleY(double s)",790 ]791 },792 Homogeneous3D: {793 rawHeader: "mb_homogeneous3d.h",794 initializers: [795 "double initX, double initY, double initZ, double initW"796 ]797 },798 Matrix3D: {799 rawHeader: "mb_matrix3d.h",800 dependencies: ["CartPoint3D.h", "Vector3D.h", "Axis3D.h", "Homogeneous3D.h"],801 initializers: [""],802 functions: [803 "void Scale(double sx, double sy, double sz)",804 "MbMatrix3D & Rotate(const MbAxis3D & axis, double angle)",805 "void Symmetry(const MbCartPoint3D & origin, MbVector3D & normal)",806 "MbVector3D GetRow(size_t i)",807 "MbVector3D GetColumn(size_t i)",808 "void SetRow(size_t i, MbHomogeneous3D h)",809 "void SetColumn(size_t i, MbHomogeneous3D h)",810 "const MbVector3D & GetAxisX()",811 "const MbVector3D & GetAxisY()",812 "const MbVector3D & GetAxisZ()",813 "const MbVector3D & GetOrigin()",814 "double El(size_t i, size_t j)",815 { signature: "void GetOffset(MbCartPoint3D & p)", p: isReturn }816 ]817 },818 TopologyItem: {819 rawHeader: "topology_item.h",820 dependencies: ["TopItem.h", "AttributeContainer.h", "Name.h", "Cube.h", "StepData.h", "FormNote.h", "Mesh.h"],821 extends: ["TopItem", "AttributeContainer"],822 functions: [823 "MbeTopologyType IsA()",824 "const MbName & GetName()",825 "SimpleName GetMainName()",826 "SimpleName GetFirstName()",827 "SimpleName GetNameHash()",828 "void AddYourGabaritTo(MbCube & cube)",829 { signature: "MbTopologyItem * Cast()", isManual: true },830 { signature: "void CalculateMesh(const MbStepData & stepData, const MbFormNote & note, MbMesh & mesh)", mesh: isReturn }831 ]832 },833 Edge: {834 rawHeader: "topology.h",835 extends: "TopologyItem",836 dependencies: ["TopologyItem.h", "CartPoint3D.h"],837 functions: [838 { signature: "void Point(double t, MbCartPoint3D &p)", p: isReturn },839 { signature: "void GetBegPoint(MbCartPoint3D & p)", p: isReturn },840 { signature: "void GetEndPoint(MbCartPoint3D & p)", p: isReturn },841 "double PointProjection(const MbCartPoint3D & p)",842 "void Reverse()",843 { signature: "void Tangent(double t, MbVector3D & tan)", tan: isReturn },844 { signature: "void GetBegTangent(MbVector3D & tan)", tan: isReturn },845 { signature: "void GetEndTangent(MbVector3D & tan)", tan: isReturn },846 ]847 },848 SurfaceIntersectionCurve: {849 rawHeader: "cur_surface_intersection.h",850 dependencies: ["Surface.h", "Curve3D.h", "Curve.h", "SurfaceCurve.h"],851 extends: "Curve3D",852 functions: [853 "const MbSurface * GetSurfaceOne()",854 "const MbSurface * GetSurfaceTwo()",855 // "const MbSurface & GetCurveOneSurface()",856 // "const MbSurface & GetCurveTwoSurface()",857 // "const MbSurfaceCurve * GetSCurveOne()",858 // "const MbSurfaceCurve * GetSCurveTwo()",859 "const MbCurve * GetPCurveOne()",860 "const MbCurve * GetPCurveTwo()",861 "const MbSurfaceCurve * GetSCurveOne()",862 "const MbSurfaceCurve * GetSCurveTwo()",863 "const MbCurve3D * GetSpaceCurve()",864 // "const MbCurve3D & GetCurveOne()",865 // "const MbCurve3D & GetCurveTwo()",866 { signature: "const MbSurface & GetCurveOneSurface()", return: isOnHeap },867 { signature: "const MbSurface & GetCurveTwoSurface()", return: isOnHeap },868 { signature: "MbItem * Cast()", isManual: true },869 ]870 },871 CurveEdge: {872 rawHeader: "topology.h",873 extends: "Edge",874 dependencies: ["Edge.h", "Vector3D.h", "SurfaceIntersectionCurve.h", "Face.h"],875 functions: [876 {877 signature: "bool EdgeNormal(double t, MbVector3D & p)",878 p: isReturn,879 return: isErrorBool880 },881 { signature: "const MbSurfaceIntersectionCurve & GetIntersectionCurve()", return: isOnHeap },882 "MbFace * GetFacePlus()",883 "MbFace * GetFaceMinus()",884 "bool IsSplit(bool strict = false)",885 "const MbCurve3D * GetSpaceCurve()",886 "MbCurve3D * MakeCurve()",887 "bool IsSmooth()",888 "bool IsSeam()",889 "bool IsPole()",890 { signature: "bool FaceNormal(double t, MbVector3D & n, bool plus)", n: isReturn, return: isErrorBool },891 { signature: "bool VertexNormal(bool begin, MbVector3D & normal)", normal: isReturn, return: isErrorBool },892 ]893 },894 ContourOnSurface: {895 rawHeader: "cur_contour_on_surface.h",896 extends: "Curve3D",897 dependencies: ["Curve3D.h", "Surface.h", "Contour.h"],898 initializers: [899 "const MbSurface & surface, const MbContour & contour, bool same",900 "const MbSurface & surf, int sense",901 ],902 functions: [903 { signature: "const MbContour & GetContour()", return: isOnHeap },904 { signature: "const MbSurface & GetSurface()", return: isOnHeap },905 "const MbCurve * GetSegment(size_t index)",906 "size_t GetSegmentsCount()"907 ]908 },909 ContourOnPlane: {910 rawHeader: "cur_contour_on_plane.h",911 extends: "ContourOnSurface",912 dependencies: ["ContourOnSurface.h", "Plane.h"],913 initializers: [914 "const MbPlane & plane, const MbContour & contour, bool same",915 "const MbPlane & plane, int sense",916 "const MbPlane & plane",917 ],918 functions: [919 "const MbPlacement3D & GetPlacement()",920 { signature: "MbItem * Cast()", isManual: true },921 ]922 },923 OrientedEdge: {924 rawHeader: "topology.h",925 dependencies: ["CurveEdge.h"],926 functions: [927 { signature: "MbCurveEdge & GetCurveEdge()", return: isOnHeap },928 ]929 },930 Loop: {931 rawHeader: "topology.h",932 extends: "TopItem",933 dependencies: ["TopItem.h", "Surface.h", "ContourOnSurface.h", "OrientedEdge.h"],934 functions: [935 { signature: "MbContourOnSurface & MakeContourOnSurface(const MbSurface & surf, bool faceSense, bool doExact=false)", return: isOnHeap },936 "ptrdiff_t GetEdgesCount()",937 "MbOrientedEdge * GetOrientedEdge(size_t index)",938 ]939 },940 Face: {941 rawHeader: "topology.h",942 extends: "TopologyItem",943 dependencies: ["TopologyItem.h", "Vector3D.h", "Placement3D.h", "Surface.h", "CurveEdge.h", "Loop.h", "Contour.h"],944 functions: [945 { signature: "bool GetAnyPointOn(MbCartPoint3D & point, MbVector3D & normal)", point: isReturn, normal: isReturn, },946 { signature: "void Normal(double u, double v, MbVector3D & result)", result: isReturn },947 { signature: "void Point(double faceU, double faceV, MbCartPoint3D & point)", point: isReturn },948 { signature: "bool GetPlacement(MbPlacement3D * result)", result: isReturn, return: isErrorBool },949 { signature: "bool GetPlanePlacement(MbPlacement3D & result)", result: isReturn, return: isErrorBool },950 { signature: "bool GetControlPlacement(MbPlacement3D & result)", result: isReturn, return: isErrorBool },951 { signature: "bool GetSurfacePlacement(MbPlacement3D & result)", result: isReturn, return: isErrorBool },952 { signature: "bool OrientPlacement(MbPlacement3D & result)", return: isErrorBool },953 { signature: "MbeItemLocation NearPointProjection(const MbCartPoint3D & point, double & u, double & v, MbVector3D & normal, c3d::IndicesPair & edgeLoc, ptrdiff_t & corner)", u: isReturn, v: isReturn, normal: isReturn, edgeLoc: isReturn, corner: isReturn, return: { name: "location" } },954 { signature: "void GetFaceParam(const double surfaceU, const double surfaceV, double & faceU, double & faceV)", faceU: isReturn, faceV: isReturn },955 { signature: "void GetSurfaceParam(const double faceU, const double faceV, double & surfaceU, double & surfaceV)", surfaceU: isReturn, surfaceV: isReturn },956 { signature: "void GetOuterEdges(RPArray<MbCurveEdge> & edges, size_t mapThreshold = 50)", edges: isReturn },957 // { signature: "void GetEdges(RPArray<MbCurveEdge> & edges, size_t mapThreshold=50)", edges: isReturn },958 "bool IsSame(const MbTopologyItem & other, double accuracy)",959 { signature: "void GetNeighborFaces(RPArray<MbFace> & faces)", faces: isReturn },960 { signature: "void GetBoundaryEdges(RPArray<MbCurveEdge> & edges)", edges: isReturn },961 { signature: "MbSurface * GetSurfaceCurvesData(RPArray<MbContour> & contours)", contours: isReturn, return: { name: "surface" } },962 "bool HasNeighborFace()",963 "size_t GetLoopsCount()",964 { signature: "const MbSurface & GetSurface()", return: isOnHeap },965 "MbLoop * GetLoop(size_t index)",966 "bool IsSameSense()",967 "MbFace * DataDuplicate(MbRegDuplicate * dup = NULL)",968 "bool IsPlanar()",969 ]970 },971 Vertex: {972 rawHeader: "topology.h",973 extends: "TopologyItem",974 dependencies: ["TopologyItem.h"]975 },976 ModifyValues: {977 cppClassName: "_ModifyValues",978 rawClassName: "ModifyValues",979 jsClassName: "ModifyValues",980 rawHeader: "op_shell_parameter.h",981 dependencies: ["Vector3D.h"],982 initializers: [""],983 fields: [984 "MbeModifyingType way",985 "MbVector3D direction"986 ]987 },988 TransformValues: {989 cppClassName: "_TransformValues",990 rawClassName: "TransformValues",991 jsClassName: "TransformValues",992 rawHeader: "op_shell_parameter.h",993 dependencies: ["Matrix3D.h", "CartPoint3D.h", "Axis3D.h", "Matrix3D.h"],994 initializers: [995 "",996 "const MbMatrix3D & m",997 "const MbMatrix3D & m, const MbCartPoint3D & f, bool fix = false, bool iso = false",998 "double sX, double sY, double sZ, const MbCartPoint3D & fP"999 ],1000 functions: [1001 "void Move(const MbVector3D & to)",1002 "void Rotate(const MbAxis3D & axis, double ang)",1003 "const MbMatrix3D & GetMatrix()",1004 "void SetFixed(bool b)",1005 "MbCartPoint3D & SetFixedPoint()"1006 ]1007 },1008 SmoothValues: {1009 cppClassName: "_SmoothValues",1010 rawClassName: "SmoothValues",1011 jsClassName: "SmoothValues",1012 rawHeader: "op_shell_parameter.h",1013 dependencies: ["Vector3D.h"],1014 initializers: [1015 "",1016 "double d1, double d2, MbeSmoothForm f, double c, bool pro, SmoothValues::CornerForm cor, bool autoS, bool keep, bool str, bool equ"1017 ],1018 fields: [1019 "double distance1",1020 "double distance2",1021 "double conic",1022 "double begLength",1023 "double endLength",1024 "MbeSmoothForm form",1025 "SmoothValues::CornerForm smoothCorner",1026 "bool prolong",1027 "ThreeStates keepCant",1028 "bool strict",1029 "bool equable",1030 ]1031 },1032 ShellCuttingParams: {1033 rawHeader: "op_shell_parameter.h",1034 dependencies: ["Placement3D.h", "Contour.h", "Vector3D.h", "MergingFlags.h", "SNameMaker.h"],1035 initializers: [1036 "const MbPlacement3D & place, const MbContour & contour, bool sameContour, const MbVector3D & dir, const MbMergingFlags & mergingFlags, bool cutAsClosed, const MbSNameMaker & snMaker",1037 "const MbPlacement3D & place, const MbContour & contour, bool sameContour, const MbVector3D & dir, int part, const MbMergingFlags & mergingFlags, bool cutAsClosed, const MbSNameMaker & snMaker",1038 "const MbSurface & surface, bool sameSurface, const MbMergingFlags & mergingFlags, bool cutAsClosed, const MbSNameMaker & snMaker",1039 "const MbSurface & surface, bool sameSurface, int part, const MbMergingFlags & mergingFlags, bool cutAsClosed, const MbSNameMaker & snMaker",1040 ],1041 functions: [1042 "void SetSurfaceProlongType(MbeSurfaceProlongType pt)",1043 "void AddSurfaceProlongType(MbeSurfaceProlongType pt)"1044 ]1045 },1046 EdgeFunction: {1047 rawHeader: "topology_faceset.h",1048 dependencies: ["CurveEdge.h", "Function.h"],1049 initializers: [1050 "const MbCurveEdge *e, const MbFunction *f",1051 ],1052 functions: [1053 "const MbCurveEdge * Edge()",1054 "const MbFunction * Function()",1055 ]1056 },1057 FunctionFactory: {1058 rawHeader: "function_factory.h",1059 dependencies: ["Function.h"],1060 initializers: [""],1061 functions: [1062 "MbFunction * CreateAnalyticalFunction(const c3d::string_t &data, const c3d::string_t &argument, double tmin, double tmax)"1063 ],1064 },1065 CharacterCurve: {1066 rawHeader: "cur_character_curve.h",1067 dependencies: ["Curve.h", "Function.h"],1068 extends: "Curve"1069 },1070 CharacterCurve3D: {1071 rawHeader: "cur_character_curve3d.h",1072 dependencies: ["Curve3D.h", "Function.h"],1073 extends: "Curve3D",1074 initializers: ["MbFunction &x, MbFunction &y, MbFunction &z, MbeLocalSystemType3D cs, const MbPlacement3D &place, double tmin, double tmax"],1075 },1076 Arc3D: {1077 rawHeader: "cur_arc3d.h",1078 extends: "Curve3D",1079 dependencies: ["CartPoint3D.h", "Curve3D.h", "Placement3D.h", "Arc.h"],1080 initializers: [1081 "const MbCartPoint3D & p0, const MbCartPoint3D & p1, const MbCartPoint3D & p2, int n, bool closed",1082 "const MbCartPoint3D & pc, const MbCartPoint3D & p1, const MbCartPoint3D & p2, int initSense = 0",1083 "const MbPlacement3D & place, double aa, double bb, double angle",1084 "const MbCartPoint3D & pc, const MbCartPoint3D & p1, const MbCartPoint3D & p2, const MbVector3D & aZ, int initSense",1085 "const MbArc &ellipse, const MbPlacement3D &place",1086 ],1087 functions: [1088 "void SetLimitPoint(ptrdiff_t number, const MbCartPoint3D & pnt)",1089 "void SetRadius(double r)",1090 "void SetRadiusA(double r)",1091 "void SetRadiusB(double r)",1092 "double GetRadius()",1093 "double GetRadiusA()",1094 "double GetRadiusB()",1095 "double GetAngle()",1096 "void SetAngle(double ang)",1097 "bool MakeTrimmed(double t1, double t2)",1098 "double GetTrim1()",1099 "double GetTrim2()",1100 ]1101 },1102 Arc: {1103 rawHeader: "cur_arc.h",1104 extends: "Curve",1105 dependencies: ["Curve.h"],1106 },1107 PolyCurve3D: {1108 rawHeader: "cur_polycurve3d.h",1109 extends: "Curve3D",1110 dependencies: ["Curve3D.h", "CartPoint3D.h"],1111 functions: [1112 { signature: "void GetPoints(SArray<MbCartPoint3D> & pnts)", pnts: isReturn },1113 "void ChangePoint(ptrdiff_t index, const MbCartPoint3D & pnt)",1114 "void RemovePoint(ptrdiff_t index)",1115 "void Rebuild()",1116 "size_t GetCount()",1117 { signature: "MbItem * Cast()", isManual: true },1118 ]1119 },1120 Polyline3D: {1121 rawHeader: "cur_polyline3d.h",1122 extends: "PolyCurve3D",1123 dependencies: ["PolyCurve3D.h", "CartPoint3D.h", "Polyline.h"],1124 initializers: [1125 "const SArray<MbCartPoint3D> & initList, bool closed",1126 "const MbPolyline & polyline, const MbPlacement3D &placement",1127 ],1128 functions: [1129 { signature: "MbItem * Cast()", isManual: true },1130 ]1131 },1132 Bezier3D: {1133 rawHeader: "cur_bezier3d.h",1134 extends: "PolyCurve3D",1135 dependencies: ["PolyCurve3D.h"],1136 },1137 CubicSpline3D: {1138 rawHeader: "cur_cubic_spline3d.h",1139 extends: "PolyCurve3D",1140 dependencies: ["PolyCurve3D.h"],1141 },1142 Hermit3D: {1143 rawHeader: "cur_hermit3d.h",1144 extends: "PolyCurve3D",1145 dependencies: ["PolyCurve3D.h"],1146 },1147 Nurbs3D: {1148 rawHeader: "cur_nurbs3d.h",1149 extends: "PolyCurve3D",1150 dependencies: ["PolyCurve3D.h", "Placement3D.h", "Nurbs.h"],1151 functions: [1152 { signature: "MbNurbs3D * MbNurbs3D::Create(const MbNurbs & nurbs, const MbPlacement3D & place)", isStatic: true },1153 ]1154 },1155 Nurbs: {1156 rawHeader: "cur_nurbs.h",1157 extends: "PolyCurve",1158 dependencies: ["PolyCurve.h"],1159 },1160 LineSegment3D: {1161 rawHeader: "cur_line_segment3d.h",1162 extends: "Curve3D",1163 dependencies: ["Curve3D.h", "CartPoint3D.h"],1164 initializers: ["MbCartPoint3D p1, MbCartPoint3D p2"],1165 functions: [1166 { signature: "MbItem * Cast()", isManual: true },1167 ]1168 },1169 PointFrame: {1170 rawHeader: "point_frame.h",1171 extends: "Item",1172 dependencies: ["Item.h", "CartPoint3D.h"],1173 initializers: [""],1174 functions: [1175 "void AddVertex(const MbCartPoint3D & point)",1176 ]1177 },1178 EdgeSequence: {1179 rawHeader: "position_data.h",1180 dependencies: ["CurveEdge.h"],1181 freeFunctionName: "DeleteMatItem",1182 fields: [1183 // "RPArray<const MbCurveEdge> edges",1184 "bool closed"1185 ]1186 },1187 MergingFlags: {1188 rawHeader: "op_boolean_flags.h",1189 initializers: [1190 "",1191 "bool mergeFaces, bool mergeEdges"1192 ],1193 functions: [1194 "void SetMergingFaces(bool s)",1195 "void SetMergingEdges(bool s)",1196 ]1197 },1198 SweptValues: {1199 // isPOD: true,1200 rawHeader: "op_swept_parameter.h",1201 cppClassName: "_SweptValues",1202 rawClassName: "SweptValues",1203 jsClassName: "SweptValues",1204 initializers: [""],1205 fields: [1206 "double thickness1",1207 "double thickness2",1208 "bool shellClosed",1209 ]1210 },1211 LoftedValues: {1212 extends: "SweptValues",1213 dependencies: ["_SweptValues.h"],1214 cppClassName: "_LoftedValues",1215 rawClassName: "LoftedValues",1216 jsClassName: "LoftedValues",1217 rawHeader: "op_swept_parameter.h",1218 initializers: [""],1219 fields: [1220 "bool closed",1221 "double derFactor1",1222 "double derFactor2",1223 ]1224 },1225 EvolutionValues: {1226 extends: "SweptValues",1227 dependencies: ["_SweptValues.h"],1228 cppClassName: "_EvolutionValues",1229 rawClassName: "EvolutionValues",1230 jsClassName: "EvolutionValues",1231 rawHeader: "op_swept_parameter.h",1232 initializers: [""],1233 },1234 SweptSide: {1235 isPOD: true,1236 rawHeader: "op_swept_parameter.h",1237 fields: [1238 "MbSweptWay way",1239 "double rake",1240 "double distance",1241 "double scalarValue",1242 ]1243 },1244 SweptValuesAndSides: {1245 isPOD: true,1246 rawHeader: "op_swept_parameter.h",1247 extends: "SweptValues",1248 dependencies: ["_SweptValues.h", "SweptSide.h"],1249 cppClassName: "_SweptValuesAndSides",1250 rawClassName: "SweptValuesAndSides",1251 jsClassName: "SweptValuesAndSides",1252 fields: [1253 "MbSweptSide side1",1254 "MbSweptSide side2"1255 ]1256 },1257 RevolutionValues: {1258 rawHeader: "op_swept_parameter.h",1259 extends: "SweptValuesAndSides",1260 dependencies: ["_SweptValuesAndSides.h"],1261 cppClassName: "_RevolutionValues",1262 rawClassName: "RevolutionValues",1263 jsClassName: "RevolutionValues",1264 initializers: [""],1265 fields: [1266 "int shape",1267 ],1268 },1269 ExtrusionValues: {1270 isPOD: true,1271 rawHeader: "op_swept_parameter.h",1272 extends: "SweptValuesAndSides",1273 dependencies: ["_SweptValuesAndSides.h"],1274 cppClassName: "_ExtrusionValues",1275 rawClassName: "ExtrusionValues",1276 jsClassName: "ExtrusionValues",1277 initializers: ["double scalarValue1, double scalarValue2"]1278 },1279 SweptData: {1280 dependencies: ["Placement3D.h", "Contour.h", "Curve3D.h", "Contour3D.h"],1281 rawHeader: "op_swept_parameter.h",1282 initializers: [1283 "",1284 "const MbPlacement3D & place, MbContour & contour",1285 "MbSurface & surface, RPArray<MbContour> & contours",1286 "MbCurve3D & curve3d",1287 "RPArray<MbContour3D> & contours3d",1288 ]1289 },1290 RegionBooleanParams: {1291 rawHeader: "region.h",1292 initializers: ["RegionOperationType type, bool selfTouch = true, bool mergeCrvs = true "]1293 },1294 ElementarySolid: {1295 rawHeader: "cr_elementary_solid.h",1296 extends: "Creator",1297 dependencies: ["Creator.h"],1298 },1299 SmoothSolid: {1300 rawHeader: "cr_smooth_solid.h",1301 extends: "Creator",1302 dependencies: ["Creator.h", "_SmoothValues.h",],1303 functions: [1304 { signature: "void GetParameters(SmoothValues & params)", params: isReturn },1305 "void SetParameters(const SmoothValues & params)",1306 ]1307 },1308 SimpleCreator: {1309 rawHeader: "cr_simple_creator.h",1310 extends: "Creator",1311 dependencies: ["Creator.h"]1312 },1313 CurveSweptSolid: {1314 rawHeader: "cr_swept_solid.h",1315 extends: "Creator",1316 dependencies: ["Creator.h"],1317 },1318 CurveExtrusionSolid: {1319 rawHeader: "cr_extrusion_solid.h",1320 extends: "CurveSweptSolid",1321 dependencies: ["CurveSweptSolid.h"],1322 },1323 CurveRevolutionSolid: {1324 rawHeader: "cr_revolution_solid.h",1325 extends: "CurveSweptSolid",1326 dependencies: ["CurveSweptSolid.h"],1327 },1328 CurveEvolutionSolid: {1329 rawHeader: "cr_evolution_solid.h",1330 extends: "CurveSweptSolid",1331 dependencies: ["CurveSweptSolid.h"],1332 },1333 CurveLoftedSolid: {1334 rawHeader: "cr_lofted_solid.h",1335 extends: "CurveSweptSolid",1336 dependencies: ["CurveSweptSolid.h"],1337 },1338 BooleanSolid: {1339 rawHeader: "cr_boolean_solid.h",1340 extends: "Creator",1341 dependencies: ["Creator.h"],1342 },1343 CuttingSolid: {1344 rawHeader: "cr_cutting_solid.h",1345 extends: "Creator",1346 dependencies: ["Creator.h"],1347 },1348 SymmetrySolid: {1349 rawHeader: "cr_symmetry_solid.h",1350 extends: "Creator",1351 dependencies: ["Creator.h"],1352 },1353 HoleSolid: {1354 rawHeader: "cr_hole_solid.h",1355 extends: "CurveSweptSolid",1356 dependencies: ["CurveSweptSolid.h"],1357 },1358 ChamferSolid: {1359 rawHeader: "cr_chamfer_solid.h",1360 extends: "SmoothSolid",1361 dependencies: ["SmoothSolid.h"],1362 },1363 FilletSolid: {1364 rawHeader: "cr_fillet_solid.h",1365 extends: "SmoothSolid",1366 dependencies: ["SmoothSolid.h"]1367 },1368 ShellSolid: {1369 rawHeader: "cr_thin_shell_solid.h",1370 extends: "Creator",1371 dependencies: ["Creator.h"]1372 },1373 DraftSolid: {1374 rawHeader: "cr_draft_solid.h",1375 extends: "Creator",1376 dependencies: ["Creator.h"]1377 },1378 RibSolid: {1379 rawHeader: "cr_rib_solid.h",1380 extends: "Creator",1381 dependencies: ["Creator.h"]1382 },1383 SplitShell: {1384 rawHeader: "cr_split_shell.h",1385 extends: "Creator",1386 dependencies: ["Creator.h"]1387 },1388 NurbsBlockSolid: {1389 rawHeader: "cr_nurbs_block_solid.h",1390 extends: "Creator",1391 dependencies: ["Creator.h"]1392 },1393 FaceModifiedSolid: {1394 rawHeader: "cr_modified_solid.h",1395 extends: "Creator",1396 dependencies: ["Creator.h"]1397 },1398 ModifiedNurbsItem: {1399 rawHeader: "cr_modified_nurbs_.h",1400 extends: "Creator",1401 dependencies: ["Creator.h"]1402 },1403 ShellSolid: {1404 rawHeader: "cr_thin_shell_solid.h",1405 extends: "Creator",1406 dependencies: ["Creator.h"]1407 },1408 // NurbsModification: {1409 // rawHeader: "cr_thin_shell_solid.h",1410 // extends: "Creator",1411 // dependencies: ["Creator.h"]1412 // },1413 TransformedSolid: {1414 rawHeader: "cr_transformed_solid.h",1415 extends: "Creator",1416 dependencies: ["Creator.h"]1417 },1418 ThinShellCreator: {1419 rawHeader: "cr_thin_sheet.h",1420 extends: "Creator",1421 dependencies: ["Creator.h"]1422 },1423 UnionSolid: {1424 rawHeader: "cr_union_solid.h",1425 extends: "Creator",1426 dependencies: ["Creator.h"]1427 },1428 DetachSolid: {1429 rawHeader: "cr_detach_solid.h",1430 extends: "Creator",1431 dependencies: ["Creator.h"]1432 },1433 DuplicationSolid: {1434 rawHeader: "cr_duplication_solid.h",1435 extends: "Creator",1436 dependencies: ["Creator.h"]1437 },1438 ReverseCreator: {1439 rawHeader: "cr_simple_creator.h",1440 extends: "Creator",1441 dependencies: ["Creator.h"]1442 },1443 TransformationMaker: {1444 rawHeader: "cr_displace_creator.h",1445 extends: "Creator",1446 dependencies: ["Creator.h"]1447 },1448 ExtensionShell: {1449 rawHeader: "cr_extension_shell.h",1450 extends: "Creator",1451 dependencies: ["Creator.h"]1452 },1453 MpGraph: {1454 rawHeader: "contour_graph.h",1455 cppClassName: "Graph",1456 rawClassName: "MpGraph",1457 jsClassName: "Graph",1458 functions: [1459 "size_t GetLoopsCount()",1460 ]1461 },1462 CrossPoint: {1463 isPOD: true,1464 rawHeader: "mb_cross_point.h",1465 dependencies: ["CartPoint.h", "Curve.h", "PointOnCurve.h"],1466 initializers: ["const MbCartPoint & pnt, const MbPointOnCurve<MbCurve> & pOn1, const MbPointOnCurve<MbCurve> & pOn2"],1467 fields: [1468 "MbCartPoint p",1469 "MbPointOnCurve<MbCurve> on1",1470 "MbPointOnCurve<MbCurve> on2",1471 "MbeIntersectionType form"1472 ],1473 },1474 PointOnCurve: {1475 isPOD: true,1476 rawClassName: "MbPointOnCurve<MbCurve>",1477 rawHeader: "mb_cross_point.h",1478 dependencies: ["Curve.h"],1479 initializers: ["double t, const MbCurve * curve"],1480 fields: [1481 "double t",1482 "const MbCurve * curve",1483 ],1484 },1485 WireFrame: {1486 rawHeader: "wire_frame.h",1487 dependencies: ["Curve3D.h"],1488 functions: [1489 { signature: "void GetCurves(RPArray<MbCurve3D> curves)", curves: isReturn }1490 ]1491 },1492 Primitive: {1493 extends: ["RefItem", "AttributeContainer"],1494 dependencies: ["RefItem.h", "AttributeContainer.h"],1495 rawHeader: "mesh_primitive.h",1496 functions: [1497 "void SetItem(const MbRefItem * g)",1498 "void SetPrimitiveName(SimpleName n)",1499 "void SetPrimitiveType(MbeRefType t)",1500 ]1501 },1502 Grid: {1503 extends: "Primitive",1504 dependencies: ["Primitive.h", "StepData.h", "Cube.h", "FloatPoint3D.h"],1505 rawHeader: "mesh_primitive.h",1506 functions: [1507 "void SetStepData(const MbStepData & stData)",1508 "bool IsSearchTreeReady()",1509 "bool CreateSearchTree()",1510 "void DeleteSearchTree()",1511 "const MbCube & GetCube()",1512 "const void * CreateGridTopology(bool keepExisting)",1513 "bool IsGridTopologyReady()",1514 ]1515 },1516 Polygon3D: {1517 extends: "Primitive",1518 dependencies: ["Primitive.h", "StepData.h", "Cube.h"],1519 rawHeader: "mesh_primitive.h",1520 functions: [1521 ]1522 },1523 ConvConvertorProperty3D: {1524 rawHeader: "conv_exchange_settings.h",1525 cppClassName: "_ConvConvertorProperty3D",1526 rawClassName: "ConvConvertorProperty3D",1527 jsClassName: "ConvConvertorProperty3D",1528 fields: [1529 "bool enableAutostitch",1530 "bool joinSimilarFaces",1531 "bool addRemovedFacesAsShells",1532 "double lengthUnitsFactor",1533 "double appUnitsFactor",1534 "bool auditEnabled",1535 ]1536 },1537 C3dModelDocument: {1538 rawHeader: "conv_model_document.h",1539 cppClassName: "_C3dModelDocument",1540 rawClassName: "C3dModelDocument",1541 jsClassName: "C3dModelDocument",1542 initializers: [1543 ""1544 ]1545 },1546 C3DPmiToItem: {1547 rawHeader: "conv_model_document.h",1548 cppClassName: "_C3DPmiToItem",1549 rawClassName: "C3DPmiToItem",1550 jsClassName: "C3DPmiToItem",1551 },1552 Multiline: {1553 rawHeader: "multiline.h",1554 extends: "PlaneItem",1555 dependencies: ["PlaneItem.h", "Contour.h", "VertexOfMultilineInfo.h", "MLTipParams.h", "ContourWithBreaks.h"],1556 initializers: [1557 "",1558 "const MbContour & _basisCurve, const StVertexOfMultilineInfo & vertInfo, const SArray<double> & _equidRadii, const StMLTipParams & _begTipParams, const StMLTipParams & _endTipParams, bool _processClosed, bool _isTransparent",1559 ],1560 functions: [1561 "const MbContour * GetBegTipCurve()",1562 "const MbContour * GetEndTipCurve()",1563 "size_t GetCurvesCount()",1564 "const MbContourWithBreaks * GetCurve(size_t i)",1565 ]1566 },1567 VertexOfMultilineInfo: {1568 rawHeader: "multiline.h",1569 cppClassName: "VertexOfMultilineInfo",1570 rawClassName: "StVertexOfMultilineInfo",1571 jsClassName: "VertexOfMultilineInfo",1572 initializers: [1573 "",1574 ]1575 },1576 MLTipParams: {1577 rawHeader: "multiline.h",1578 cppClassName: "MLTipParams",1579 rawClassName: "StMLTipParams",1580 jsClassName: "MLTipParams",1581 initializers: [1582 "",1583 "EnMLTipType _tipType, double _tipParam",1584 ]1585 },1586 ShellsIntersectionData: {1587 rawHeader: "check_geometry.h",1588 functions: [1589 "bool IsSolid()",1590 "bool IsSurface()",1591 ]1592 },1593 SpatialOffsetCurveParams: {1594 rawHeader: "op_curve_parameter.h",1595 dependencies: ["Vector3D.h", "SNameMaker.h"],1596 initializers: [1597 "const MbVector3D & v, const MbSNameMaker & nm"1598 ]1599 },1600 SurfaceOffsetCurveParams: {1601 rawHeader: "op_curve_parameter.h",1602 dependencies: ["Face.h", "Axis3D.h", "SNameMaker.h"],1603 initializers: [1604 "const MbFace & f, const MbAxis3D & a, double d, const MbSNameMaker & nm"1605 ]1606 },1607 DuplicationValues: {1608 rawHeader: "op_duplication_parameter.h",1609 cppClassName: "_DuplicationValues",1610 rawClassName: "DuplicationValues",1611 jsClassName: "DuplicationValues",1612 },1613 DuplicationMeshValues: {1614 rawHeader: "op_duplication_parameter.h",1615 extends: ["DuplicationValues"],1616 dependencies: ["_DuplicationValues.h", "Vector3D.h", "CartPoint3D.h"],1617 cppClassName: "_DuplicationMeshValues",1618 rawClassName: "DuplicationMeshValues",1619 jsClassName: "DuplicationMeshValues",1620 initializers: [1621 "bool isPolar, const MbVector3D & dir1, const double step1, const uint num1, const MbVector3D &dir2, const double step2, const uint num2, const MbCartPoint3D * center = NULL, bool isAlongAxis = false"1622 ]1623 },1624 ExtensionValues: {1625 rawHeader: "op_shell_parameter.h",1626 dependencies: ["CartPoint3D.h", "Vector3D.h", "FaceShell.h", "Face.h", "Solid.h"],1627 cppClassName: "_ExtensionValues",1628 rawClassName: "ExtensionValues",1629 jsClassName: "ExtensionValues",1630 initializers: [1631 "",1632 // "ExtensionValues::ExtensionType t, ExtensionValues::ExtensionWay w, ExtensionValues::LateralKind k, const MbCartPoint3D &p, const MbVector3D &dir, double d, bool pro, bool comb, const MbFaceShell *s, const MbItemIndex &fIndex",1633 ],1634 functions: [1635 "void InitByDistance(ExtensionValues::ExtensionType t, ExtensionValues::LateralKind k, const MbVector3D & v, double dist)",1636 "void InitByVertex(ExtensionValues::ExtensionType t, ExtensionValues::LateralKind k, const MbCartPoint3D & v)",1637 "void InitByShell(ExtensionValues::ExtensionType t, ExtensionValues::LateralKind k, const MbFace * f, const MbSolid * s)"1638 ],1639 fields: [1640 "ExtensionValues::ExtensionType type",1641 "ExtensionValues::ExtensionWay way",1642 "ExtensionValues::LateralKind kind",1643 "MbCartPoint3D point",1644 "MbVector3D direction",1645 "double distance",1646 "bool prolong",1647 "bool combine"1648 ]1649 },1650 HoleValues: {1651 rawHeader: "op_shell_parameter.h",1652 dependencies: ["CartPoint3D.h", "Vector3D.h", "FaceShell.h", "Face.h", "Solid.h", "Surface.h"],1653 cppClassName: "_HoleValues",1654 rawClassName: "HoleValues",1655 jsClassName: "HoleValues",1656 fields: [1657 "double placeAngle",1658 "double azimuthAngle",1659 ],1660 "functions": [1661 "void SetSurface(MbSurface *s)",1662 "void SetPhantom(bool s)",1663 ]1664 },1665 SlotValues: {1666 rawHeader: "op_shell_parameter.h",1667 extends: "HoleValues",1668 dependencies: ["_HoleValues.h"],1669 cppClassName: "_SlotValues",1670 rawClassName: "SlotValues",1671 jsClassName: "SlotValues",1672 initializers: [""],1673 fields: [1674 "double length",1675 "double width",1676 "double depth",1677 "double bottomWidth",1678 "double bottomDepth",1679 "double floorRadius",1680 "double tailAngle",1681 "SlotValues::SlotType type",1682 ]1683 }1684 },1685 modules: {1686 Enabler: {1687 rawHeader: "tool_enabler.h",1688 functions: [1689 "void EnableMathModules(const char * name, const char * key)"1690 ]1691 },1692 Action: {1693 rawHeader: "action.h",1694 dependencies: ["Solid.h", "Matrix3D.h", "ShellsIntersectionData.h", "Face.h", "Cube.h"],1695 functions: [1696 {1697 signature: "bool IsSolidsIntersection(const MbSolid & solid1, const MbMatrix3D & matr1, const MbSolid & solid2, const MbMatrix3D & matr2, bool checkTangent, bool getIntersectionSolids, bool checkTouchPoints, RPArray<MbShellsIntersectionData> & intData)",1698 intData: isReturn,1699 return: { name: "isIntersection" },1700 },1701 // {1702 // signature: "bool FindTouchedFaces(const MbSolid & solid1, const MbSolid & solid2, double precision, c3d::IndicesPairsVector & facesNumbers)",1703 // facesNumbers: isReturn,1704 // }1705 {1706 signature: "void FindFilletFaces(const RPArray<MbFace> & faces, double accuracy, RPArray<MbFace> & filletFaces)",1707 filletFaces: isReturn,1708 },1709 // "void GetDistanceToSurface(const MbPlacement3D & pl, const MbCurve * curve, const MbSurface * surf, double & lPlus, double & lMinus)",1710 { signature: "bool GetDistanceToCube(const MbPlacement3D & pl, const MbFaceShell * shell, double & dPlus, double & dMinus, bool findMax = true)", dPlus: isReturn, dMinus: isReturn, return: { name: 'isFound' } }1711 // { signature: "void GetDistanceToCube(const MbSurface & surface, const MbVector3D & direction, const MbCurve & curve, const MbCube & cube, double & lPlus, double & lMinus, MbResultType & resType)", lPlus: isReturn, lMinus: isReturn, resType: isReturn }1712 ],1713 },1714 ActionSurface: {1715 rawHeader: "action_surface.h",1716 dependencies: ["CartPoint3D.h", "Surface.h", "Curve3D.h", "Vector3D.h"],1717 functions: [1718 "MbResultType ElementarySurface(const MbCartPoint3D & point0, const MbCartPoint3D & point1, const MbCartPoint3D & point2, MbeSpaceType surfaceType, MbSurface *& result)",1719 "MbResultType ExtrusionSurface(const MbCurve3D & curve, const MbVector3D & direction, bool simplify, MbSurface *& result)",1720 ]1721 },1722 ActionSurfaceCurve: {1723 rawHeader: "action_surface_curve.h",1724 dependencies: ["Contour3D.h", "Curve3D.h", "SurfaceOffsetCurveParams.h", "WireFrame.h", "ElementarySurface.h", "WireFrame.h", "SurfaceOffsetCurveParams.h", "SpatialOffsetCurveParams.h"],1725 functions: [1726 "MbResultType CreateContourFillets(const MbContour3D & contour, SArray<double> & radiuses, MbCurve3D *& result, const MbeConnectingType type)",1727 "MbResultType OffsetPlaneCurve(const MbCurve3D &curve, double dist, MbCurve3D *& result)",1728 {1729 signature: "MbResultType OffsetCurve(const MbCurve3D & curve, const MbSurfaceOffsetCurveParams & params, SPtr<MbWireFrame> & result)",1730 jsName: "OffsetSurfaceCurve",1731 result: isReturn1732 },1733 {1734 signature: "MbResultType OffsetCurve(const MbCurve3D & initCurve, const MbSpatialOffsetCurveParams & params, SPtr<MbWireFrame> & result)",1735 jsName: "OffsetCurve",1736 result: isReturn,1737 },1738 {1739 signature: "MbResultType FilletCurve(const MbCurve3D & curve1, double & t1, double & w1, const MbCurve3D & curve2, double & t2, double & w2, double & radius, bool sense, bool & unchanged, const MbeConnectingType type, const MbSNameMaker & names, MbElementarySurface *& surface, MbWireFrame *& result)",1740 w1: isReturn,1741 w2: isReturn,1742 unchanged: isReturn,1743 },1744 "MbResultType BridgeCurve(const MbCurve3D & curve1, double t1, bool sense1, const MbCurve3D & curve2, double t2, bool sense2, const MbSNameMaker & names, MbWireFrame *& result)",1745 "MbResultType ConnectingSpline(const MbCurve3D & curve1, double t1, MbeMatingType mating1, const MbCurve3D & curve2, double t2, MbeMatingType mating2, double tension1, double tension2, const MbSNameMaker & names, MbWireFrame *& result)",1746 ]1747 },1748 ActionSolid: {1749 rawHeader: "action_solid.h",1750 dependencies: ["CartPoint3D.h", "Surface.h", "SNameMaker.h", "Solid.h", "_SmoothValues.h", "Face.h", "CurveEdge.h", "BooleanFlags.h", "Placement3D.h", "Contour.h", "MergingFlags.h", "_LoftedValues.h", "SweptData.h", "_ExtrusionValues.h", "EdgeFunction.h", "ShellCuttingParams.h", "_SweptValues.h", "_RevolutionValues.h", "_EvolutionValues.h", "_DuplicationValues.h", "_HoleValues.h"],1751 functions: [1752 "MbResultType ElementarySolid(const SArray<MbCartPoint3D> & points, ElementaryShellType solidType, const MbSNameMaker & names, MbSolid *& result)",1753 // "MbResultType ElementarySolid(const MbSurface & surface, const MbSNameMaker & names, MbSolid *& result)",1754 "MbResultType FilletSolid(MbSolid & solid, MbeCopyMode sameShell, SArray<MbEdgeFunction> & initCurves, RPArray<MbFace> & initBounds, const SmoothValues & params, const MbSNameMaker & names, MbSolid *& result)",1755 "MbResultType ChamferSolid(MbSolid & solid, MbeCopyMode sameShell, RPArray<MbCurveEdge> & edges, const SmoothValues & params, const MbSNameMaker & names, MbSolid *& result)",1756 "MbResultType BooleanResult(MbSolid & solid1, MbeCopyMode sameShell1, MbSolid & solid2, MbeCopyMode sameShell2, OperationType oType, const MbBooleanFlags & flags, const MbSNameMaker & operNames, MbSolid *& result)",1757 { signature: "MbResultType UnionResult(MbSolid * solid, MbeCopyMode sameShell, RPArray<MbSolid> & solids, MbeCopyMode sameShells, OperationType oType, bool checkIntersect, const MbMergingFlags & mergeFlags, const MbSNameMaker & names, bool isArray, MbSolid *& result, RPArray<MbSolid> * notGluedSolids = NULL)", notGluedSolids: isReturn },1758 "MbResultType DraftSolid(MbSolid & solid, MbeCopyMode sameShell, const MbPlacement3D & neutralPlace, double angle, const RPArray<MbFace> & faces, MbeFacePropagation fp, bool reverse, const MbSNameMaker & names, MbSolid *& result)",1759 { signature: "MbResultType SolidCutting(MbSolid & solid, MbeCopyMode sameShell, const MbShellCuttingParams & cuttingParams, RPArray<MbSolid> & results)", results: isReturn },1760 { signature: "MbResultType SplitSolid(MbSolid & solid, MbeCopyMode sameShell, const MbPlacement3D & spPlace, MbeSenseValue spType, const RPArray<MbContour> & spContours, bool spSame, RPArray<MbFace> & selFaces, const MbMergingFlags & flags, const MbSNameMaker & names, MbSolid *& result)" },1761 {1762 signature: "MbResultType SplitSolid(MbSolid & solid, MbeCopyMode sameShell, const RPArray<MbSpaceItem> & spItems, bool spSame, RPArray<MbFace> & selFaces, const MbMergingFlags & flags, const MbSNameMaker & names, MbSolid *& result)",1763 jsName: "SplitSolidBySpaceItem",1764 },1765 { signature: "size_t DetachParts(MbSolid & solid, RPArray<MbSolid> & parts, bool sort, const MbSNameMaker & names)", parts: isReturn, return: { name: "count" } },1766 { signature: "MbResultType LoftedSolid(SArray<MbPlacement3D> & pl, RPArray<MbContour> & c, const MbCurve3D * spine, const LoftedValues & params, SArray<MbCartPoint3D> * ps, const MbSNameMaker & names, RPArray<MbSNameMaker> & ns, MbSolid *& result)", spine: isNullable, ps: isNullable },1767 { signature: "MbResultType ExtrusionSolid(const MbSweptData & sweptData, const MbVector3D & direction, const MbSolid * solid1, const MbSolid * solid2, bool checkIntersection, const ExtrusionValues & params, const MbSNameMaker & operNames, const RPArray<MbSNameMaker> & contoursNames, MbSolid *& result)", solid1: isNullable, solid2: isNullable },1768 "MbResultType ExtrusionResult(MbSolid & solid, MbeCopyMode sameShell, const MbSweptData & sweptData, const MbVector3D & direction, const ExtrusionValues & params, OperationType oType, const MbSNameMaker & operNames, const RPArray<MbSNameMaker> & contoursNames, MbSolid *& result)",1769 "MbResultType SymmetrySolid(MbSolid & solid, MbeCopyMode sameShell, const MbPlacement3D & place, const MbSNameMaker & names, MbSolid *& result)",1770 "MbResultType MirrorSolid(const MbSolid & solid, const MbPlacement3D & place, const MbSNameMaker & names, MbSolid *& result)",1771 "MbResultType ThinSolid(MbSolid & solid, MbeCopyMode sameShell, RPArray<MbFace> & outFaces, RPArray<MbFace> & offFaces, SArray<double> & offDists, SweptValues & params, const MbSNameMaker & names, bool copyFaceAttrs, MbSolid *& result)",1772 "MbResultType RevolutionSolid(const MbSweptData & sweptData, const MbAxis3D & axis, const RevolutionValues & params, const MbSNameMaker & operNames, const RPArray<MbSNameMaker> & contoursNames, MbSolid *& result)",1773 "MbResultType EvolutionSolid(const MbSweptData & sweptData, const MbCurve3D & spine, const EvolutionValues & params, const MbSNameMaker & operNames, const RPArray<MbSNameMaker> & contoursNames, const MbSNameMaker & spineNames, MbSolid *& result)",1774 "MbResultType DuplicationSolid(const MbSolid & solid, const DuplicationValues & params, const MbSNameMaker & names, MbSolid *& result)",1775 "MbResultType HoleSolid(MbSolid * solid, MbeCopyMode sameShell, const MbPlacement3D & place, const HoleValues & params, const MbSNameMaker & names, MbSolid *& result)"1776 ]1777 },1778 ActionPoint: {1779 rawHeader: "action_point.h",1780 dependencies: ["Line3D.h", "CartPoint3D.h"],1781 functions: [1782 "double LineLineNearestPoints(const MbLine3D & line1, const MbLine3D & line2, MbCartPoint3D & p1, MbCartPoint3D & p2)",1783 {1784 signature: "ptrdiff_t CurveCurveIntersection(const MbCurve & curve1, const MbCurve & curve2, SArray<double> & result1, SArray<double> & result2, double xEpsilon, double yEpsilon, bool touchInclude, bool allowInaccuracy = true)",1785 result1: isReturn, result2: isReturn,1786 jsName: "CurveCurveIntersection2D",1787 return: { name: "count" },1788 },1789 {1790 signature: "ptrdiff_t CurveCurveIntersection(const MbCurve3D & curve1, const MbCurve3D & curve2, SArray<double> & result1, SArray<double> & result2, double mEps)",1791 result1: isReturn, result2: isReturn,1792 jsName: "CurveCurveIntersection3D",1793 return: { name: "count" },1794 },1795 {1796 signature: "ptrdiff_t CurveCurveCrossing(const MbCurve3D & curve1, const MbCurve3D & curve2, SArray<double> & result1, SArray<double> & result2, double mEps = Math::metricRegion)",1797 result1: isReturn, result2: isReturn,1798 return: { name: "count" },1799 },1800 ]1801 },1802 ActionDirect: {1803 rawHeader: "action_direct.h",1804 dependencies: ["Solid.h", "_ModifyValues.h", "SNameMaker.h", "_TransformValues.h", "CurveEdge.h"],1805 functions: [1806 {1807 signature: "MbResultType CollectFacesForModification(MbFaceShell * shell, MbeModifyingType way, double radius, RPArray<MbFace> & faces)",1808 faces: isReturn1809 },1810 "MbResultType FaceModifiedSolid(MbSolid & solid, MbeCopyMode sameShell, const ModifyValues & params, const RPArray<MbFace> & faces, const MbSNameMaker & names, MbSolid *& result)",1811 "MbResultType TransformedSolid(MbSolid & solid, MbeCopyMode sameShell, const TransformValues & params, const MbSNameMaker & names, MbSolid *& result)",1812 "MbResultType EdgeModifiedSolid(MbSolid & solid, MbeCopyMode sameShell, const ModifyValues & params, const RPArray<MbCurveEdge> & edges, const MbSNameMaker & names, MbSolid *& result)",1813 ]1814 },1815 ActionPhantom: {1816 rawHeader: "action_phantom.h",1817 dependencies: ["Solid.h", "CurveEdge.h", "_SmoothValues.h", "Surface.h", "EdgeSequence.h"],1818 functions: [1819 {1820 signature: "MbResultType SmoothPhantom(MbSolid & solid, RPArray<MbCurveEdge> & initCurves, const SmoothValues & params, RPArray<MbSurface> & result)",1821 result: isReturn1822 },1823 {1824 signature: "MbResultType SmoothSequence(const MbSolid & solid, RPArray<MbCurveEdge> & edges, const SmoothValues & params, bool createSurfaces, RPArray<MbEdgeSequence> & sequences, RPArray<MbSurface> & result)",1825 sequences: isReturn,1826 result: isReturn,1827 }1828 ]1829 },1830 ActionCurve: {1831 rawHeader: "action_curve.h",1832 dependencies: ["CartPoint.h", "Curve.h", "Contour.h", "Curve3D.h"],1833 functions: [1834 "MbResultType Arc(const MbCartPoint & center, const SArray<MbCartPoint> & points, bool curveClosed, double angle, double & a, double & b, MbCurve *& result)",1835 "MbResultType SplineCurve(const SArray<MbCartPoint> & points, bool closed, MbePlaneType curveType, MbCurve *& result)",1836 // { signature: "MbResultType IntersectContour(MbCurve & newCurve, RPArray<MbCurve> & curves, MbContour *& result)" },1837 "MbContour * OffsetContour(const MbContour & cntr, double rad, double xEpsilon, double yEpsilon, bool modifySegments, VERSION version = Math::DefaultMathVersion())",1838 "MbResultType SurfaceBoundContour(const MbSurface & surface, const MbCurve3D & spaceCurve, VERSION version = Math::DefaultMathVersion(), MbContour *& result)",1839 "MbResultType Line(const MbCartPoint & point1, const MbCartPoint & point2, MbCurve *& result)",1840 "MbResultType Segment(const MbCartPoint & point1, const MbCartPoint & point2, MbCurve *& result)",1841 ]1842 },1843 ActionCurve3D: {1844 rawHeader: "action_curve3d.h",1845 dependencies: ["CartPoint3D.h", "Curve3D.h", "Contour3D.h"],1846 functions: [1847 // FIXME: technically a & b are inout, but that's not supported yet1848 "MbResultType Arc(const MbCartPoint3D & centre, const SArray<MbCartPoint3D> & points, bool curveClosed, double angle, double & a, double & b, MbCurve3D *& result)",1849 "MbResultType Segment(const MbCartPoint3D & point1, const MbCartPoint3D & point2, MbCurve3D *& result)",1850 "MbResultType SplineCurve(const SArray<MbCartPoint3D> & points, bool closed, MbeSpaceType curveType, MbCurve3D *& result)",1851 "MbResultType CreateContour(MbCurve3D & curve, MbContour3D *& result)",1852 "MbResultType AddCurveToContour(MbCurve3D & curve, MbCurve3D & contour, bool toEnd)",1853 "MbResultType RegularPolygon(const MbCartPoint3D & centre, const MbCartPoint3D & point, const MbVector3D & axisZ, size_t vertexCount, bool describe, MbCurve3D *& result)",1854 { signature: "MbResultType SpiralCurve(const MbCartPoint3D & point0, const MbCartPoint3D & point1, const MbCartPoint3D & point2, double radius, double step, double angle, MbCurve * lawCurve, bool spiralAxis, MbCurve3D *& result)", lawCurve: isNullable },1855 { signature: "MbResultType CreateContours(RPArray<MbCurve3D> & curves, double metricEps, RPArray<MbContour3D> & result, bool onlySmoothConnected = false, VERSION version = Math::DefaultMathVersion())", result: isReturn },1856 // "MbResultType RegularPolygon(const MbCartPoint3D & centre, const MbCartPoint3D & point, const MbVector3D & axisZ, size_t vertexCount, bool describe, MbCurve3D *& result )",1857 "MbResultType PlaneCurve(const MbPlacement3D &place, const MbCurve &curve, MbCurve3D *& result)",1858 ]1859 },1860 ActionRegion: {1861 rawHeader: "region.h",1862 dependencies: ["Region.h", "Contour.h", "RegionBooleanParams.h"],1863 functions: [1864 { signature: "void GetCorrectRegions(const RPArray<MbContour> & contours, bool sameContours, RPArray<MbRegion> & regions)", regions: isReturn },1865 { signature: "void MakeRegions(RPArray<MbContour> & contours, bool useSelfIntCntrs, bool sameContours, RPArray<MbRegion> & regions)", regions: isReturn },1866 // { signature: "bool CreateBooleanResultRegions(RPArray<MbContour> & contours1, RPArray<MbContour> & contours2, const MbRegionBooleanParams & operParams, RPArray<MbRegion> & regions, MbResultType * resInfo = NULL)", resInfo: isReturn, regions: isReturn, return: isErrorBool }1867 { signature: "bool CreateBooleanResultRegions(MbRegion & region1, MbRegion & region2, const MbRegionBooleanParams & operParams, RPArray<MbRegion> & regions, MbResultType * resInfo = NULL)", resInfo: isReturn, regions: isReturn, return: isErrorBool }1868 ]1869 },1870 ActionMesh: {1871 rawHeader: "action_mesh.h",1872 dependencies: ["FloatPoint3D.h", "Mesh.h"],1873 functions: [1874 "MbResultType CreateConvexPolyhedron(const SArray<MbFloatPoint3D> & points, MbMesh *& result)"1875 ]1876 },1877 ActionShell: {1878 rawHeader: "action_shell.h",1879 dependencies: ["Solid.h", "Face.h", "CurveEdge.h", "SNameMaker.h", "_ExtensionValues.h", "_SweptValues.h"],1880 functions: [1881 "MbResultType ExtensionShell(MbSolid & solid, MbeCopyMode sameShell, MbFace & face, const RPArray<MbCurveEdge> & edges, const ExtensionValues & params, const MbSNameMaker & operNames, MbSolid *& result)",1882 "MbResultType OffsetShell(MbSolid & solid, MbeCopyMode sameShell, RPArray<MbFace> & initFaces, bool checkFacesConnection, SweptValues & p, const MbSNameMaker & operNames, bool copyFaceAttrs, MbSolid *& result)"1883 ],1884 },1885 Mutex: {1886 rawHeader: "tool_mutex.h",1887 functions: [1888 "void EnterParallelRegion()",1889 "void ExitParallelRegion()"1890 ]1891 },1892 ContourGraph: {1893 rawHeader: "contour_graph.h",1894 dependencies: ["Curve.h", "Contour.h", "ProgressIndicator.h", "Graph.h"],1895 functions: [1896 {1897 signature: "MpGraph * OuterContoursBuilder(const RPArray<MbCurve> & curveList, PArray<MbContour> & contours, double accuracy = METRIC_ACCURACY, bool strict = false, VERSION version = Math::DefaultMathVersion(), ProgressIndicator * progInd = NULL)",1898 contours: isReturn,1899 progInd: isRaw,1900 return: { name: "graph" }1901 },1902 ]1903 },1904 CurveEnvelope: {1905 rawHeader: "alg_curve_envelope.h",1906 dependencies: ["Curve.h", "CrossPoint.h"],1907 functions: [1908 {1909 signature: "void IntersectWithAll(const MbCurve * selectCurve, LIterator<MbCurve> & fromCurve, SArray<MbCrossPoint> & cross, bool self)",1910 // after: "::SortCrossPoints(selectCurve->GetTMin(), selectCurve, cross, SArray<MbCrossPoint>(), SArray<MbCrossPoint>()); ",1911 cross: isReturn1912 },1913 { signature: "void SortCrossPoints(double tProj, const MbCurve * selectCurve, SArray<MbCrossPoint> & cross, SArray<MbCrossPoint> & crossLeft, SArray<MbCrossPoint> & crossRight)", crossLeft: isReturn, crossRight: isReturn },1914 ]1915 },1916 CurveTangent: {1917 rawHeader: "alg_curve_tangent.h",1918 dependencies: ["CartPoint.h", "Curve.h", "Line.h"],1919 functions: [1920 { signature: "void LinePointTangentCurve(const MbCartPoint & pnt, const MbCurve & pCurve, PArray<MbLine> & pLine, bool lineAsCurve = false)", pLine: isReturn },1921 { signature: "void LineTangentTwoCurves(const MbCurve * pCurve1, const MbCurve * pCurve2, PArray<MbLine> * pLine, SArray<MbCartPoint> * secondPoint)", pLine: isReturn, secondPoint: isReturn },1922 ]1923 },1924 CurveUtil: {1925 rawHeader: "curve.h",1926 dependencies: ["Curve.h"],1927 functions: [1928 "double AreaSign(const MbCurve & curve, double sag, bool close)",1929 ]1930 },1931 MeshGrid: {1932 rawHeader: "mesh_grid.h",1933 dependencies: ["Grid.h", "FloatAxis3D.h", "FloatPoint3D.h"],1934 functions: [1935 { signature: "bool LineGridIntersect(const MbGrid & grid, const MbFloatAxis3D & line, const MbFloatPoint3D & crossPoint, float & tRes)", crossPoint: isReturn, tRes: isReturn, return: { name: "intersected" } }1936 ]1937 },1938 Writer: {1939 rawHeader: "model.h",1940 dependencies: ["ModelAddon.h", "Model.h"],1941 functions: [1942 { signature: "size_t WriteItems(const MbModel & model, const char *& memory)", return: { name: "size" } },1943 { signature: "void ReadItems(const void * memory, MbModel *& model)", }1944 ],1945 },1946 Registrator: {1947 rawHeader: "item_registrator.h",1948 dependencies: ["MeshAddon.h", "AutoRegDuplicate.h", "RegDuplicate.h"],1949 functions: [1950 "void AutoReg(MbAutoRegDuplicate *&autoReg, MbRegDuplicate *&iReg)",1951 ],1952 },1953 TriFace: {1954 rawHeader: "tri_face.h",1955 dependencies: ["Face.h", "StepData.h", "Grid.h"],1956 functions: [1957 "void CalculateGrid(const MbFace & face, const MbStepData & stepData, MbGrid & grid, bool dualSeams = true, bool quad = false, bool fair = false)"1958 ]1959 },1960 Conversion: {1961 rawHeader: "conv_model_exchange.h",1962 dependencies: ["Model.h", "_ConvConvertorProperty3D.h", "ProgressIndicator.h"],1963 functions: [1964 {1965 signature: "MbeConvResType c3d::ImportFromFile(MbModel & model, const c3d::path_string & fileName, ConvConvertorProperty3D * prop = NULL, ProgressIndicator * indicator = NULL)",1966 indicator: isRaw,1967 model: isReturn,1968 return: { name: "result" }1969 },1970 {1971 signature: "MbeConvResType c3d::ExportIntoFile(MbModel & model, const c3d::path_string & fileName, ConvConvertorProperty3D * prop = NULL, ProgressIndicator * indicator = NULL)",1972 indicator: isRaw,1973 }1974 ]1975 }1976 },1977 enums: [1978 "SimpleName",1979 "MbeSpaceType",1980 "MbeStepType",1981 "MbeModifyingType",1982 "MbeCopyMode",1983 "MbeSmoothForm",1984 "MbSNameMaker::ESides",1985 "SmoothValues::CornerForm",1986 "ThreeStates",1987 "ElementaryShellType",1988 "OperationType",1989 "MbeFacePropagation",1990 "RegionOperationType",1991 "MbResultType",1992 "MbeCreatorType",1993 "MbeArcCreateWay",1994 "MbeLocalSystemType3D",1995 "MbeConnectingType",1996 "MbePlaneType",1997 "MbeItemLocation",1998 "MbeLocation",1999 "MbeIntersectionType",2000 "MbeProcessState",2001 "MbeTopologyType",2002 "MbeSurfaceProlongType",2003 "MbeSenseValue",2004 "MbeRefType",2005 "MbeConvResType",2006 "EnMLTipType",2007 "MbSweptWay",2008 "MbeMatingType",2009 "ExtensionValues::ExtensionType",2010 "ExtensionValues::ExtensionWay",2011 "ExtensionValues::LateralKind",2012 "SlotValues::SlotType",2013 ]...
Buttons.js
Source:Buttons.js
1import React from 'react'2import {3 CButton,4 CCard,5 CCardBody,6 CCardHeader,7 CCol,8 CRow9} from '@coreui/react'10import CIcon from '@coreui/icons-react'11import { DocsLink } from 'src/reusable'12const Buttons = () => {13 return (14 <>15 <CCard>16 <CCardHeader>17 Standard Buttons18 <DocsLink name="-Button"/>19 </CCardHeader>20 <CCardBody>21 <CRow className="align-items-center">22 <CCol col="12" xl className="mb-3 mb-xl-0">23 Normal24 </CCol>25 <CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">26 <CButton block color="primary">Primary</CButton>27 </CCol>28 <CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">29 <CButton block color="secondary">Secondary</CButton>30 </CCol>31 <CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">32 <CButton block color="success">Success</CButton>33 </CCol>34 <CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">35 <CButton block color="warning">Warning</CButton>36 </CCol>37 <CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">38 <CButton block color="danger">Danger</CButton>39 </CCol>40 <CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">41 <CButton block color="info">Info</CButton>42 </CCol>43 <CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">44 <CButton block color="light">Light</CButton>45 </CCol>46 <CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">47 <CButton block color="dark">Dark</CButton>48 </CCol>49 <CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">50 <CButton block color="link">Link</CButton>51 </CCol>52 </CRow>53 <CRow className="align-items-center mt-3">54 <CCol col="12" xl className="mb-3 mb-xl-0">55 Active State56 </CCol>57 <CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">58 <CButton active block color="primary" aria-pressed="true">Primary</CButton>59 </CCol>60 <CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">61 <CButton active block color="secondary" aria-pressed="true">Secondary</CButton>62 </CCol>63 <CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">64 <CButton active block color="success" aria-pressed="true">Success</CButton>65 </CCol>66 <CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">67 <CButton active block color="warning" aria-pressed="true">Warning</CButton>68 </CCol>69 <CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">70 <CButton active block color="danger" aria-pressed="true">Danger</CButton>71 </CCol>72 <CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">73 <CButton active block color="info" aria-pressed="true">Info</CButton>74 </CCol>75 <CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">76 <CButton active block color="light" aria-pressed="true">Light</CButton>77 </CCol>78 <CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">79 <CButton active block color="dark" aria-pressed="true">Dark</CButton>80 </CCol>81 <CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">82 <CButton active block color="link" aria-pressed="true">Link</CButton>83 </CCol>84 </CRow>85 <CRow className="align-items-center mt-3">86 <CCol col="12" xl className="mb-3 mb-xl-0">87 Disabled88 </CCol>89 <CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">90 <CButton block color="primary" disabled>Primary</CButton>91 </CCol>92 <CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">93 <CButton block color="secondary" disabled>Secondary</CButton>94 </CCol>95 <CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">96 <CButton block color="success" disabled>Success</CButton>97 </CCol>98 <CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">99 <CButton block color="warning" disabled>Warning</CButton>100 </CCol>101 <CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">102 <CButton block color="danger" disabled>Danger</CButton>103 </CCol>104 <CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">105 <CButton block color="info" disabled>Info</CButton>106 </CCol>107 <CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">108 <CButton block color="light" disabled>Light</CButton>109 </CCol>110 <CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">111 <CButton block color="dark" disabled>Dark</CButton>112 </CCol>113 <CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">114 <CButton block color="link" disabled>Link</CButton>115 </CCol>116 </CRow>117 </CCardBody>118 </CCard>119 <CCard>120 <CCardHeader>121 variant="outline" Buttons122 </CCardHeader>123 <CCardBody>124 <p>125 With <code>outline</code> prop.126 </p>127 <CRow className="align-items-center">128 <CCol col="12" xl className="mb-3 mb-xl-0">129 Normal130 </CCol>131 <CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">132 <CButton block variant="outline" color="primary">Primary</CButton>133 </CCol>134 <CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">135 <CButton block variant="outline" color="secondary">Secondary</CButton>136 </CCol>137 <CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">138 <CButton block variant="outline" color="success">Success</CButton>139 </CCol>140 <CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">141 <CButton block variant="outline" color="warning">Warning</CButton>142 </CCol>143 <CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">144 <CButton block variant="outline" color="danger">Danger</CButton>145 </CCol>146 <CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">147 <CButton block variant="outline" color="info">Info</CButton>148 </CCol>149 <CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">150 <CButton block variant="outline" color="light">Light</CButton>151 </CCol>152 <CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">153 <CButton block variant="outline" color="dark">Dark</CButton>154 </CCol>155 <CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0"></CCol>156 </CRow>157 <CRow className="align-items-center mt-3">158 <CCol col="12" xl className="mb-3 mb-xl-0">159 Active State160 </CCol>161 <CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">162 <CButton block variant="outline" active color="primary" aria-pressed="true">Primary</CButton>163 </CCol>164 <CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">165 <CButton block variant="outline" active color="secondary" aria-pressed="true">Secondary</CButton>166 </CCol>167 <CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">168 <CButton block variant="outline" active color="success" aria-pressed="true">Success</CButton>169 </CCol>170 <CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">171 <CButton block variant="outline" active color="warning" aria-pressed="true">Warning</CButton>172 </CCol>173 <CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">174 <CButton block variant="outline" active color="danger" aria-pressed="true">Danger</CButton>175 </CCol>176 <CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">177 <CButton block variant="outline" active color="info" aria-pressed="true">Info</CButton>178 </CCol>179 <CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">180 <CButton block variant="outline" active color="light" aria-pressed="true">Light</CButton>181 </CCol>182 <CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">183 <CButton block variant="outline" active color="dark" aria-pressed="true">Dark</CButton>184 </CCol>185 <CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0"></CCol>186 </CRow>187 <CRow className="align-items-center mt-3">188 <CCol col="12" xl className="mb-3 mb-xl-0">189 Disabled190 </CCol>191 <CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">192 <CButton block variant="outline" color="primary" disabled>Primary</CButton>193 </CCol>194 <CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">195 <CButton block variant="outline" color="secondary" disabled>Secondary</CButton>196 </CCol>197 <CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">198 <CButton block variant="outline" color="success" disabled>Success</CButton>199 </CCol>200 <CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">201 <CButton block variant="outline" color="warning" disabled>Warning</CButton>202 </CCol>203 <CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">204 <CButton block variant="outline" color="danger" disabled>Danger</CButton>205 </CCol>206 <CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">207 <CButton block variant="outline" color="info" disabled>Info</CButton>208 </CCol>209 <CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">210 <CButton block variant="outline" color="light" disabled>Light</CButton>211 </CCol>212 <CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">213 <CButton block variant="outline" color="dark" disabled>Dark</CButton>214 </CCol>215 <CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0"></CCol>216 </CRow>217 </CCardBody>218 </CCard>219 <CCard>220 <CCardHeader>221 variant="ghost" Buttons222 </CCardHeader>223 <CCardBody>224 <p>225 Use <code>.btn-ghost-*</code> class for variant="ghost" buttons.226 </p>227 <CRow className="align-items-center">228 <CCol col="12" xl className="mb-3 mb-xl-0">229 Normal230 </CCol>231 <CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">232 <CButton block variant="ghost" color="primary">Primary</CButton>233 </CCol>234 <CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">235 <CButton block variant="ghost" color="secondary">Secondary</CButton>236 </CCol>237 <CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">238 <CButton block variant="ghost" color="success">Success</CButton>239 </CCol>240 <CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">241 <CButton block variant="ghost" color="warning">Warning</CButton>242 </CCol>243 <CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">244 <CButton block variant="ghost" color="danger">Danger</CButton>245 </CCol>246 <CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">247 <CButton block variant="ghost" color="info">Info</CButton>248 </CCol>249 <CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">250 <CButton block variant="ghost" color="light">Light</CButton>251 </CCol>252 <CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">253 <CButton block variant="ghost" color="dark">Dark</CButton>254 </CCol>255 <CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0"></CCol>256 </CRow>257 <CRow className="align-items-center mt-3">258 <CCol col="12" xl className="mb-3 mb-xl-0">259 Active State260 </CCol>261 <CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">262 <CButton block active variant="ghost" color="primary" aria-pressed="true">Primary</CButton>263 </CCol>264 <CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">265 <CButton block active variant="ghost" color="secondary" aria-pressed="true">Secondary</CButton>266 </CCol>267 <CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">268 <CButton block active variant="ghost" color="success" aria-pressed="true">Success</CButton>269 </CCol>270 <CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">271 <CButton block active variant="ghost" color="warning" aria-pressed="true">Warning</CButton>272 </CCol>273 <CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">274 <CButton block active variant="ghost" color="danger" aria-pressed="true">Danger</CButton>275 </CCol>276 <CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">277 <CButton block active variant="ghost" color="info" aria-pressed="true">Info</CButton>278 </CCol>279 <CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">280 <CButton block active variant="ghost" color="light" aria-pressed="true">Light</CButton>281 </CCol>282 <CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">283 <CButton block active variant="ghost" color="dark" aria-pressed="true">Dark</CButton>284 </CCol>285 <CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0"></CCol>286 </CRow>287 <CRow className="align-items-center mt-3">288 <CCol col="12" xl className="mb-3 mb-xl-0">289 Disabled290 </CCol>291 <CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">292 <CButton block variant="ghost" color="primary" disabled>Primary</CButton>293 </CCol>294 <CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">295 <CButton block variant="ghost" color="secondary" disabled>Secondary</CButton>296 </CCol>297 <CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">298 <CButton block variant="ghost" color="success" disabled>Success</CButton>299 </CCol>300 <CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">301 <CButton block variant="ghost" color="warning" disabled>Warning</CButton>302 </CCol>303 <CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">304 <CButton block variant="ghost" color="danger" disabled>Danger</CButton>305 </CCol>306 <CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">307 <CButton block variant="ghost" color="info" disabled>Info</CButton>308 </CCol>309 <CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">310 <CButton block variant="ghost" color="light" disabled>Light</CButton>311 </CCol>312 <CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">313 <CButton block variant="ghost" color="dark" disabled>Dark</CButton>314 </CCol>315 <CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0"></CCol>316 </CRow>317 </CCardBody>318 </CCard>319 <CCard>320 <CCardHeader>321 Square Buttons322 </CCardHeader>323 <CCardBody>324 <p>325 Use <code>.btn-square</code> class for square buttons.326 </p>327 <CRow className="align-items-center">328 <CCol col="12" xl className="mb-3 mb-xl-0">329 Normal330 </CCol>331 <CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">332 <CButton block shape="square" color="primary">Primary</CButton>333 </CCol>334 <CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">335 <CButton block shape="square" color="secondary">Secondary</CButton>336 </CCol>337 <CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">338 <CButton block shape="square" color="success">Success</CButton>339 </CCol>340 <CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">341 <CButton block shape="square" color="warning">Warning</CButton>342 </CCol>343 <CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">344 <CButton block shape="square" color="danger">Danger</CButton>345 </CCol>346 <CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">347 <CButton block shape="square" color="info">Info</CButton>348 </CCol>349 <CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">350 <CButton block shape="square" color="light">Light</CButton>351 </CCol>352 <CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">353 <CButton block shape="square" color="dark">Dark</CButton>354 </CCol>355 <CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">356 <CButton block shape="square" color="link">Link</CButton>357 </CCol>358 </CRow>359 <CRow className="align-items-center mt-3">360 <CCol col="12" xl className="mb-3 mb-xl-0">361 Active State362 </CCol>363 <CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">364 <CButton active block shape="square" color="primary" aria-pressed="true">Primary</CButton>365 </CCol>366 <CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">367 <CButton active block shape="square" color="secondary" aria-pressed="true">Secondary</CButton>368 </CCol>369 <CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">370 <CButton active block shape="square" color="success" aria-pressed="true">Success</CButton>371 </CCol>372 <CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">373 <CButton active block shape="square" color="warning" aria-pressed="true">Warning</CButton>374 </CCol>375 <CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">376 <CButton active block shape="square" color="danger" aria-pressed="true">Danger</CButton>377 </CCol>378 <CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">379 <CButton active block shape="square" color="info" aria-pressed="true">Info</CButton>380 </CCol>381 <CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">382 <CButton active block shape="square" color="light" aria-pressed="true">Light</CButton>383 </CCol>384 <CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">385 <CButton active block shape="square" color="dark" aria-pressed="true">Dark</CButton>386 </CCol>387 <CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">388 <CButton active block shape="square" color="link" aria-pressed="true">Link</CButton>389 </CCol>390 </CRow>391 <CRow className="align-items-center mt-3">392 <CCol col="12" xl className="mb-3 mb-xl-0">393 Disabled394 </CCol>395 <CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">396 <CButton block shape="square" color="primary" disabled>Primary</CButton>397 </CCol>398 <CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">399 <CButton block shape="square" color="secondary" disabled>Secondary</CButton>400 </CCol>401 <CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">402 <CButton block shape="square" color="success" disabled>Success</CButton>403 </CCol>404 <CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">405 <CButton block shape="square" color="warning" disabled>Warning</CButton>406 </CCol>407 <CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">408 <CButton block shape="square" color="danger" disabled>Danger</CButton>409 </CCol>410 <CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">411 <CButton block shape="square" color="info" disabled>Info</CButton>412 </CCol>413 <CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">414 <CButton block shape="square" color="light" disabled>Light</CButton>415 </CCol>416 <CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">417 <CButton block shape="square" color="dark" disabled>Dark</CButton>418 </CCol>419 <CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">420 <CButton block shape="square" color="link" disabled>Link</CButton>421 </CCol>422 </CRow>423 </CCardBody>424 </CCard>425 <CCard>426 <CCardHeader>427 Pill Buttons428 </CCardHeader>429 <CCardBody>430 <p>431 Use <code>.btn-pill</code> class for pill buttons.432 </p>433 <CRow className="align-items-center">434 <CCol col="12" xl className="mb-3 mb-xl-0">435 Normal436 </CCol>437 <CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">438 <CButton block shape="pill" color="primary" className="">Primary</CButton>439 </CCol>440 <CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">441 <CButton block shape="pill" color="secondary">Secondary</CButton>442 </CCol>443 <CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">444 <CButton block shape="pill" color="success">Success</CButton>445 </CCol>446 <CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">447 <CButton block shape="pill" color="warning">Warning</CButton>448 </CCol>449 <CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">450 <CButton block shape="pill" color="danger">Danger</CButton>451 </CCol>452 <CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">453 <CButton block shape="pill" color="info">Info</CButton>454 </CCol>455 <CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">456 <CButton block shape="pill" color="light">Light</CButton>457 </CCol>458 <CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">459 <CButton block shape="pill" color="dark">Dark</CButton>460 </CCol>461 <CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">462 <CButton block shape="pill" color="link">Link</CButton>463 </CCol>464 </CRow>465 <CRow className="align-items-center mt-3">466 <CCol col="12" xl className="mb-3 mb-xl-0">467 Active State468 </CCol>469 <CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">470 <CButton active block shape="pill" color="primary" aria-pressed="true">Primary</CButton>471 </CCol>472 <CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">473 <CButton active block shape="pill" color="secondary" aria-pressed="true">Secondary</CButton>474 </CCol>475 <CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">476 <CButton active block shape="pill" color="success" aria-pressed="true">Success</CButton>477 </CCol>478 <CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">479 <CButton active block shape="pill" color="warning" aria-pressed="true">Warning</CButton>480 </CCol>481 <CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">482 <CButton active block shape="pill" color="danger" aria-pressed="true">Danger</CButton>483 </CCol>484 <CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">485 <CButton active block shape="pill" color="info" aria-pressed="true">Info</CButton>486 </CCol>487 <CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">488 <CButton active block shape="pill" color="light" aria-pressed="true">Light</CButton>489 </CCol>490 <CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">491 <CButton active block shape="pill" color="dark" aria-pressed="true">Dark</CButton>492 </CCol>493 <CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">494 <CButton active block shape="pill" color="link" aria-pressed="true">Link</CButton>495 </CCol>496 </CRow>497 <CRow className="align-items-center mt-3">498 <CCol col="12" xl className="mb-3 mb-xl-0">499 Disabled500 </CCol>501 <CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">502 <CButton block shape="pill" color="primary" disabled>Primary</CButton>503 </CCol>504 <CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">505 <CButton block shape="pill" color="secondary" disabled>Secondary</CButton>506 </CCol>507 <CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">508 <CButton block shape="pill" color="success" disabled>Success</CButton>509 </CCol>510 <CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">511 <CButton block shape="pill" color="warning" disabled>Warning</CButton>512 </CCol>513 <CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">514 <CButton block shape="pill" color="danger" disabled>Danger</CButton>515 </CCol>516 <CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">517 <CButton block shape="pill" color="info" disabled>Info</CButton>518 </CCol>519 <CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">520 <CButton block shape="pill" color="light" disabled>Light</CButton>521 </CCol>522 <CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">523 <CButton block shape="pill" color="dark" disabled>Dark</CButton>524 </CCol>525 <CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">526 <CButton block shape="pill" color="link" disabled>Link</CButton>527 </CCol>528 </CRow>529 </CCardBody>530 </CCard>531 <CCard>532 <CCardHeader>533 Sizes534 </CCardHeader>535 <CCardBody>536 <p>Fancy larger or smaller buttons? Add <code>size="lg"</code> or <code>size="sm"</code> for additional sizes.</p>537 <CRow className="align-items-center">538 <CCol col="2" xl className="mb-3 mb-xl-0">539 Small540 </CCol>541 <CCol col="2" className="mb-3 mb-xl-0 text-center">542 <CButton color="primary" size="sm">Standard Button</CButton>543 </CCol>544 <CCol col="2" className="mb-3 mb-xl-0 text-center">545 <CButton color="secondary" variant="outline" size="sm">Outline Button</CButton>546 </CCol>547 <CCol col="2" className="mb-3 mb-xl-0 text-center">548 <CButton size="sm" variant="ghost" color="ghost">Ghost Button</CButton>549 </CCol>550 <CCol col="2" className="mb-3 mb-xl-0 text-center">551 <CButton shape="square" color="warning" size="sm">Square Button</CButton>552 </CCol>553 <CCol col="2" className="mb-3 mb-xl-0 text-center">554 <CButton shape="pill" color="danger" size="sm">Pill Button</CButton>555 </CCol>556 </CRow>557 <CRow className="align-items-center mt-3">558 <CCol col="2" xl className="mb-3 mb-xl-0">559 Normal560 </CCol>561 <CCol col="2" className="mb-3 mb-xl-0 text-center">562 <CButton color="primary">Standard Button</CButton>563 </CCol>564 <CCol col="2" className="mb-3 mb-xl-0 text-center">565 <CButton variant="outline" color="secondary" >Outline Button</CButton>566 </CCol>567 <CCol col="2" className="mb-3 mb-xl-0 text-center">568 <CButton variant="ghost" color="success">Ghost Button</CButton>569 </CCol>570 <CCol col="2" className="mb-3 mb-xl-0 text-center">571 <CButton shape="square" color="warning">Square Button</CButton>572 </CCol>573 <CCol col="2" className="mb-3 mb-xl-0 text-center">574 <CButton shape="pill" color="danger">Pill Button</CButton>575 </CCol>576 </CRow>577 <CRow className="align-items-center mt-3">578 <CCol col="2" xl className="mb-3 mb-xl-0">579 Large580 </CCol>581 <CCol col="2" className="mb-3 mb-xl-0 text-center">582 <CButton color="primary" size="lg">Standard Button</CButton>583 </CCol>584 <CCol col="2"className="mb-3 mb-xl-0 text-center">585 <CButton variant="outline" color="secondary" size="lg">Outline Button</CButton>586 </CCol>587 <CCol col="2" className="mb-3 mb-xl-0 text-center">588 <CButton variant="ghost" color="success" size="lg">Ghost Button</CButton>589 </CCol>590 <CCol col="2" className="mb-3 mb-xl-0 text-center">591 <CButton shape="square" color="warning" size="lg">Square Button</CButton>592 </CCol>593 <CCol col="2" className="mb-3 mb-xl-0 text-center">594 <CButton shape="pill" color="danger" size="lg">Pill Button</CButton>595 </CCol>596 </CRow>597 </CCardBody>598 </CCard>599 <CCard>600 <CCardHeader>601 With Icons602 </CCardHeader>603 <CCardBody>604 <CRow className="align-items-center mt-3">605 <CCol col="2" className="text-center mt-3">606 <CButton color="primary">607 Standard Button608 </CButton>609 </CCol>610 <CCol col="2" className="text-center mt-3">611 <CButton color="secondary" variant='outline'>612 <CIcon name="cil-lightbulb" />Outline Button613 </CButton>614 </CCol>615 <CCol col="2" className="text-center mt-3">616 <CButton variant="ghost" color="success">617 <CIcon name="cil-lightbulb" />Ghost Button618 </CButton>619 </CCol>620 <CCol col="2" className="text-center mt-3">621 <CButton shape="square" color="warning">622 <CIcon name="cil-lightbulb" />Square Button623 </CButton>624 </CCol>625 <CCol col="2" className="text-center mt-3">626 <CButton shape="pill" color="danger">627 <CIcon name="cil-lightbulb" />Pill Button628 </CButton>629 </CCol>630 </CRow>631 </CCardBody>632 </CCard>633 <CRow>634 <CCol xs="12" md="6">635 <CCard>636 <CCardHeader>637 Block Level Buttons638 </CCardHeader>639 <CCardBody>640 <p>Add prop <code>block</code></p>641 <CButton color="secondary" size="lg" block>Block level button</CButton>642 <CButton color="primary" size="lg" block>Block level button</CButton>643 <CButton color="success" size="lg" block>Block level button</CButton>644 <CButton color="info" size="lg" block>Block level button</CButton>645 <CButton color="warning" size="lg" block>Block level button</CButton>646 <CButton color="danger" size="lg" block>Block level button</CButton>647 <CButton color="link" size="lg" block>Block level button</CButton>648 </CCardBody>649 </CCard>650 </CCol>651 <CCol xs="12" md="6">652 <CCard>653 <CCardHeader>654 Block Level Buttons655 </CCardHeader>656 <CCardBody>657 <p>Add prop <code>block</code></p>658 <CButton variant="outline" color="secondary" size="lg" block>Block level button</CButton>659 <CButton variant="outline" color="primary" size="lg" block>Block level button</CButton>660 <CButton variant="outline" color="success" size="lg" block>Block level button</CButton>661 <CButton variant="outline" color="info" size="lg" block>Block level button</CButton>662 <CButton variant="outline" color="warning" size="lg" block>Block level button</CButton>663 <CButton variant="outline" color="danger" size="lg" block>Block level button</CButton>664 <CButton variant="ghost" color="info" size="lg" block>Block level button</CButton>665 </CCardBody>666 </CCard>667 </CCol>668 </CRow>669 </>670 )671}...
Using AI Code Generation
1var mb = require('mountebank');2var imposter = {3 {4 {5 is: {6 }7 }8 }9};10mb.create(imposter, function (error, instance) {11 if (error) {12 console.error('Error creating imposter: ' + error.message);13 process.exit(1);14 }15 console.log('Imposter created on port ' + instance.port);16 instance.close(function () {17 console.log('Imposter closed');18 });19});20curl -X POST -H "Content-Type: application/json" -d '{21 {22 {23 "is": {24 }25 }26 }27{28 {29 {30 "is": {31 }32 }33 }34}
Using AI Code Generation
1var mb = require('mountebank');2mb.create({ port: 2525, pidfile: 'mb.pid', logfile: 'mb.log' }, function (error, mb) {3 if (error) {4 console.error(error);5 } else {6 console.log('Mountebank started on port', mb.port);7 mb.post('/imposters', {8 stubs: [{9 responses: [{10 is: {11 }12 }]13 }]14 }, function (error, response) {15 if (error) {16 console.error(error);17 } else {18 console.log('Imposter created at', response.headers.location);19 }20 });21 }22});23var mb = require('mountebank');24mb.create({ port: 2525, pidfile: 'mb.pid', logfile: 'mb.log' }, function (error, mb) {25 if (error) {26 console.error(error);27 } else {28 console.log('Mountebank started on port', mb.port);29 mb.post('/imposters', {30 stubs: [{31 responses: [{32 is: {33 }34 }]35 }]36 }, function (error, response) {37 if (error) {38 console.error(error);39 } else {40 console.log('Imposter created at', response.headers.location);41 }42 });43 }44});45var mb = require('mountebank');46mb.create({ port: 2525, pidfile: 'mb.pid', logfile: 'mb.log' }, function (error, mb) {47 if (error) {48 console.error(error);49 } else {50 console.log('Mountebank started on port', mb.port);51 mb.post('/imposters', {52 stubs: [{53 responses: [{54 is: {55 }56 }]57 }]58 }, function (error, response) {
Using AI Code Generation
1var mb = require('mountebank');2var server = mb.create({3});4var stub = {5 {6 is: {7 headers: {8 },9 body: JSON.stringify({ message: 'Hello World' })10 }11 }12};13var imposter = {14};15server.post('/imposters', imposter).then(function (response) {16 console.log(response.body);17});18server.del('/imposters/1').then(function (response) {19 console.log(response.body);20});21server.del('/').then(function (response) {22 console.log(response.body);23});24server.start().then(function () {25 console.log('server started');26});27server.stop().then(function () {28 console.log('server stopped');29});30{ port: 3000, protocol: 'http', numberOfRequests: 0 }31{}32var mb = require('mountebank');33var server = mb.create({34});35var stub = {36 {37 is: {38 headers: {
Using AI Code Generation
1var mb = require('mountebank');2var port = 2525;3mb.create(port, function (error, mb) {4 if (error) {5 console.log(error);6 }7 else {8 console.log('mb started on port ' + port);9 }10});11var mb = require('mountebank');12var port = 2525;13mb.create(port, function (error, mb) {14 if (error) {15 console.log(error);16 }17 else {18 console.log('mb started on port ' + port);
Using AI Code Generation
1var mb = require('mountebank');2var assert = require('assert');3var util = require('util');4var stub = {5 {6 equals: {7 }8 }9 {10 is: {11 headers: {12 },13 }14 }15};16mb.create({17}, function (error, mb) {18 if (error) {19 console.error('Error creating mb', error);20 } else {21 mb.addStub(stub, function (error, result) {22 if (error) {23 console.error('Error adding stub', error);24 } else {25 mb.get('/test', function (error, response) {26 if (error) {27 console.error('Error making request', error);28 } else {29 console.log(util.inspect(response, { depth: null }));30 }31 });32 }33 });34 }35});
Using AI Code Generation
1var mb = require('mountebank');2var Promise = require('bluebird');3var http = require('http');4var https = require('https');5var mbPromise = Promise.promisifyAll(mb);6var httpPromise = Promise.promisifyAll(http);
Using AI Code Generation
1var mb = require('mountebank');2var request = require('request');3var should = require('should');4var assert = require('assert');5var chai = require('chai');6var sinon = require('sinon');7var sinonChai = require('sinon-chai');8var chaiAsPromised = require('chai-as-promised');9var q = require('q');10var promised = require('promised-io');11var bluebird = require('bluebird');12var when = require('when');13var async = require('async');14var _ = require('underscore');15var __ = require('lodash');
Using AI Code Generation
1var assert = require('assert');2var mb = require('mountebank');3var port = 2525;4var host = 'localhost';5var imposter = {6 {7 {8 is: {9 headers: {10 },11 body: JSON.stringify({name: 'test'})12 }13 }14 }15};16mb.create(url, imposter, function (error, response) {17 assert.ifError(error);18 assert.ok(response);19 assert.equal(response.statusCode, 201);20 assert.ok(response.headers.location);21 console.log('Imposter created at ' + response.headers.location);22});23{24 "dependencies": {25 }26}
Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.
You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.
Get 100 minutes of automation test minutes FREE!!