Show / Hide Table of Contents

Class Block

Ein Block als geometrisches Objekt. Der Block besitzt seine Kinder. Beim Clonen werden Kopien der Kinder erzeugt. A collection of several IGeoObjects

Inheritance
System.Object
IGeoObjectImpl
Block
Hatch
Implements
IGeoObject
ILayer
IStyle
IOctTreeInsertable
System.IComparable
IFeedBack
System.ICloneable
IColorDef
System.Runtime.Serialization.ISerializable
IGeoObjectOwner
System.Runtime.Serialization.IDeserializationCallback
IExportStep
Inherited Members
IGeoObjectImpl.isChanging
IGeoObjectImpl.MakeChange(IGeoObjectImpl, String)
IGeoObjectImpl.SetSerializationValue(String, Object)
IGeoObjectImpl.UniqueId
IGeoObjectImpl.WillChangeEvent
IGeoObjectImpl.DidChangeEvent
IGeoObjectImpl.FeedBackChangedEvent
IGeoObjectImpl.FireWillChange(GeoObjectChange)
IGeoObjectImpl.FireDidChange(GeoObjectChange)
IGeoObjectImpl.ModifyInverse(ModOp)
IGeoObjectImpl.Owner
IGeoObjectImpl.IsAttributeUsed(Object)
IGeoObjectImpl.AttributeChanged(INamedAttribute)
IGeoObjectImpl.CopyAttributes(IGeoObject)
IGeoObjectImpl.Attributes
IGeoObjectImpl.CustomAttributeKeys
IGeoObjectImpl.SetNamedAttribute(String, INamedAttribute)
IGeoObjectImpl.GetNamedAttribute(String)
IGeoObjectImpl.GetAttributeProperties(IFrame)
IGeoObjectImpl.UpdateAttributes(IAttributeListContainer)
IGeoObjectImpl.UserData
IGeoObjectImpl.isModifyingWithMouse
IGeoObjectImpl.ModifyWithMouse(Object, String, Boolean)
IGeoObjectImpl.HasValidData()
IGeoObjectImpl.PreferredStyle
IGeoObjectImpl.IsVisible
IGeoObjectImpl.PropagateAttributes(Layer, ColorDef)
IGeoObjectImpl.Actuator
IGeoObjectImpl.SetColorDef(ColorDef, ColorDef)
IGeoObjectImpl.StyleIsValid
IGeoObjectImpl.GetExtent(IGeoObject, Projection, Boolean)
IGeoObjectImpl.IsOwnedByBlockRef(IGeoObject)
IGeoObjectImpl.ChangingUserData(IGeoObject, String, Object)
IGeoObjectImpl.ChangingUserData(IGeoObject, String, Object, Boolean)
IGeoObjectImpl.ICloneable.Clone()
IGeoObjectImpl.IComparable.CompareTo(Object)
IGeoObjectImpl.GetAdditionalContextMenueEvent
IGeoObjectImpl.IFeedBack.GetExtent()
IGeoObjectImpl.JsonGetObjectData(IJsonWriteData)
IGeoObjectImpl.JsonSetObjectData(IJsonReadData)
IGeoObjectImpl.JsonSerializationDone()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: CADability.GeoObject
Assembly: CADability.dll
Syntax
[Serializable]
public class Block : IGeoObjectImpl, IGeoObject, ILayer, IStyle, IOctTreeInsertable, IComparable, IFeedBack, ICloneable, IColorDef, ISerializable, IGeoObjectOwner, IDeserializationCallback, IExportStep

Constructors

| Improve this Doc View Source

Block()

Declaration
protected Block()
| Improve this Doc View Source

Block(SerializationInfo, StreamingContext)

Constructor required by deserialization

Declaration
protected Block(SerializationInfo info, StreamingContext context)
Parameters
Type Name Description
System.Runtime.Serialization.SerializationInfo info

SerializationInfo

System.Runtime.Serialization.StreamingContext context

StreamingContext

Fields

| Improve this Doc View Source

Constructor

Declaration
public static Block.ConstructionDelegate Constructor
Field Value
Type Description
Block.ConstructionDelegate
| Improve this Doc View Source

containedObjects

Declaration
protected GeoObjectList containedObjects
Field Value
Type Description
GeoObjectList
| Improve this Doc View Source

OnPaintTo3D

Declaration
public static Block.PaintTo3DDelegate OnPaintTo3D
Field Value
Type Description
Block.PaintTo3DDelegate

