From fb219fc950b19d3af22de021dd2f0f20066e11f1 Mon Sep 17 00:00:00 2001 From: Morteza Karimi <2769101+karimi@users.noreply.github.com> Date: Mon, 11 Sep 2023 13:49:28 -0700 Subject: [PATCH] Mkarimi/indexers (#116) * Add indexers to json * Find and replace indexers in vue code * Added item to properties * Fixe typo * Updated source --- quasar_site/src/ViewModel.js | 9 +- quasar_site/src/api_info.json | 367 ++++++++++++++++++++++++- quasar_site/src/pages/DataType.vue | 4 +- quasar_site/src/pages/MemberDetail.vue | 8 +- quasar_site/src/proj_info.json | 4 +- src/Parse/JsonBuilder.cs | 9 +- src/Parse/MarkdownBuilder.cs | 5 + src/Parse/ParsedMember.cs | 7 +- 8 files changed, 394 insertions(+), 19 deletions(-) diff --git a/quasar_site/src/ViewModel.js b/quasar_site/src/ViewModel.js index c540c432..091e3901 100644 --- a/quasar_site/src/ViewModel.js +++ b/quasar_site/src/ViewModel.js @@ -283,7 +283,7 @@ const ViewModel = { } } }, - getInheritence(item) { + getinheritence(item) { const rc = []; let count = 0; while (item && item.baseclass) { @@ -593,7 +593,7 @@ const ViewModel = { }, getMembers(node, memberType, inherited = true) { - const inheritence = this.getInheritence(node); + const inheritence = this.getinheritence(node); let members = [].concat(node[memberType]); if (node[memberType]) { @@ -693,6 +693,11 @@ const ViewModel = { const match = member.signature.match(/\S*\(.*\)/g); return match[0]; } + if (memberType == "properties") { + if (member.signature.includes("this[int")) { + return "Item"; + } + } const tokens = member.signature.split(" "); let name = tokens[1]; if (tokens[0] === "static") { diff --git a/quasar_site/src/api_info.json b/quasar_site/src/api_info.json index ee5d1e42..2a8e4c4a 100644 --- a/quasar_site/src/api_info.json +++ b/quasar_site/src/api_info.json @@ -5750,6 +5750,11 @@ "summary": "Gets or sets the version of this ArchivableDictionary .", "since": "5.0", "property": ["get", "set"] + }, + { + "signature": "object this[string key]", + "protected": false, + "summary": "Gets the value associated with the specified key." } ], "methods": [ @@ -7498,6 +7503,13 @@ "signature": "Point3dList.XAccess()", "summary": "Initializes a new instance of the Point3dList.XAccess class" } + ], + "properties": [ + { + "signature": "double this[int index]", + "protected": false, + "summary": "Gets or sets the x-coordinate of the specified point." + } ] }, { @@ -7510,6 +7522,13 @@ "signature": "Point3dList.YAccess()", "summary": "Initializes a new instance of the Point3dList.YAccess class" } + ], + "properties": [ + { + "signature": "double this[int index]", + "protected": false, + "summary": "Gets or sets the y-coordinate of the specified point." + } ] }, { @@ -7522,6 +7541,13 @@ "signature": "Point3dList.ZAccess()", "summary": "Initializes a new instance of the Point3dList.ZAccess class" } + ], + "properties": [ + { + "signature": "double this[int index]", + "protected": false, + "summary": "Gets or sets the z-coordinate of the specified point." + } ] }, { @@ -7754,6 +7780,11 @@ "protected": false, "summary": "Gets the number of None references (Nothing in Visual Basic) in this list. If T is a ValueType, this property always return zero.", "property": ["get"] + }, + { + "signature": "T this[int index]", + "protected": false, + "summary": "Gets or sets the element at the specified index." } ], "methods": [ @@ -19809,6 +19840,30 @@ "protected": false, "since": "6.0" }, + { + "signature": "static System.Boolean SendToPrinter(System.String printerName, ViewCaptureSettings[] settings, System.Int32 copies)", + "protected": false, + "summary": "Send a list of view capture settings to a printer. Each setting represents a single page.", + "since": "8.0", + "parameters": [ + { + "name": "printerName", + "type": "System.String", + "summary": "" + }, + { + "name": "settings", + "type": "ViewCaptureSettings[]", + "summary": "" + }, + { + "name": "copies", + "type": "System.Int32", + "summary": "number of copies to print" + } + ], + "returns": "True on success" + }, { "signature": "static System.Boolean SendToPrinter(System.String printerName, ViewCaptureSettings[] settings)", "protected": false, @@ -22595,6 +22650,11 @@ "summary": "Number of UserData objects in this list.", "since": "5.0", "property": ["get"] + }, + { + "signature": "UserData this[int index]", + "protected": false, + "summary": "Retrieve through indexer. Read-only access." } ], "methods": [ @@ -27086,7 +27146,21 @@ "protected": false, "summary": "Gets immediate children of this layer. Note that child layers may have their own children.", "since": "5.0", - "returns": "Array of child layers, or None if this layer does not have any children." + "returns": "Array of child layers, sorted by layer index, or None if this layer does not have any children." + }, + { + "signature": "Layer[] GetChildren(System.Boolean allChildren)", + "protected": false, + "summary": "Gets the children of this layer.", + "since": "8.0", + "parameters": [ + { + "name": "allChildren", + "type": "System.Boolean", + "summary": "If false, the immediate children are returned. If true, immediate children, their children, and so on, are returned." + } + ], + "returns": "Array of child layers, sorted by layer index, or None if this layer does not have any children." }, { "signature": "SectionStyle GetCustomSectionStyle()", @@ -28459,6 +28533,11 @@ "summary": "Gets an ICollection containing the MaterialRef objects in this dictionary.", "since": "5.10", "property": ["get"] + }, + { + "signature": "MaterialRef this[Guid key]", + "protected": false, + "summary": "Gets or sets the element with the specified plug-in Id." } ], "methods": [ @@ -33997,6 +34076,11 @@ "summary": "Returns ModelComponentType.Image .", "since": "6.0", "property": ["get"] + }, + { + "signature": "BitmapEntry this[int index]", + "protected": false, + "summary": "Conceptually, the bitmap table is an array of bitmaps. The operator[] can be used to get individual bitmaps." } ], "methods": [ @@ -34177,6 +34261,10 @@ "protected": false, "since": "6.0", "property": ["get"] + }, + { + "signature": "DimensionStyle this[int index]", + "protected": false } ], "methods": [ @@ -34527,6 +34615,11 @@ "summary": "Document that owns this table.", "since": "5.0", "property": ["get"] + }, + { + "signature": "Font this[int index]", + "protected": false, + "summary": "Gets the font at a position." } ], "methods": [ @@ -35054,6 +35147,11 @@ "summary": "At all times, there is a \"current\" hatch pattern. Unless otherwise specified, new objects are assigned to the current hatch pattern. The current hatch pattern is never locked, hidden, or deleted.", "since": "5.0", "property": ["get", "set"] + }, + { + "signature": "HatchPattern this[int index]", + "protected": false, + "summary": "Conceptually, the hatch pattern table is an array of hatch patterns. The operator[] can be used to get individual hatch patterns. A hatch pattern is either active or deleted and this state is reported by HatchPattern.IsDeleted." } ], "methods": [ @@ -35301,6 +35399,11 @@ "summary": "Document that owns this table.", "since": "5.0", "property": ["get"] + }, + { + "signature": "InstanceDefinition this[int index]", + "protected": false, + "summary": "Conceptually, the InstanceDefinition table is an array of Instance definitions. The operator[] can be used to get individual instance definition. An instance definition is either active or deleted and this state is reported by IsDeleted or will be None if it has been purged from the document." } ], "methods": [ @@ -36114,6 +36217,11 @@ "summary": "Document that owns this table.", "since": "5.0", "property": ["get"] + }, + { + "signature": "Layer this[int index]", + "protected": false, + "summary": "Conceptually, the layer table is an array of layers. The operator[] can be used to get individual layers. A layer is either active or deleted and this state is reported by Layer.IsDeleted." } ], "methods": [ @@ -36990,6 +37098,10 @@ "summary": "Gets the Sun instance that is applied to the document. \nIf the RDK is loaded, an instance is always returned.", "since": "5.0", "property": ["get"] + }, + { + "signature": "LightObject this[int index]", + "protected": false } ], "methods": [ @@ -37240,6 +37352,11 @@ "summary": "For display in Rhino viewports, the linetypes are scaled by a single scale factor for all viewports. This is not used for printing, where all linetype patterns are scaled to print in their defined size 1:1 on the paper.", "since": "5.0", "property": ["get", "set"] + }, + { + "signature": "Linetype this[int index]", + "protected": false, + "summary": "Conceptually, the linetype table is an array of linetypes. The operator[] can be used to get individual linetypes. A linetype is either active or deleted and this state is reported by Linetype.IsDeleted." } ], "methods": [ @@ -37674,6 +37791,11 @@ "summary": "Gets or sets the current material source.", "since": "5.0", "property": ["get", "set"] + }, + { + "signature": "Material this[int index]", + "protected": false, + "summary": "Conceptually, the material table is an array of materials. The operator[] can be used to get individual materials. A material is either active or deleted and this state is reported by Material.IsDeleted." } ], "methods": [ @@ -37956,6 +38078,11 @@ "summary": "Gets the document that owns this table.", "since": "5.0", "property": ["get"] + }, + { + "signature": "ConstructionPlane this[int index]", + "protected": false, + "summary": "Conceptually, the named construction plane table is an array of ConstructionPlanes and their associated names. The operator[] can be used to get individual ConstructionPlanes." } ], "methods": [ @@ -38638,6 +38765,11 @@ "summary": "Document that owns this table.", "since": "5.0", "property": ["get"] + }, + { + "signature": "ViewInfo this[int index]", + "protected": false, + "summary": "Conceptually, the named view table is an array of ViewInfo and their associated names. The indexing operator ([] in C#) can be used to get individual ViewInfo items." } ], "methods": [ @@ -50082,6 +50214,11 @@ "summary": "Number of named construction planes in the table.", "since": "6.0", "property": ["get"] + }, + { + "signature": "ConstructionPlane this[int index]", + "protected": false, + "summary": "Gets the named construction plane at an index." } ], "methods": [ @@ -51941,6 +52078,11 @@ "summary": "Gets the number of File3dmPlugInData objects in this table.", "since": "5.0", "property": ["get"] + }, + { + "signature": "File3dmPlugInData this[int index]", + "protected": false, + "summary": "Gets the File3dmPlugInData object at the given index." } ], "methods": [ @@ -53648,6 +53790,11 @@ "summary": "Gets the amount of items in the table.", "since": "6.0", "property": ["get"] + }, + { + "signature": "ViewInfo this[int index]", + "protected": false, + "summary": "Gets the view info at an index. The set method always throws NotSupportedException." } ], "methods": [ @@ -70901,6 +71048,11 @@ "summary": "Gets the number of curves in this list.", "since": "5.6", "property": ["get"] + }, + { + "signature": "Curve this[int index]", + "protected": false, + "summary": "Gets the Curve at the given index. The index must be valid or an IndexOutOfRangeException will be thrown." } ], "methods": [ @@ -70946,6 +71098,11 @@ "summary": "Gets the number of brep edges.", "since": "5.0", "property": ["get"] + }, + { + "signature": "BrepEdge this[int index]", + "protected": false, + "summary": "Gets the BrepEdge at the given index. The index must be valid or an IndexOutOfRangeException will be thrown." } ], "methods": [ @@ -71113,6 +71270,11 @@ "summary": "Gets the number of brep faces.", "since": "5.0", "property": ["get"] + }, + { + "signature": "BrepFace this[int index]", + "protected": false, + "summary": "Gets the BrepFace at the given index. The index must be valid or an IndexOutOfRangeException will be thrown." } ], "methods": [ @@ -71400,6 +71562,11 @@ "summary": "Gets the number of brep loops.", "since": "5.0", "property": ["get"] + }, + { + "signature": "BrepLoop this[int index]", + "protected": false, + "summary": "Gets the BrepLoop at the given index. The index must be valid or an IndexOutOfRangeException will be thrown." } ], "methods": [ @@ -71482,6 +71649,11 @@ "summary": "Gets the number of surfaces in a brep.", "since": "5.4", "property": ["get"] + }, + { + "signature": "Surface this[int index]", + "protected": false, + "summary": "Gets the Surface at the given index. The index must be valid or an IndexOutOfRangeException will be thrown." } ], "methods": [ @@ -71513,6 +71685,11 @@ "summary": "Gets the number of brep trims.", "since": "5.1", "property": ["get"] + }, + { + "signature": "BrepTrim this[int index]", + "protected": false, + "summary": "Gets the BrepTrim at the given index. The index must be valid or an IndexOutOfRangeException will be thrown." } ], "methods": [ @@ -71742,6 +71919,11 @@ "summary": "Gets the number of brep vertices.", "since": "5.4", "property": ["get"] + }, + { + "signature": "BrepVertex this[int index]", + "protected": false, + "summary": "Gets the BrepVertex at the given index. The index must be valid or an IndexOutOfRangeException will be thrown." } ], "methods": [ @@ -71843,6 +72025,11 @@ "summary": "Gets the number of faces that are valid triangles (3 corners).", "since": "5.0", "property": ["get"] + }, + { + "signature": "MeshFace this[int index]", + "protected": false, + "summary": "Returns the mesh face at the given index." } ], "methods": [ @@ -72520,6 +72707,11 @@ "summary": "Gets or sets the number of mesh face normals.", "since": "5.0", "property": ["get", "set"] + }, + { + "signature": "Vector3f this[int index]", + "protected": false, + "summary": "Gets or sets the face normal at the given face index. The index must be valid or an IndexOutOfRangeException will be thrown." } ], "methods": [ @@ -72756,6 +72948,11 @@ "summary": "Gets or sets the number of mesh ngons.", "since": "6.0", "property": ["get", "set"] + }, + { + "signature": "MeshNgon this[int index]", + "protected": false, + "summary": "Returns the mesh ngon at the given index." } ], "methods": [ @@ -73154,6 +73351,11 @@ "summary": "Gets or sets the number of texture coordinates.", "since": "5.0", "property": ["get", "set"] + }, + { + "signature": "Point2f this[int index]", + "protected": false, + "summary": "Gets or sets the texture coordinate at the given index. The index must be valid or an IndexOutOfRangeException will be thrown." } ], "methods": [ @@ -73684,6 +73886,11 @@ "summary": "Gets or sets the number of mesh topology vertices.", "since": "5.0", "property": ["get"] + }, + { + "signature": "Point3f this[int index]", + "protected": false, + "summary": "Gets or sets the vertex at the given index. Setting a location adjusts all vertices in the mesh's vertex list that are defined by this topological vertex The index must be valid or an IndexOutOfRangeException will be thrown." } ], "methods": [ @@ -73900,6 +74107,11 @@ "summary": "Gets or sets a mapping information for the mesh associated with these vertex colors.", "since": "5.0", "property": ["get", "set"] + }, + { + "signature": "Color this[int index]", + "protected": false, + "summary": "Gets or sets the vertex color at the given index. The index must be valid or an IndexOutOfRangeException will be thrown." } ], "methods": [ @@ -74110,6 +74322,11 @@ "summary": "Set to True if the vertices should be stored in double precision", "since": "6.4", "property": ["get", "set"] + }, + { + "signature": "Point3f this[int index]", + "protected": false, + "summary": "Gets or sets the vertex at the given index. The index must be valid or an IndexOutOfRangeException will be thrown." } ], "methods": [ @@ -74619,6 +74836,11 @@ "summary": "Gets or sets the number of mesh vertex normals.", "since": "5.0", "property": ["get", "set"] + }, + { + "signature": "Vector3f this[int index]", + "protected": false, + "summary": "Gets or sets the vertex at the given index. The index must be valid or an IndexOutOfRangeException will be thrown." } ], "methods": [ @@ -74903,6 +75125,11 @@ "summary": "Gets a value indicating how many vertices have been set to hidden.", "since": "6.0", "property": ["get"] + }, + { + "signature": "bool this[int index]", + "protected": false, + "summary": "Gets or sets the hidden value at the given index. The index must be valid or an IndexOutOfRangeException will be thrown." } ], "methods": [ @@ -75027,6 +75254,11 @@ "summary": "Gets the style of the knot vector.", "since": "7.1", "property": ["get"] + }, + { + "signature": "double this[int index]", + "protected": false, + "summary": "Gets or sets the knot vector value at the given index." } ], "methods": [ @@ -75296,6 +75528,11 @@ "summary": "Returns the control point size, or the number of doubles per control point. For rational curves, PointSize = Curve.Dimension + 1. For non-rational curves, PointSize = Curve.Dimension.", "since": "6.9", "property": ["get"] + }, + { + "signature": "ControlPoint this[int index]", + "protected": false, + "summary": "Gets or sets the control point location at the given index." } ], "methods": [ @@ -75697,6 +75934,11 @@ "summary": "Gets the style of the knot vector.", "since": "7.1", "property": ["get"] + }, + { + "signature": "double this[int index]", + "protected": false, + "summary": "Gets or sets the knot vector value at the given index." } ], "methods": [ @@ -86573,6 +86815,11 @@ "summary": "Gets the number of recorded intersection events.", "since": "5.0", "property": ["get"] + }, + { + "signature": "IntersectionEvent this[int index]", + "protected": false, + "summary": "Gets the intersection event data at the given index." } ], "methods": [ @@ -89032,6 +89279,11 @@ "summary": "Gets or sets the upper bound of the Interval.", "since": "5.0", "property": ["get", "set"] + }, + { + "signature": "double this[int index]", + "protected": false, + "summary": "Gets or sets the indexed bound of this Interval." } ], "methods": [ @@ -91643,6 +91895,11 @@ "summary": "Gets the amount of rows.", "since": "5.0", "property": ["get"] + }, + { + "signature": "double this[int row]", + "protected": false, + "summary": "Gets or sets the matrix value at the given row and column indices." } ], "methods": [ @@ -96140,6 +96397,11 @@ "summary": "Gets a value indicating whether or not this mesh face is a triangle. A mesh face is considered to be a triangle when C equals D, thus it is possible for an Invalid mesh face to also be a triangle.", "since": "5.0", "property": ["get"] + }, + { + "signature": "int this[int index]", + "protected": false, + "summary": "Gets or sets the vertex index associated with an entry in this face." } ], "methods": [ @@ -96641,12 +96903,6 @@ ], "returns": "Returns a new MeshingParameters created by decoding and deserializing the string or None if value is invalid." }, - { - "signature": "System.Int32 Compare(MeshingParameters other)", - "protected": false, - "summary": "Call this method to compare this parameters with another", - "since": "8.0" - }, { "signature": "System.Void CopyFrom(MeshingParameters source)", "protected": false, @@ -96866,6 +97122,11 @@ "summary": "Get the number of faces in this ngon.", "since": "6.0", "property": ["get"] + }, + { + "signature": "int this[int index]", + "protected": false, + "summary": "Get a mesh vertex index from the ngon's vertex index list." } ], "methods": [ @@ -101897,6 +102158,11 @@ "summary": "Gets or sets the Y (second) coordinate of the point.", "since": "5.0", "property": ["get", "set"] + }, + { + "signature": "double this[int index]", + "protected": false, + "summary": "Accesses the coordinates of this point." } ], "methods": [ @@ -102467,6 +102733,11 @@ "summary": "Gets or sets the Y (second) component of the vector.", "since": "5.0", "property": ["get", "set"] + }, + { + "signature": "float this[int index]", + "protected": false, + "summary": "Accesses the coordinates of this point." } ], "methods": [ @@ -102882,6 +103153,11 @@ "summary": "Gets or sets the Z (third) coordinate of this point.", "since": "5.0", "property": ["get", "set"] + }, + { + "signature": "double this[int index]", + "protected": false, + "summary": "Gets or sets an indexed coordinate of this point." } ], "methods": [ @@ -104417,6 +104693,11 @@ "summary": "Gets the number of points that have their Hidden flag set.", "since": "5.0", "property": ["get"] + }, + { + "signature": "PointCloudItem this[int index]", + "protected": false, + "summary": "Gets the item at the given index." } ], "methods": [ @@ -116720,6 +117001,11 @@ "summary": "Gets a value indicating whether or not the Transform maintains similarity. The easiest way to think of Similarity is that any circle, when transformed, remains a circle. Whereas a non-similarity Transform deforms circles into ellipses.", "since": "5.0", "property": ["get"] + }, + { + "signature": "double this[int row]", + "protected": false, + "summary": "Gets or sets the matrix value at the given row and column indices." } ], "methods": [ @@ -119420,6 +119706,11 @@ "summary": "Gets or sets the Z (third) component of the vector.", "since": "5.0", "property": ["get", "set"] + }, + { + "signature": "double this[int index]", + "protected": false, + "summary": "Gets or sets a vector component at the given index." } ], "methods": [ @@ -121581,6 +121872,12 @@ "summary": "Gets or sets the second, J index.", "since": "5.0", "property": ["get", "set"] + }, + { + "signature": "int this[int index]", + "protected": false, + "summary": "Gets or sets a particular index of this structure. Only 0 and 1 are valid indices.", + "remarks": "Only 0 and 1 are valid indices." } ], "methods": [ @@ -133015,6 +133312,11 @@ "summary": "The texture mapping Id.", "since": "5.10", "property": ["get"] + }, + { + "signature": "Point3d this[int index]", + "protected": false, + "summary": "Gets the element at the specified index. Never call the set method, it will always throw a NotSupportedException because this list is read-only." } ], "methods": [ @@ -133970,6 +134272,11 @@ "protected": false, "since": "8.0", "property": ["get"] + }, + { + "signature": "MappingChannel this[int i]", + "protected": false, + "summary": "Get MappingChannel on index" } ] }, @@ -147595,6 +147902,10 @@ "protected": false, "since": "5.7", "property": ["get"] + }, + { + "signature": "RenderEnvironment this[int index]", + "protected": false } ], "methods": [ @@ -148550,6 +148861,10 @@ "protected": false, "since": "5.7", "property": ["get"] + }, + { + "signature": "RenderMaterial this[int index]", + "protected": false } ], "methods": [ @@ -150874,6 +151189,10 @@ "protected": false, "since": "5.7", "property": ["get"] + }, + { + "signature": "RenderTexture this[int index]", + "protected": false } ], "methods": [ @@ -160997,6 +161316,11 @@ "summary": "Gets the amount of polylines in this array.", "since": "7.0", "property": ["get"] + }, + { + "signature": "Point3d this[int index]", + "protected": false, + "summary": "Gets a point in a polyline." } ], "methods": [ @@ -161760,6 +162084,11 @@ "summary": "Gets the amount of elements in this array.", "since": "5.0", "property": ["get"] + }, + { + "signature": "Guid this[int index]", + "protected": false, + "summary": "Get the Guid at index" } ], "methods": [ @@ -161819,6 +162148,11 @@ "summary": "Gets the amount of elements in this array.", "since": "6.0", "property": ["get"] + }, + { + "signature": "Guid this[int index]", + "protected": false, + "summary": "Get the Guid at index" } ], "methods": [ @@ -162956,6 +163290,11 @@ "summary": "Gets the amount of elements in this vector.", "since": "5.0", "property": ["get"] + }, + { + "signature": "Guid this[ulong index]", + "protected": false, + "summary": "Get the Guid at index" } ], "methods": [ @@ -163968,6 +164307,11 @@ "summary": "The title of the notification. The title is displayed when the notification is displayed modally in Rhino.", "since": "6.0", "property": ["get", "set"] + }, + { + "signature": "string this[string key]", + "protected": false, + "summary": "Gets or sets metadata for this instance." } ], "methods": [ @@ -164177,6 +164521,11 @@ "protected": false, "summary": "Always returns false.", "property": ["get"] + }, + { + "signature": "T this[int index]", + "protected": false, + "summary": "Gets or replaces an element in the ordered set at the specified index." } ], "methods": [ @@ -174609,6 +174958,10 @@ "summary": "Number of open toolbar files", "since": "5.0", "property": ["get"] + }, + { + "signature": "ToolbarFile this[int index]", + "protected": false } ], "methods": [ diff --git a/quasar_site/src/pages/DataType.vue b/quasar_site/src/pages/DataType.vue index adbf2aa1..84bcba83 100644 --- a/quasar_site/src/pages/DataType.vue +++ b/quasar_site/src/pages/DataType.vue @@ -15,7 +15,7 @@
- Inheritence: + inheritence: