CADability dotNET

The Model type exposes the following members.

Constructors

  NameDescription
Public methodModel()()()()
Creates an empty model.
Protected methodModel(SerializationInfo, StreamingContext)
Constructor required by deserialization

Methods

  NameDescription
Public methodAdd(GeoObjectList)
Adds multiple GeoObjects to this model.
Public methodAdd(IGeoObject)
Adds an object to this model. If the model is beeing displayed the object will appear in the view immediately.
Public methodAdd(array<IGeoObject>[]()[][])
Adds multiple GeoObjects to this model.
Public methodAdjustPoint(SnapPointFinder, Set<(Of <<'(Layer>)>>))
Searches for the best point in this model which corresponds to the mouse position and the active snap modes. Mouse position and snap modes are contained in the spf parameter, where also the result is returned
Public methodAdjustPoint(SnapPointFinder, Projection, Set<(Of <<'(Layer>)>>))
Adjusts the point defined by spf (SourcePoint and Projection) according to the settings of spf (SnapPointFinder..::..SnapModes and other properties) by checking all objects in the visibleLayers. As a result SnapPoint and DidSnap will be set.
Public methodClearDisplayLists
Deprecated, still public for legacy reasons.
Protected methodFinalize (Overrides Object..::..Finalize()()()().)
Public methodGetContextMenu (Overrides IShowPropertyImpl..::..GetContextMenu()()()().)
Public methodGetExtent
Returns a 2 dimensional bounding rctangle enclosing the projection of all GeoObjects of the model.
Public methodGetObjectsFromBox
Returns all objects of the model that are inside ore close to the provided box.
Public methodGetObjectsFromRect(Projection..::..PickArea, Set<(Of <<'(Layer>)>>), PickMode, FilterList)
Returns all objects of the model that are touched by the area, whos layers are in the visibleLayers set and which are accepted by the filterList.
Public methodGetObjectsFromRect(BoundingRect, Projection, Set<(Of <<'(Layer>)>>), PickMode, FilterList)
Returns all objects of the model that are touched by the pickrect, whos layers are in the visibleLayers set and which are accepted by the filterList.
Public methodIsAttributeUsed
Determins whether an attribute (e.g. Layer, [!:LineStyle]) is used by any GeoObjects of this model.
Public methodLabelChanged (Overrides IShowPropertyImpl..::..LabelChanged(String).)
Public methodMoveToBack
Public methodMoveToFront
Public methodRemove(GeoObjectList)
Removes a list of GeoObjects from this model. Objects that dont belong to the model will be ignored.
Public methodRemove(IGeoObject)
Removes a GeoObject from the model. If the GeoObject doesnt belong to this model it will be ignored.
Public methodRemove(array<IGeoObject>[]()[][])
Removes an array of GeoObjects from this model. Objects that dont belong to the model will be ignored.
Public methodRemoveAll
Remove all objects from this model.
Public methodRemoveSolid
Removes the given solid from all other solids in the model. If there are no solids in the model or this solid is disjoint with all other solids in the model there will be no effect.
Public methodUniteSolid
Unites the given solid with all other solids in the model. If there are no other solids or the solid is disjoint with all other solids this solid will simply bee added.

Properties

  NameDescription
Public propertyAllDrives
Returns the list of all dirves of this model. Only used in connection with AnimatedView.
Public propertyAllObjects
Returns a list of all objects owned by this model. Removing or adding objects from or to the returned list doesn't remove or add the objects from or to the model.
Public propertyAllSchedules
Returns the list of all Schedules of this model. Only used in connection with AnimatedView.
Public propertyCount
Returns the count of GeoObjects in this model.
Public propertyEntryType
Overrides EntryType, returns GroupTitle.
(Overrides IShowPropertyImpl..::..EntryType.)
Public propertyExtent
Returns the extent of the model, i.e. a bounding cube enclosing all objects.
Public propertyItem
Indexer to access the GeoObjects owned by this model by index.
Public propertyLabelText (Overrides IShowPropertyImpl..::..LabelText.)
Public propertyLabelType
Overrides LabelType,
(Overrides IShowPropertyImpl..::..LabelType.)
Public propertyMinExtend
A minimal extend of the Model. This will be the extend of the Model if the Model is empty. This is also used in other circumstances (e.g. dieplay of the grid)
Public propertyName
The name of the model.
Public propertyNoSingleAddEvents
Set to true, if you don't want AddingGeoObjectEvent rsp. GeoObjectAddedEvent beeing fired after AddingGeoObjectsEvent rsp. GeoObjectsAddedEvent has been called. False is the default value.
Public propertyOctTree
Access to the OctTree containing all geometrical objects of the model. Do not modify the octtree to avoid inconsitencies between model and octtree. Use the octtree for fast access to the objects in the model from geometrical constraints.
Public propertySubEntries
Overrides SubEntries, returns the subentries in this property view.
(Overrides IShowPropertyImpl..::..SubEntries.)
Public propertySubEntriesCount
Overrides SubEntriesCount, returns the number of subentries in this property view.
(Overrides IShowPropertyImpl..::..SubEntriesCount.)
Public propertyUndo
Gets or sets the undo-system. Usually this is the undosystem of the Project containing this model.
Public propertyUserData

Events

  NameDescription
Public eventAddingGeoObjectEvent
This event will be fired before an object is added to this model. The event handler can prevent the object beeing added to the model
Public eventAddingGeoObjectsEvent
This event will be fired before multiple objects are beeing added. There is no sense in modifying the provided array of objects. There will be an additional call to AddingGeoObjectEvent and GeoObjectAddedEvent for each objects (where you can prevent the object beeing added) and a final call to GeoObjectsAddedEvent.
Public eventCalculateExtentForZoomTotalEvent
Public eventExtentChangedEvent
This event will be fired when objects have been added, removed or modified which resulted in a different extent (of the bounding box) of the model.
Public eventGeoObjectAddedEvent
This event will be fired when an object is added to this model.
Public eventGeoObjectDidChangeEvent
This event will be fired when an object contained in this model did change.
Public eventGeoObjectRemovedEvent
This event will be fired when an object is removed from this model.
Public eventGeoObjectsAddedEvent
This event will be fired after multiple GeoObjects have been added, AddingGeoObjectsEvent has been fired before.
Public eventGeoObjectWillChangeEvent
This event will be fired when an object contained in this model is about to change.
Public eventImportingObjectsEvent
This event will be fired when objects imported from another file are added to the model. The event handler can modify the list of objects, e.g. add or remove objects or combine the objects to a Block.
Public eventNameChangedEvent
This event will be fired when the name of the model changed.

Explicit Interface Implementations

See Also