Properties

| Improve this Doc View Source

Children

Yields a copy of the list of contained geoobjects. Removing objects from that list doesn't remove the objects from the Block.

Declaration
public GeoObjectList Children { get; }
Property Value
Type Description
GeoObjectList
| Improve this Doc View Source

ColorDef

Declaration
public virtual ColorDef ColorDef { get; set; }
Property Value
Type Description
ColorDef
| Improve this Doc View Source

Count

Gets the number of GeoObjects in the Block

Declaration
public int Count { get; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

Description

Declaration
public override string Description { get; }
Property Value
Type Description
System.String
Overrides
IGeoObjectImpl.Description
| Improve this Doc View Source

IsTmpContainer

Declaration
public bool IsTmpContainer { get; set; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

Layer

Declaration
public override Layer Layer { get; set; }
Property Value
Type Description
Layer
Overrides
IGeoObjectImpl.Layer
| Improve this Doc View Source

Name

Declaration
public string Name { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

NumChildren

Declaration
public override int NumChildren { get; }
Property Value
Type Description
System.Int32
Overrides
IGeoObjectImpl.NumChildren
| Improve this Doc View Source

OwnedItems

Declaration
public override IGeoObject[] OwnedItems { get; }
Property Value
Type Description
IGeoObject[]
Overrides
IGeoObjectImpl.OwnedItems
| Improve this Doc View Source

RefPoint

Declaration
public GeoPoint RefPoint { get; set; }
Property Value
Type Description
GeoPoint
| Improve this Doc View Source

Style

Declaration
public override Style Style { get; set; }
Property Value
Type Description
Style
Overrides
IGeoObjectImpl.Style

Methods

| Improve this Doc View Source

Add(GeoObjectList)

Declaration
public virtual void Add(GeoObjectList ToAdd)
Parameters
Type Name Description
GeoObjectList ToAdd
| Improve this Doc View Source

Add(IGeoObject)

Declaration
public virtual void Add(IGeoObject ToAdd)
Parameters
Type Name Description
IGeoObject ToAdd
| Improve this Doc View Source

Child(Int32)

Overrides Child(Int32)

Declaration
public override IGeoObject Child(int Index)
Parameters
Type Name Description
System.Int32 Index
Returns
Type Description
IGeoObject
Overrides
IGeoObjectImpl.Child(Int32)
| Improve this Doc View Source

Clear()

Removes all objects from that block and returns those objects in a new list. The returned objects have no Owner.

Declaration
public GeoObjectList Clear()
Returns
Type Description
GeoObjectList

a list with all the objects of this block

| Improve this Doc View Source

Clone()

Overrides Clone(). Returns a new Block, that contains clones of the children of this Block. An IGeoObject cannot be contained by two different block objects, because there may be only one owner (see also Owner).

Declaration
public override IGeoObject Clone()
Returns
Type Description
IGeoObject
Overrides
IGeoObjectImpl.Clone()
| Improve this Doc View Source

Construct()

Declaration
public static Block Construct()
Returns
Type Description
Block
| Improve this Doc View Source

CopyGeometry(IGeoObject)

Overrides CopyGeometry(IGeoObject)

Declaration
public override void CopyGeometry(IGeoObject ToCopyFrom)
Parameters
Type Name Description
IGeoObject ToCopyFrom
Overrides
IGeoObjectImpl.CopyGeometry(IGeoObject)
| Improve this Doc View Source

Decompose()

Overrides Decompose()

Declaration
public override GeoObjectList Decompose()
Returns
Type Description
GeoObjectList
Overrides
IGeoObjectImpl.Decompose()
| Improve this Doc View Source

FindSnapPoint(SnapPointFinder)

Overrides FindSnapPoint(SnapPointFinder)

Declaration
public override void FindSnapPoint(SnapPointFinder spf)
Parameters
Type Name Description
SnapPointFinder spf
Overrides
IGeoObjectImpl.FindSnapPoint(SnapPointFinder)
| Improve this Doc View Source

GetBoundingCube()

Overrides GetBoundingCube()

Declaration
public override BoundingCube GetBoundingCube()
Returns
Type Description
BoundingCube
Overrides
IGeoObjectImpl.GetBoundingCube()
| Improve this Doc View Source

GetExtent(Projection, ExtentPrecision)

Overrides GetExtent(Projection, ExtentPrecision)

Declaration
public override BoundingRect GetExtent(Projection projection, ExtentPrecision extentPrecision)
Parameters
Type Name Description
Projection projection
ExtentPrecision extentPrecision
Returns
Type Description
BoundingRect
Overrides
IGeoObjectImpl.GetExtent(Projection, ExtentPrecision)
| Improve this Doc View Source

GetExtent(Double)

Overrides GetExtent(Double)

Declaration
public override BoundingCube GetExtent(double precision)
Parameters
Type Name Description
System.Double precision
Returns
Type Description
BoundingCube
Overrides
IGeoObjectImpl.GetExtent(Double)
| Improve this Doc View Source

GetObjectData(SerializationInfo, StreamingContext)

Implements System.Runtime.Serialization.ISerializable.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)

Declaration
public override void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
Type Name Description
System.Runtime.Serialization.SerializationInfo info

The System.Runtime.Serialization.SerializationInfo to populate with data.

System.Runtime.Serialization.StreamingContext context

The destination (System.Runtime.Serialization.StreamingContext) for this serialization.

Overrides
IGeoObjectImpl.GetObjectData(SerializationInfo, StreamingContext)
| Improve this Doc View Source

GetQuadTreeItem(Projection, ExtentPrecision)

Overrides GetQuadTreeItem(Projection, ExtentPrecision)

Declaration
public override IQuadTreeInsertableZ GetQuadTreeItem(Projection projection, ExtentPrecision extentPrecision)
Parameters
Type Name Description
Projection projection
ExtentPrecision extentPrecision
Returns
Type Description
IQuadTreeInsertableZ
Overrides
IGeoObjectImpl.GetQuadTreeItem(Projection, ExtentPrecision)
| Improve this Doc View Source

GetShowProperties(IFrame)

Overrides GetShowProperties(IFrame)

Declaration
public override IShowProperty GetShowProperties(IFrame Frame)
Parameters
Type Name Description
IFrame Frame
Returns
Type Description
IShowProperty
Overrides
IGeoObjectImpl.GetShowProperties(IFrame)
| Improve this Doc View Source

HasChildren()

Overrides HasChildren()

Declaration
public override bool HasChildren()
Returns
Type Description
System.Boolean
Overrides
IGeoObjectImpl.HasChildren()
| Improve this Doc View Source

HitTest(ref BoundingCube, Double)

Overrides HitTest(ref BoundingCube, Double)

Declaration
public override bool HitTest(ref BoundingCube cube, double precision)
Parameters
Type Name Description
BoundingCube cube
System.Double precision
Returns
Type Description
System.Boolean
Overrides
IGeoObjectImpl.HitTest(ref BoundingCube, Double)
| Improve this Doc View Source

HitTest(Projection, BoundingRect, Boolean)

Overrides HitTest(Projection, BoundingRect, Boolean)

Declaration
public override bool HitTest(Projection projection, BoundingRect rect, bool onlyInside)
Parameters
Type Name Description
Projection projection
BoundingRect rect
System.Boolean onlyInside
Returns
Type Description
System.Boolean
Overrides
IGeoObjectImpl.HitTest(Projection, BoundingRect, Boolean)
| Improve this Doc View Source

HitTest(Projection.PickArea, Boolean)

Overrides HitTest(Projection.PickArea, Boolean)

Declaration
public override bool HitTest(Projection.PickArea area, bool onlyInside)
Parameters
Type Name Description
Projection.PickArea area
System.Boolean onlyInside
Returns
Type Description
System.Boolean
Overrides
IGeoObjectImpl.HitTest(Projection.PickArea, Boolean)
| Improve this Doc View Source

Insert(Int32, IGeoObject)

Declaration
public virtual void Insert(int index, IGeoObject ToAdd)
Parameters
Type Name Description
System.Int32 index
IGeoObject ToAdd
| Improve this Doc View Source

Item(Int32)

Declaration
public IGeoObject Item(int Index)
Parameters
Type Name Description
System.Int32 Index
Returns
Type Description
IGeoObject
| Improve this Doc View Source

Modify(ModOp)

Overrides Modify(ModOp)

Declaration
public override void Modify(ModOp m)
Parameters
Type Name Description
ModOp m
Overrides
IGeoObjectImpl.Modify(ModOp)
| Improve this Doc View Source

OnDeserialization(Object)

Declaration
public virtual void OnDeserialization(object sender)
Parameters
Type Name Description
System.Object sender
| Improve this Doc View Source

PaintTo3D(IPaintTo3D)

Overrides PaintTo3D(IPaintTo3D)

Declaration
public override void PaintTo3D(IPaintTo3D paintTo3D)
Parameters
Type Name Description
IPaintTo3D paintTo3D
Overrides
IGeoObjectImpl.PaintTo3D(IPaintTo3D)
| Improve this Doc View Source

PaintTo3DList(IPaintTo3D, ICategorizedDislayLists)

Overrides PaintTo3DList(IPaintTo3D, ICategorizedDislayLists)

Declaration
public override void PaintTo3DList(IPaintTo3D paintTo3D, ICategorizedDislayLists lists)
Parameters
Type Name Description
IPaintTo3D paintTo3D
ICategorizedDislayLists lists
Overrides
IGeoObjectImpl.PaintTo3DList(IPaintTo3D, ICategorizedDislayLists)
| Improve this Doc View Source

Position(GeoPoint, GeoVector, Double)

Overrides Position(GeoPoint, GeoVector, Double)

Declaration
public override double Position(GeoPoint fromHere, GeoVector direction, double precision)
Parameters
Type Name Description
GeoPoint fromHere
GeoVector direction
System.Double precision
Returns
Type Description
System.Double
Overrides
IGeoObjectImpl.Position(GeoPoint, GeoVector, Double)
| Improve this Doc View Source

PrePaintTo3D(IPaintTo3D)

Overrides PrePaintTo3D(IPaintTo3D)

Declaration
public override void PrePaintTo3D(IPaintTo3D paintTo3D)
Parameters
Type Name Description
IPaintTo3D paintTo3D
Overrides
IGeoObjectImpl.PrePaintTo3D(IPaintTo3D)
| Improve this Doc View Source

PrepareDisplayList(Double)

Overrides PrepareDisplayList(Double)

Declaration
public override void PrepareDisplayList(double precision)
Parameters
Type Name Description
System.Double precision
Overrides
IGeoObjectImpl.PrepareDisplayList(Double)
| Improve this Doc View Source

Remove(GeoObjectList)

Declaration
public virtual void Remove(GeoObjectList ToRemove)
Parameters
Type Name Description
GeoObjectList ToRemove
| Improve this Doc View Source

Remove(Int32)

Declaration
public virtual void Remove(int Index)
Parameters
Type Name Description
System.Int32 Index
| Improve this Doc View Source

ReplaceContent(GeoObjectList)

Replace the list of child objects without fireing a chang event. This is used by derived classes (e.g. Hatch or Dimension or user derived classes to recalculate their contents. The derived classes already have fired the change event.

Declaration
protected void ReplaceContent(GeoObjectList NewContent)
Parameters
Type Name Description
GeoObjectList NewContent

List of child objects to replace the existing list

| Improve this Doc View Source

Set(GeoObjectList)

Declaration
public virtual void Set(GeoObjectList toSet)
Parameters
Type Name Description
GeoObjectList toSet

Explicit Interface Implementations

| Improve this Doc View Source

IColorDef.SetTopLevel(ColorDef)

Declaration
void IColorDef.SetTopLevel(ColorDef newValue)
Parameters
Type Name Description
ColorDef newValue
| Improve this Doc View Source

IColorDef.SetTopLevel(ColorDef, Boolean)

Declaration
void IColorDef.SetTopLevel(ColorDef newValue, bool overwriteChildNullColor)
Parameters
Type Name Description
ColorDef newValue
System.Boolean overwriteChildNullColor
| Improve this Doc View Source

IGeoObjectOwner.Remove(IGeoObject)

Declaration
void IGeoObjectOwner.Remove(IGeoObject toRemove)
Parameters
Type Name Description
IGeoObject toRemove
| Improve this Doc View Source

IExportStep.Export(ExportStep, Boolean)

Declaration
int IExportStep.Export(ExportStep export, bool topLevel)
Parameters
Type Name Description
ExportStep export
System.Boolean topLevel
Returns
Type Description
System.Int32

Implements

IGeoObject
ILayer
IStyle
IOctTreeInsertable
System.IComparable
IFeedBack
System.ICloneable
IColorDef
System.Runtime.Serialization.ISerializable
IGeoObjectOwner
System.Runtime.Serialization.IDeserializationCallback
IExportStep
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX