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
Block
Implements
System.IComparable
System.ICloneable
System.Runtime.Serialization.ISerializable
System.Runtime.Serialization.IDeserializationCallback
Inherited Members
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()
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
|
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
|
Improve this Doc
View Source
containedObjects
Declaration
protected GeoObjectList containedObjects
Field Value
|
Improve this Doc
View Source
OnPaintTo3D
Declaration
public static Block.PaintTo3DDelegate OnPaintTo3D
Field Value
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
|
Improve this Doc
View Source
ColorDef
Declaration
public virtual ColorDef ColorDef { get; set; }
Property Value
|
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
|
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
Overrides
|
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
|
Improve this Doc
View Source
OwnedItems
Declaration
public override IGeoObject[] OwnedItems { get; }
Property Value
Overrides
|
Improve this Doc
View Source
RefPoint
Declaration
public GeoPoint RefPoint { get; set; }
Property Value
|
Improve this Doc
View Source
Style
Declaration
public override Style Style { get; set; }
Property Value
Overrides
Methods
|
Improve this Doc
View Source
Add(GeoObjectList)
Declaration
public virtual void Add(GeoObjectList ToAdd)
Parameters
|
Improve this Doc
View Source
Add(IGeoObject)
Declaration
public virtual void Add(IGeoObject ToAdd)
Parameters
|
Improve this Doc
View Source
Child(Int32)
Declaration
public override IGeoObject Child(int Index)
Parameters
| Type |
Name |
Description |
| System.Int32 |
Index |
|
Returns
Overrides
|
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
Overrides
|
Improve this Doc
View Source
Construct()
Declaration
public static Block Construct()
Returns
|
Improve this Doc
View Source
CopyGeometry(IGeoObject)
Declaration
public override void CopyGeometry(IGeoObject ToCopyFrom)
Parameters
Overrides
|
Improve this Doc
View Source
Decompose()
Declaration
public override GeoObjectList Decompose()
Returns
Overrides
|
Improve this Doc
View Source
FindSnapPoint(SnapPointFinder)
Declaration
public override void FindSnapPoint(SnapPointFinder spf)
Parameters
Overrides
|
Improve this Doc
View Source
GetBoundingCube()
Declaration
public override BoundingCube GetBoundingCube()
Returns
Overrides
|
Improve this Doc
View Source
GetExtent(Projection, ExtentPrecision)
Declaration
public override BoundingRect GetExtent(Projection projection, ExtentPrecision extentPrecision)
Parameters
Returns
Overrides
|
Improve this Doc
View Source
GetExtent(Double)
Declaration
public override BoundingCube GetExtent(double precision)
Parameters
| Type |
Name |
Description |
| System.Double |
precision |
|
Returns
Overrides
|
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
|
Improve this Doc
View Source
GetQuadTreeItem(Projection, ExtentPrecision)
Declaration
public override IQuadTreeInsertableZ GetQuadTreeItem(Projection projection, ExtentPrecision extentPrecision)
Parameters
Returns
Overrides
|
Improve this Doc
View Source
GetShowProperties(IFrame)
Declaration
public override IShowProperty GetShowProperties(IFrame Frame)
Parameters
| Type |
Name |
Description |
| IFrame |
Frame |
|
Returns
Overrides
|
Improve this Doc
View Source
HasChildren()
Declaration
public override bool HasChildren()
Returns
| Type |
Description |
| System.Boolean |
|
Overrides
|
Improve this Doc
View Source
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
|
Improve this Doc
View Source
HitTest(Projection, BoundingRect, Boolean)
Declaration
public override bool HitTest(Projection projection, BoundingRect rect, bool onlyInside)
Parameters
Returns
| Type |
Description |
| System.Boolean |
|
Overrides
|
Improve this Doc
View Source
HitTest(Projection.PickArea, Boolean)
Declaration
public override bool HitTest(Projection.PickArea area, bool onlyInside)
Parameters
Returns
| Type |
Description |
| System.Boolean |
|
Overrides
|
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
|
Improve this Doc
View Source
Modify(ModOp)
Declaration
public override void Modify(ModOp m)
Parameters
| Type |
Name |
Description |
| ModOp |
m |
|
Overrides
|
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)
Declaration
public override void PaintTo3D(IPaintTo3D paintTo3D)
Parameters
Overrides
|
Improve this Doc
View Source
PaintTo3DList(IPaintTo3D, ICategorizedDislayLists)
Declaration
public override void PaintTo3DList(IPaintTo3D paintTo3D, ICategorizedDislayLists lists)
Parameters
Overrides
|
Improve this Doc
View Source
Position(GeoPoint, GeoVector, Double)
Declaration
public override double Position(GeoPoint fromHere, GeoVector direction, double precision)
Parameters
Returns
| Type |
Description |
| System.Double |
|
Overrides
|
Improve this Doc
View Source
PrePaintTo3D(IPaintTo3D)
Declaration
public override void PrePaintTo3D(IPaintTo3D paintTo3D)
Parameters
Overrides
|
Improve this Doc
View Source
PrepareDisplayList(Double)
Declaration
public override void PrepareDisplayList(double precision)
Parameters
| Type |
Name |
Description |
| System.Double |
precision |
|
Overrides
|
Improve this Doc
View Source
Remove(GeoObjectList)
Declaration
public virtual void Remove(GeoObjectList ToRemove)
Parameters
|
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
Explicit Interface Implementations
|
Improve this Doc
View Source
IColorDef.SetTopLevel(ColorDef)
Declaration
void IColorDef.SetTopLevel(ColorDef newValue)
Parameters
|
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
|
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
System.IComparable
System.ICloneable
System.Runtime.Serialization.ISerializable
System.Runtime.Serialization.IDeserializationCallback