AnyCAD Rapid SDK  2020
The Rapid CAD SDK
Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Member Functions | List of all members
TopoShape Class Reference

Public Member Functions

synchronized void delete ()
 
EnumTopoShapeType GetShapeType ()
 
boolean IsNullShape ()
 
GBBox GetBBox ()
 
GBBox GetOptimalBBox ()
 
GTrsf GetLocalTransform ()
 
void SetLocalTransform (GTrsf trf)
 
TopoShape Transformed (GTrsf trf)
 
TopoShapeList GetChildren (EnumTopoShapeType subType)
 
TopoShape FindChild (EnumTopoShapeType subType, int idx)
 
String Write ()
 

Static Public Member Functions

static TopoShape Read (String buffer)
 

Protected Member Functions

 TopoShape (long cPtr, boolean cMemoryOwn)
 
void swigSetCMemOwn (boolean own)
 
void finalize ()
 

Static Protected Member Functions

static long getCPtr (TopoShape obj)
 

Detailed Description


TopoShape

Represent the topology geometry shape.

Member Function Documentation

TopoShape TopoShape.FindChild ( EnumTopoShapeType  subType,
int  idx 
)

Find the specified child shape

Parameters
subTypethe shape type.
idxthe index starting from 0
Returns
the child
GBBox TopoShape.GetBBox ( )

Get bounding box��

Returns
the Bounding box
TopoShapeList TopoShape.GetChildren ( EnumTopoShapeType  subType)

Get the specified children shapes

Parameters
subTypethe shape type.
Returns
the children
GTrsf TopoShape.GetLocalTransform ( )

Get local transform.

Returns
the transform.
GBBox TopoShape.GetOptimalBBox ( )

Get accurate bounding box. with low performance.

Returns
the Bounding box
EnumTopoShapeType TopoShape.GetShapeType ( )

Get shape type

Returns
the shape type
boolean TopoShape.IsNullShape ( )

test if null

Returns
true if shape is null.
static TopoShape TopoShape.Read ( String  buffer)
static

Create from string.

Parameters
bufferthe string content.
Returns
the shape.
String TopoShape.Write ( )

Write to string.

Returns
the string