Class AnchoredBoxable
Represents an object that is both anchored to a root point and can expand to a 3D box.
public class AnchoredBoxable : IGetAnchor, IGetTopoIndex, IExpandToBox3d
- Inheritance
-
AnchoredBoxable
- Implements
- Inherited Members
- Extension Methods
Constructors
AnchoredBoxable()
Initializes a new instance of the AnchoredBoxable class.
public AnchoredBoxable()
AnchoredBoxable(IGetAnchor, IExpandToBox3d)
Initializes a new instance of the AnchoredBoxable class with the specified anchor and boxable object.
public AnchoredBoxable(IGetAnchor anchor, IExpandToBox3d boxable)
Parameters
anchorIGetAnchorThe object that provides the root anchor.
boxableIExpandToBox3dThe object that can expand to a 3D box.
Properties
Anchor
Gets or sets the anchor point.
public Anchor Anchor { get; set; }
Property Value
Boxable
Gets or sets the boxable object that can expand to a 3D box.
public IExpandToBox3d Boxable { get; set; }
Property Value
Methods
ExpandToBox3d(ref box3d_t)
Expands the destination box.
This function is usually used to compute the bounding box of elements.
box3d_t is a value type, so the destination is passed by reference
(the C++ expand_to_box3d(box3&) shape); an implementation writes
dst = dst.Expanded(...) or forwards ref dst to its parts.
public void ExpandToBox3d(ref box3d_t dst)
Parameters
dstbox3d_tDestination box, expanded in place
GetAnchor()
Get key anchor. (i.e. root anchor)
public Anchor GetAnchor()
Returns
- Anchor
key anchor