Class ProjectedModel
Inheritance
System.Object
ProjectedModel
Implements
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 ProjectedModel : ISerializable, IDeserializationCallback
Constructors
|
Improve this Doc
View Source
ProjectedModel(Model, Projection)
Declaration
public ProjectedModel(Model m, Projection pr)
Parameters
|
Improve this Doc
View Source
ProjectedModel(SerializationInfo, StreamingContext)
Declaration
protected ProjectedModel(SerializationInfo info, StreamingContext context)
Parameters
| Type |
Name |
Description |
| System.Runtime.Serialization.SerializationInfo |
info |
|
| System.Runtime.Serialization.StreamingContext |
context |
|
Properties
|
Improve this Doc
View Source
Model
Declaration
public Model Model { get; }
Property Value
|
Improve this Doc
View Source
Name
Declaration
public string Name { get; set; }
Property Value
| Type |
Description |
| System.String |
|
|
Improve this Doc
View Source
Projection
Declaration
public Projection Projection { get; set; }
Property Value
|
Improve this Doc
View Source
UseLineWidth
Declaration
public bool UseLineWidth { get; set; }
Property Value
| Type |
Description |
| System.Boolean |
|
Methods
|
Improve this Doc
View Source
AddVisibleLayer(Layer)
Marks the given Layer as visible in the context of this ProjectedModel.
Declaration
public void AddVisibleLayer(Layer l)
Parameters
| Type |
Name |
Description |
| Layer |
l |
The layer
|
|
Improve this Doc
View Source
AdjustPoint(SnapPointFinder)
Declaration
public void AdjustPoint(SnapPointFinder spf)
Parameters
|
Improve this Doc
View Source
Connect(IPaintTo3D)
Declaration
public void Connect(IPaintTo3D paintTo3D)
Parameters
|
Improve this Doc
View Source
Connect(PaintBuffer)
Declaration
public void Connect(PaintBuffer paintBuffer)
Parameters
|
Improve this Doc
View Source
Disconnect(IPaintTo3D)
Declaration
public void Disconnect(IPaintTo3D paintTo3D)
Parameters
|
Improve this Doc
View Source
Disconnect(PaintBuffer)
Declaration
public void Disconnect(PaintBuffer paintBuffer)
Parameters
|
Improve this Doc
View Source
Finalize()
Declaration
protected void Finalize()
|
Improve this Doc
View Source
ForceExtentTo(BoundingRect)
Declaration
public void ForceExtentTo(BoundingRect newVal)
Parameters
|
Improve this Doc
View Source
ForceRecalc()
Declaration
public void ForceRecalc()
|
Improve this Doc
View Source
GetDeviceExtent(IGeoObject)
Declaration
public Rectangle GetDeviceExtent(IGeoObject geoObject)
Parameters
Returns
| Type |
Description |
| System.Drawing.Rectangle |
|
|
Improve this Doc
View Source
GetDisplayExtent()
Declaration
public BoundingRect GetDisplayExtent()
Returns
|
Improve this Doc
View Source
GetDisplayExtent(GeoObjectList)
Declaration
public BoundingRect GetDisplayExtent(GeoObjectList list)
Parameters
Returns
|
Improve this Doc
View Source
GetDisplayExtent(IGeoObject)
Declaration
public BoundingRect GetDisplayExtent(IGeoObject geoObject)
Parameters
Returns
|
Improve this Doc
View Source
GetIntersectionParameters(ICurve, ProjectedModel.IntersectionMode)
Returns the parameters for all intersection point of this curve with other
curves in the model. The curve must be planar. To get the 3D intersection point
call PointAt(Double). If CheckExtension is true, there will also be
intersection parameters in the extension of the curve (if the curve can extend)
Declaration
public double[] GetIntersectionParameters(ICurve Curve, ProjectedModel.IntersectionMode mode)
Parameters
Returns
| Type |
Description |
| System.Double[] |
Array of parameters
|
|
Improve this Doc
View Source
GetIntersectionParameters(ICurve, ProjectedModel.IntersectionMode, out ICurve[])
Declaration
public double[] GetIntersectionParameters(ICurve Curve, ProjectedModel.IntersectionMode mode, out ICurve[] targetCurves)
Parameters
Returns
| Type |
Description |
| System.Double[] |
|
|
Improve this Doc
View Source
GetObjectsFromRect(BoundingRect, IGeoObject)
Returns all GeoObjects that coincide with the given BoundingRect in the projection
of this ProjectedModel. If parameter childOfThis is null, this function
will return the topmost parents of the objects else it will return direct children
of "childOfthis".
Declaration
public GeoObjectList GetObjectsFromRect(BoundingRect pickrect, IGeoObject childOfThis)
Parameters
| Type |
Name |
Description |
| BoundingRect |
pickrect |
bounding rectangle in this projection
|
| IGeoObject |
childOfThis |
if null returns topmost parent else return directchild of this
|
Returns
|
Improve this Doc
View Source
GetObjectsFromRect(BoundingRect, PickMode, FilterList)
Declaration
public GeoObjectList GetObjectsFromRect(BoundingRect pickrect, PickMode pickMode, FilterList filterList)
Parameters
Returns
|
Improve this Doc
View Source
GetObjectsNearRect(BoundingRect)
Get all GeoObjects that coincide with the given BoundingRect or are close to it.
This method is faster than GetObjectsFromRect but does not check the overlap
of the ractangle and the GeoObject
Declaration
public GeoObjectList GetObjectsNearRect(BoundingRect pickrect)
Parameters
| Type |
Name |
Description |
| BoundingRect |
pickrect |
the BoundingRect
|
Returns
| Type |
Description |
| GeoObjectList |
List of all GeoObjects close to the BoundingRect
|
|
Improve this Doc
View Source
GetVisibleLayers()
Declaration
public Layer[] GetVisibleLayers()
Returns
|
Improve this Doc
View Source
GetWorldExtent()
Declaration
public BoundingRect GetWorldExtent()
Returns
|
Improve this Doc
View Source
HitTest(IGeoObject, BoundingRect)
Declaration
public bool HitTest(IGeoObject go, BoundingRect rect)
Parameters
Returns
| Type |
Description |
| System.Boolean |
|
|
Improve this Doc
View Source
IsLayerVisible(Layer)
Determins whether the given Layer is marked visible in the context of this ProjectedModel.
Declaration
public bool IsLayerVisible(Layer l)
Parameters
| Type |
Name |
Description |
| Layer |
l |
The layer
|
Returns
| Type |
Description |
| System.Boolean |
|
|
Improve this Doc
View Source
RemoveVisibleLayer(Layer)
Marks the given Layer as invisible in the context of this ProjectedModel.
Declaration
public void RemoveVisibleLayer(Layer l)
Parameters
| Type |
Name |
Description |
| Layer |
l |
The layer
|
|
Improve this Doc
View Source
Declaration
public void Scroll(double dx, double dy)
Parameters
| Type |
Name |
Description |
| System.Double |
dx |
|
| System.Double |
dy |
|
|
Improve this Doc
View Source
SetTopViewProjection()
Declaration
public void SetTopViewProjection()
|
Improve this Doc
View Source
SetViewDirection(GeoPoint, GeoVector, GeoPoint, Boolean)
Declaration
public void SetViewDirection(GeoPoint fromHere, GeoVector direction, GeoPoint fixPoint, bool temporary)
Parameters
|
Improve this Doc
View Source
SetViewDirection(GeoVector, Boolean)
Declaration
public void SetViewDirection(GeoVector dir, bool temporary)
Parameters
| Type |
Name |
Description |
| GeoVector |
dir |
|
| System.Boolean |
temporary |
|
|
Improve this Doc
View Source
SetViewDirection(ModOp, Boolean)
Declaration
public void SetViewDirection(ModOp p, bool temporary)
Parameters
| Type |
Name |
Description |
| ModOp |
p |
|
| System.Boolean |
temporary |
|
|
Improve this Doc
View Source
ZoomToModelExtent(Rectangle, Double)
Sets the projection to display the Extent inside
the given rectangle
Declaration
public void ZoomToModelExtent(Rectangle ClientRect, double Factor)
Parameters
| Type |
Name |
Description |
| System.Drawing.Rectangle |
ClientRect |
The client rectangle of the CondorControl
|
| System.Double |
Factor |
Additional Factor to show more or less
|
|
Improve this Doc
View Source
ZoomToRect(Rectangle, BoundingRect)
Declaration
public void ZoomToRect(Rectangle ClientRect, BoundingRect visibleRect)
Parameters
| Type |
Name |
Description |
| System.Drawing.Rectangle |
ClientRect |
|
| BoundingRect |
visibleRect |
|
|
Improve this Doc
View Source
ZoomTotal(Rectangle, Double)
Declaration
public void ZoomTotal(Rectangle ClientRect, double Factor)
Parameters
| Type |
Name |
Description |
| System.Drawing.Rectangle |
ClientRect |
|
| System.Double |
Factor |
|
Explicit Interface Implementations
|
Improve this Doc
View Source
IDeserializationCallback.OnDeserialization(Object)
Declaration
void IDeserializationCallback.OnDeserialization(object sender)
Parameters
| Type |
Name |
Description |
| System.Object |
sender |
|
|
Improve this Doc
View Source
ISerializable.GetObjectData(SerializationInfo, StreamingContext)
Declaration
void ISerializable.GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
| Type |
Name |
Description |
| System.Runtime.Serialization.SerializationInfo |
info |
|
| System.Runtime.Serialization.StreamingContext |
context |
|
Implements
System.Runtime.Serialization.ISerializable
System.Runtime.Serialization.IDeserializationCallback