AnyCAD Rapid API 2024
Help you to create a better world!
载入中...
搜索中...
未找到
TopoShape类 参考
类 TopoShape 继承关系图:
AObject

Public 成员函数

ClassId GetClassId ()
 
EnumTopoShapeType GetShapeType ()
 
boolean IsShapeType (EnumTopoShapeType type)
 
boolean IsNullShape ()
 
GBBox GetBBox ()
 
GBBox GetOptimalBBox ()
 
GTrsf GetLocalTransform ()
 
TopoShapeList GetChildren (EnumTopoShapeType subType)
 
TopoShape FindChild (EnumTopoShapeType subType, int idx)
 
int FindChildIndex (TopoShape subShape)
 
boolean IsOrientable ()
 
TopoShape Reversed ()
 
EnumTopoOrientation GetOrientation ()
 
void SetOrientation (EnumTopoOrientation orient)
 
TopoShape Oriented (EnumTopoOrientation orient)
 
boolean IsConvex ()
 
boolean IsEqualShape (TopoShape other)
 
boolean IsSameShape (TopoShape other)
 
boolean IsPartnerShape (TopoShape other)
 
boolean IsClosed ()
 
String toString ()
 
- Public 成员函数 继承自 AObject
boolean IsEqual (AObject other)
 

静态 Public 成员函数

static ClassId GetStaticClassId ()
 
static TopoShape Cast (AObject obj)
 
static TopoShape Read (String buffer)
 

详细描述

<>
几何拓扑对象。用来表示一个几何对象。

成员函数说明

◆ FindChild()

TopoShape TopoShape.FindChild ( EnumTopoShapeType subType,
int idx )

Find the specified child shape

参数
subTypethe shape type.
idxthe index starting from 0
返回
the child

◆ FindChildIndex()

int TopoShape.FindChildIndex ( TopoShape subShape)

Get the inedex of the sub shape.

参数
subShapethe sub shape object
返回
-1 if failed to find

◆ GetBBox()

GBBox TopoShape.GetBBox ( )

Get bounding box

返回
the Bounding box

◆ GetChildren()

TopoShapeList TopoShape.GetChildren ( EnumTopoShapeType subType)

Get the specified children shapes

参数
subTypethe shape type.
返回
the children

◆ GetClassId()

ClassId TopoShape.GetClassId ( )

获取对象的类型信息

返回
类信息

重载 AObject .

◆ GetLocalTransform()

GTrsf TopoShape.GetLocalTransform ( )

Get local transform.

返回
the transform.

◆ GetOptimalBBox()

GBBox TopoShape.GetOptimalBBox ( )

Get accurate bounding box. with low performance.

返回
the Bounding box

◆ GetOrientation()

EnumTopoOrientation TopoShape.GetOrientation ( )

Get oritation

◆ GetShapeType()

EnumTopoShapeType TopoShape.GetShapeType ( )

获取拓扑类型

返回
EnumTopoShapeType
参见
EnumTopoShapeType

◆ GetStaticClassId()

static ClassId TopoShape.GetStaticClassId ( )
static

获取类信息

返回

重载 AObject .

◆ IsClosed()

boolean TopoShape.IsClosed ( )

Returns the closedness flag.

◆ IsConvex()

boolean TopoShape.IsConvex ( )

Returns the convexness flag

返回
true if convex.

◆ IsEqualShape()

boolean TopoShape.IsEqualShape ( TopoShape other)

Returns True if two shapes are equal, i.e. if they
share the same TShape with the same Locations and
Orientations.

◆ IsNullShape()

boolean TopoShape.IsNullShape ( )

test if null

返回
true if shape is null.

◆ IsOrientable()

boolean TopoShape.IsOrientable ( )

Returns the orientability flag.

◆ IsPartnerShape()

boolean TopoShape.IsPartnerShape ( TopoShape other)

Returns True if two shapes are partners, i.e. if
they share the same TShape. Locations and
Orientations may differ.

◆ IsSameShape()

boolean TopoShape.IsSameShape ( TopoShape other)

Returns True if two shapes are same, i.e. if they
share the same TShape with the same Locations.
Orientations may differ.

◆ IsShapeType()

boolean TopoShape.IsShapeType ( EnumTopoShapeType type)

Test if the shape type.

参数
typethe type you want to test.
返回
true if it's the type.

◆ Oriented()

TopoShape TopoShape.Oriented ( EnumTopoOrientation orient)

Returns a shape similar to <me> with the orientation set to.

参数
orientthe orientation.
返回
the new shape

◆ Read()

static TopoShape TopoShape.Read ( String buffer)
static

Create from string.

参数
bufferthe string content.
返回
the shape.

◆ Reversed()

TopoShape TopoShape.Reversed ( )

get the reversed shape

返回
reversed shape

◆ toString()

String TopoShape.toString ( )

Write to string.

返回
the string