CADability dotNET
The Model type exposes the following members.
Constructors
Name | Description | |
---|---|---|
Model()()()() |
Creates an empty model.
| |
Model(SerializationInfo, StreamingContext) |
Constructor required by deserialization
|
Methods
Name | Description | |
---|---|---|
Add(GeoObjectList) |
Adds multiple GeoObjects to this model.
| |
Add(IGeoObject) |
Adds an object to this model. If the model is beeing displayed the object will appear in the view
immediately.
| |
Add(array<IGeoObject>[]()[][]) |
Adds multiple GeoObjects to this model.
| |
AdjustPoint(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
| |
AdjustPoint(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.
| |
ClearDisplayLists |
Deprecated, still public for legacy reasons.
| |
Finalize | (Overrides Object..::..Finalize()()()().) | |
GetContextMenu |
Overrides GetContextMenu()()()() (Overrides IShowPropertyImpl..::..GetContextMenu()()()().) | |
GetExtent |
Returns a 2 dimensional bounding rctangle enclosing the projection of all GeoObjects of the model.
| |
GetObjectsFromBox |
Returns all objects of the model that are inside ore close to the provided box.
| |
GetObjectsFromRect(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.
| |
GetObjectsFromRect(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.
| |
IsAttributeUsed |
Determins whether an attribute (e.g. Layer, [!:LineStyle]) is used by any GeoObjects of this model.
| |
LabelChanged |
Overrides LabelChanged(String) (Overrides IShowPropertyImpl..::..LabelChanged(String).) | |
MoveToBack | ||
MoveToFront | ||
Remove(GeoObjectList) |
Removes a list of GeoObjects from this model. Objects that dont belong to the model will be ignored.
| |
Remove(IGeoObject) |
Removes a GeoObject from the model. If the GeoObject doesnt belong to this model it will be ignored.
| |
Remove(array<IGeoObject>[]()[][]) |
Removes an array of GeoObjects from this model. Objects that dont belong to the model will be ignored.
| |
RemoveAll |
Remove all objects from this model.
| |
RemoveSolid |
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.
| |
UniteSolid |
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
Name | Description | |
---|---|---|
AllDrives |
Returns the list of all dirves of this model. Only used in connection with AnimatedView.
| |
AllObjects |
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.
| |
AllSchedules |
Returns the list of all Schedules of this model. Only used in connection with AnimatedView.
| |
Count |
Returns the count of GeoObjects in this model.
| |
EntryType |
Overrides EntryType,
returns GroupTitle.
(Overrides IShowPropertyImpl..::..EntryType.) | |
Extent |
Returns the extent of the model, i.e. a bounding cube enclosing all objects.
| |
Item |
Indexer to access the GeoObjects owned by this model by index.
| |
LabelText | (Overrides IShowPropertyImpl..::..LabelText.) | |
LabelType |
Overrides LabelType,
(Overrides IShowPropertyImpl..::..LabelType.) | |
MinExtend |
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)
| |
Name |
The name of the model.
| |
NoSingleAddEvents |
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.
| |
OctTree |
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.
| |
SubEntries |
Overrides SubEntries,
returns the subentries in this property view.
(Overrides IShowPropertyImpl..::..SubEntries.) | |
SubEntriesCount |
Overrides SubEntriesCount,
returns the number of subentries in this property view.
(Overrides IShowPropertyImpl..::..SubEntriesCount.) | |
Undo |
Gets or sets the undo-system. Usually this is the undosystem of the Project
containing this model.
| |
UserData |
Events
Name | Description | |
---|---|---|
AddingGeoObjectEvent |
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
| |
AddingGeoObjectsEvent |
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.
| |
CalculateExtentForZoomTotalEvent | ||
ExtentChangedEvent |
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.
| |
GeoObjectAddedEvent |
This event will be fired when an object is added to this model.
| |
GeoObjectDidChangeEvent |
This event will be fired when an object contained in this model did change.
| |
GeoObjectRemovedEvent |
This event will be fired when an object is removed from this model.
| |
GeoObjectsAddedEvent |
This event will be fired after multiple GeoObjects have been added, AddingGeoObjectsEvent
has been fired before.
| |
GeoObjectWillChangeEvent |
This event will be fired when an object contained in this model is about to change.
| |
ImportingObjectsEvent |
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.
| |
NameChangedEvent |
This event will be fired when the name of the model changed.
|